joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4359e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x43be00
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x435a44
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea ecx, [esi + 8]
mov dword [esi + 0x20], 0xc3fbf4
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov byte [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
mov edx, 0xc3fc20
mov dword [esi + 0xc], 0x426240
mov dword [esi + 0x2c], 1
call fcn.00449f10
ud2

Function at 0x4372a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x437371
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4372ca
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x43733e
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x43735a
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437304
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x437322
jmp 0x437316
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43731d
cmp eax, 0x6d
jne 0x437333
mov word [esi], 4
jmp 0x43732c
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x43732c
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00449dc0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x4372d5
mov ecx, ebx
push 1
call fcn.00449dc0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x4372d5
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.0044b070
ud2
Function at 0x4431c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x443260
push ebx
push esi
call fcn.0044318c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00443120
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44320d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44325f
push edi
push eax
call fcn.00443de0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44322d
call fcn.00441c81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44325e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443120
add esp, 0x20
test eax, eax
jne 0x44324c
push edi
call fcn.00441c81
jmp 0x443254
push ebx
call fcn.00441c81
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x44455d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc424d8
push 0xc424d0
push str.FlsAlloc
push 0x1f
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444591
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
jmp 0x444597
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4445db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc424e8
push 0xc424e0
push str.FlsGetValue
push 0x21
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444612
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44461a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc424f0
push 0xc424e8
push str.FlsSetValue
push 0x22
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444654
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44abf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x44ac61
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x44ac9c
cmp dword [esp + 4], 0
je 0x44ac83
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44acb1
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xc499dc]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0xc499dc], esi
jne 0x44ac40
mov byte [0xc499d8], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x44ac93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44acf4
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x44ac87
mov edi, dword [esp]
jmp 0x44ac93
mov edi, dword [esi]
jmp 0x44ac92
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.0044ad30
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xc3ff14
mov dword [esp + 8], 0xc3fedc
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_fdaaaf9f923281ab98b865259aa40fbf93d72c7alibrarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
call fcn.00449f10
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0xc3fedc
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_fdaaaf9f923281ab98b865259aa40fbf93d72c7alibrarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0044ad70
ud2
Function at 0x401031
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403034], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403038], eax
push 0xa
push dword [0x403038]
push 0
push dword [0x403034]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401115
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.SimpleWinClass
push 0x7f02
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Virtual_Key_Code_Reader
push str.SimpleWinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push 1
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40110e
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010e7
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4212f0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x421513
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
sub byte [edi + ebp], 0x32
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
xor byte [edi + ebp], 0x43
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
xor byte [edi + ebp], 0xf1
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x56
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0xb3
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
xor byte [edi + ebp], 0xd6
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x9f
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x3d
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x84
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add esp, 8
xor byte [edi + ebp], 0x1b
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x32
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0xf6
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x51
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
xor byte [edi + ebp], 0x64
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x97
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
xor byte [edi + ebp], 0x50
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0x17
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x600568
call fcn.004032c4
add byte [edi + ebp], 0xbd
add esp, 8
inc edi
cmp edi, ebx
jb 0x421310
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x403ca1
Capabilities:
Terminate process

Disassembly:
jmp 0x4638c9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4638da
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066b3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x406528
Capabilities:
Parse pe header

Disassembly:
jmp 0x452607
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x452646
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x452646
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452646
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x452646
cmp dword [ecx + 0x74], 0xe
jbe 0x452646
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4075f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x422f10
sub esp, 0x2c
mov eax, dword [0x5fc658]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x422ff9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f80
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.0040619a
test ebx, ebx
je 0x422fb9
cmp ebp, 3
jbe 0x422fb9
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00403210
add esp, 8
test eax, eax
je 0x422fb9
cmp eax, ebp
je 0x423012
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x422fee
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422fe4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x422f55
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403602
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x422ff9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x423055
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423061
push ecx
push edx
call fcn.00401c12
add esp, 8
jmp 0x422ff9
call fcn.004051f5
int3
Function at 0x4a6491
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x5fc658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406d2f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a64d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a662f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406eba
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x601a80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403878
mov ecx, dword [esi*4 + 0x601a80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a6628
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a6628
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6628
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403878
add esp, 0x14
test edx, edx
jl 0x4a6628
jg 0x4a659e
test eax, eax
jb 0x4a6628
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a6628
jl 0x4a65b8
cmp dword [ebp - 0x1008], eax
ja 0x4a6628
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a65d6
test ebx, ebx
je 0x4a660f
cmp ecx, edi
jae 0x4a660f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a65f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a65fc
cmp byte [ecx + 1], 0xa
jne 0x4a65fc
inc ecx
jmp 0x4a65fc
movzx eax, al
movsx eax, byte [eax + 0x5fc978]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a65d6
cmp edx, ebx
jne 0x4a65d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a662d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403602
leave
ret
Function at 0x4a6834
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x601a80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6874
cmp byte [ebx], 0xa
jne 0x4a6874
or byte [eax + edi + 0x28], 4
jmp 0x4a6879
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6977
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6959
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a68a8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a68cd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a68d7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a688a
jmp 0x4a6977
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6954
cmp dword [ebp - 0xc], 0
je 0x4a6954
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x601a80]
test byte [eax + edi + 0x28], 0x48
je 0x4a692e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6919
mov byte [esi], dl
jmp 0x4a692a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x601a80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6977
cmp byte [ebp - 1], 0xa
jne 0x4a693d
cmp esi, ebx
jne 0x4a693d
mov byte [esi], 0xa
jmp 0x4a6976
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6977
mov byte [esi], 0xd
jmp 0x4a6976
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x601a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6973
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6977
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a69d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x601a80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6a16
cmp word [esi], dx
jne 0x4a6a16
or byte [edi + eax + 0x28], 4
jmp 0x4a6a1b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a6b6e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a6b4e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6a5d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6a93
cmp eax, edx
jae 0x4a6a9f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a6a35
jmp 0x4a6b6e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6b4a
cmp dword [ebp - 0x14], 0
je 0x4a6b4a
mov eax, dword [ebx*4 + 0x601a80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6b22
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6aeb
mov word [esi], cx
jmp 0x4a6b1e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x601a80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x601a80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x601a80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6b6e
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6b33
cmp esi, dword [ebp + 0xc]
jne 0x4a6b33
mov word [esi], bx
jmp 0x4a6b6b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6b6e
push 0xd
jmp 0x4a6b67
mov ecx, dword [ebx*4 + 0x601a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b65
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b6e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ab5f4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5fc658]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ab63f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004abab6
test al, al
jne 0x4ab639
sub edx, 2
cmp edx, edi
jne 0x4ab61f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ab661
lea eax, [edi + 2]
cmp edx, eax
je 0x4ab661
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ab1ed
add esp, 0x10
jmp 0x4ab75b
push esi
lea ecx, [ebp - 0x255]
call fcn.004abab6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ab6a4
push dword [ebp - 0x25c]
jmp 0x4ab651
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ab6e1
cmp word [ebp - 0x226], 0
je 0x4ab702
cmp word [ebp - 0x226], ax
jne 0x4ab6e1
cmp word [ebp - 0x224], 0
je 0x4ab702
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ab1ed
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ab74e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ab6bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ab736
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ab75b
push 0x4aabd5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040624e
add esp, 0x10
jmp 0x4ab72b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403602
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219