joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4051c0
call fcn.00401570
mov edi, 0x94
mov eax, edi
call fcn.00402280
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4072bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4072c8], eax
mov edx, dword [esi + 8]
mov dword [0x4072cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072c0], esi
cmp ecx, 2
je 0x401243
or esi, 0x8000
mov dword [0x4072c0], esi
shl eax, 8
add eax, edx
mov dword [0x4072c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40127e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40127e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401296
cmp eax, 0x20b
je 0x401283
mov dword [ebp - 0x1c], esi
jmp 0x4012aa
cmp dword [ecx + 0x84], 0xe
jbe 0x40127e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4012a4
cmp dword [ecx + 0x74], 0xe
jbe 0x40127e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402222
pop ecx
test eax, eax
jne 0x4012d6
cmp dword [0x4072a8], 1
jne 0x4012c3
call fcn.004019d7
push 0x1c
call fcn.00401860
push 0xff
call fcn.004016c5
pop ecx
pop ecx
call fcn.00402180
mov dword [ebp - 4], esi
call fcn.00401fd5
test eax, eax
jge 0x4012ef
push 0x1b
call fcn.004011be
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407834], eax
call fcn.00401eb3
mov dword [0x4072a0], eax
call fcn.00401e11
test eax, eax
jge 0x401315
push 8
call fcn.004011be
pop ecx
call fcn.00401bde
test eax, eax
jge 0x401326
push 9
call fcn.004011be
pop ecx
push 1
call fcn.004016f5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40133c
push eax
call fcn.004011be
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401b81
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40135d
movzx eax, word [ebp - 0x40]
jmp 0x401360
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40137e
push edi
call fcn.00401820
call fcn.00401842
jmp 0x4013b0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004015ab
ret
Function at 0x40175f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4072fc], esi
push edi
jne 0x40177f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4072f8], esi
mov byte [0x4072f4], al
jne 0x4017e5
mov ecx, dword [0x407828]
test ecx, ecx
je 0x4017c6
mov eax, dword [0x407824]
sub eax, 4
cmp eax, ecx
jmp 0x4017bf
mov eax, dword [eax]
test eax, eax
je 0x4017b1
call eax
mov eax, dword [0x407824]
sub eax, 4
cmp eax, dword [0x407828]
mov dword [0x407824], eax
jae 0x4017a9
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x4017e5
mov eax, dword [edi]
test eax, eax
je 0x4017de
call eax
add edi, 4
cmp edi, esi
jb 0x4017d6
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401804
mov eax, dword [edi]
test eax, eax
je 0x4017fd
call eax
add edi, 4
cmp edi, esi
jb 0x4017f5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40181e
push dword [ebp + 8]
mov dword [0x4072fc], 1
call fcn.004016c5
pop ebp
ret

Function at 0x401860
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407040]
je 0x401895
inc eax
cmp eax, 0x13
jb 0x401886
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407040]
jne 0x4019bb
mov eax, dword [0x4072a8]
cmp eax, 1
je 0x401993
cmp eax, edx
jne 0x4018c5
cmp dword [0x407038], 1
je 0x401993
cmp ecx, 0xfc
je 0x4019bb
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4018fb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004023c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004025f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40192f
mov eax, edi
push eax
call fcn.004025f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405204
push edi
call fcn.004024c0
add esp, 0x10
push edi
call fcn.004025f0
push dword [esi + 0x407044]
mov ebx, eax
call fcn.004025f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402280
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004023c0
push edi
push ebx
call fcn.004023d0
push 0x405200
push ebx
call fcn.004023d0
push dword [esi + 0x407044]
push ebx
call fcn.004023d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004022bd
add esp, 0x2c
jmp 0x4019bb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x407044]
push dword [esi]
call fcn.004025f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004011b0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4022bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407414], ebx
push esi
push edi
jne 0x40233d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402378
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407414], eax
je 0x402378
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407418], eax
call esi
cmp dword [0x4072bc], 2
mov dword [0x40741c], eax
jne 0x40233d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407424], eax
je 0x40233d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407420], eax
mov eax, dword [0x407420]
test eax, eax
je 0x402382
call eax
test eax, eax
je 0x402369
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407424]
test eax, eax
je 0x402369
test byte [ebp - 8], 1
jne 0x402382
cmp dword [0x4072c8], 4
jb 0x40237c
or byte [ebp + 0x12], 0x20
jmp 0x4023a1
xor eax, eax
jmp 0x4023b1
or byte [ebp + 0x12], 4
jmp 0x4023a1
mov eax, dword [0x407418]
test eax, eax
je 0x4023a1
call eax
mov ebx, eax
test ebx, ebx
je 0x4023a1
mov eax, dword [0x40741c]
test eax, eax
je 0x4023a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40276a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402798
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40279f
cmp ebx, dword [eax + 4]
jae 0x40279f
xor eax, eax
jmp 0x40298f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4027b0
xor eax, eax
inc eax
jmp 0x40298e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4027c6
cmp ecx, edx
jae 0x40290b
cmp dword [eax + 4], 0
je 0x4027cf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4027b7
cmp dword [ebp + 8], 0
je 0x4027f1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40290b
cmp eax, esi
jae 0x40290b
mov eax, dword [0x407428]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402816
cmp dword [esi*4 + 0x407430], edi
je 0x40290f
inc esi
cmp esi, eax
jl 0x402804
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40298b
cmp dword [ebp - 8], 0x1000000
jne 0x40298b
test byte [ebp - 0xc], 0xcc
je 0x402894
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40298b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40298b
cmp word [eax + 0x18], 0x10b
jne 0x40298b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40298b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402894
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402894
test byte [ecx + 0x27], 0x80
jne 0x40290b
push 1
push 0x407470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4027a8
mov ecx, dword [0x407428]
test ecx, ecx
mov edx, ecx
jle 0x4028c8
lea eax, [ecx*4 + 0x40742c]
cmp dword [eax], edi
je 0x4028c8
dec edx
sub eax, 4
test edx, edx
jg 0x4028bc
test edx, edx
jne 0x4028f9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4028d5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4028ed
lea eax, [edx*4 + 0x407430]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4028db
cmp ecx, 0x10
jge 0x4028f9
inc ecx
mov dword [0x407428], ecx
push 0
push 0x407470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4027a8
xor eax, eax
jmp 0x40298e
test esi, esi
jle 0x4027a8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407470
call ebx
test eax, eax
jne 0x4027a8
cmp dword [esi*4 + 0x407430], edi
je 0x402965
mov eax, dword [0x407428]
lea esi, [eax - 1]
test esi, esi
jl 0x402953
cmp dword [esi*4 + 0x407430], edi
je 0x40294f
dec esi
jns 0x402943
test esi, esi
jge 0x402963
cmp eax, 0x10
jge 0x40295e
inc eax
mov dword [0x407428], eax
lea esi, [eax - 1]
jmp 0x402965
je 0x40297d
xor ecx, ecx
test esi, esi
jl 0x40297d
lea eax, [ecx*4 + 0x407430]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40296b
push 0
push 0x407470
call ebx
jmp 0x4027a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a7c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402280
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404b17
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4072bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404b17
cmp eax, 1
je 0x404b38
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404b17
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404ae4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404b13
xor eax, eax
inc eax
jmp 0x404b57
cmp edi, eax
jae 0x404b1b
xor eax, eax
jmp 0x404b57
cmp eax, esi
jae 0x404b22
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4072bc]
jmp 0x404b3b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54ff81
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
call fcn.0057a944
mov al, 0xa5
or bh, byte [edx + 0x6c1321d8]
outsb dx, byte [esi]
daa
pop esi
stosd dword es:[edi], eax
xchg byte [eax + 0x10], dl
in al, 0xad
xchg edx, eax
cdq
pushfd
pop esp
and eax, 0x46e4bbf0
sbb dword [ebx], eax
xor al, 0x2b
adc al, 0x9c
jns 0x550026
inc ebp
pop ss
sub al, 0xcb
mov esp, 0x377b2977
mov byte [ebx + 0x2560ecd1], cl
popfd
sahf
test al, 0x63
dec esi
add byte [ecx + 0x6338865], dl
push es
adc ch, byte [0x39e24bbb]
or bh, byte [edi + 0x67]
jg 0x550035
pop ecx
aad 0xdb
out dx, al
shl al, cl
dec ebp
not byte [esi + 0x3a]
pop ebx
sbb al, byte [esi + 0x24]
sub al, 0xda
inc edi
xor eax, edi
add esi, dword [ebp - 0x2b]
cmp dh, byte [edx - 0x5c]
xchg edi, eax
arpl cx, bx
mov dword [0x2c8eeadf], eax
cdq
and byte [ebx], bh
dec esi
sbb al, 0xdf
js 0x54ffc4
cmp edi, 0x9628a301
jmp 0x55006c
and al, 0x3c
push dword [esp]
push dword [esp]
pushfd
push dword [esp + 0x4c]
ret 0x58
into
adc ch, al
push eax
lodsb al, byte [esi]
or dword [eax], eax
mov edi, 0x5ac8c3fe
push ebx
jne 0x550013
jecxz 0x54ffcc
stosd dword es:[edi], eax
xor edi, dword [ecx - 0x4bfdc4ff]
pop edx
ret
mov cs, ebp
into
add eax, 0x314f8ebd
mov ah, 0xa8
test byte [ebp - 0x5a4bacd6], cl
lcall 0x43ab, 0xd12fc6e5
push edi
sub eax, 0x3f24dea5
js 0x5500e9
cmp ecx, dword [ecx + 0x6b342009]
fsubrp st(3)
push ebx
fmul dword [edi + 0x60]
sahf
nop
mov byte [0x78860877], al
cmp ch, bh
xor byte [ecx], ah
int3
insb byte es:[edi], dx
hlt
mov ch, 0x7a
fcmove st(0), st(2)
loopne 0x5500e3
test dword [eax + 0x13], esi
adc eax, dword [0xa98cd7f4]
and bh, cl
inc edi
mov ecx, 0x702ea0ab
test ebx, esi
mov ah, 0x7e
das
sub byte [ebp + 0x7d735127], 0x2d
pop ss
mov ebp, 0x911dbce5
lodsd eax, dword [esi]
mov esp, 0x46f547a1
mov bl, 0xa8
push esp
jmp 0x69e81ee1

Function at 0x553270
Capabilities:
Check for software breakpoints

Disassembly:
test edi, edi
pushfd
pushfd
push 0x38453cbe
lea esp, [esp + 0x14]
je 0x57908f
cmp edx, eax
movsx si, dl
add edi, ebx
bsr si, ax
mov esi, dword [edx]
test edi, edi
jmp 0x57afd5
clc
pushal
test esi, esi
call fcn.00576dee

Function at 0x575dce
Capabilities:
Check for software breakpoints

Disassembly:
bswap eax
mov eax, 1
push ebp
push 0xbe3835e
pushal
mov byte [esp], 0xd3
lea esp, [esp + 0x28]
jmp 0x57909c
lea esp, [esp + 0xc]
je 0x588d6a
cmp cl, bl
cmc
cmp dl, bh
push esp
mov dword [ebp - 8], eax
add esp, 4
cwde
pushal
lea esp, [esp + 0x20]
jge 0x55337d
movsx ax, al
mov eax, 1
push 0x8002c21a
push 0x9defab9b
lea esp, [esp + 8]
jmp 0x57909c
Function at 0x588cb2
Capabilities:
Check for software breakpoints

Disassembly:
adc si, 0xe701
add edi, ebx
sar si, 1
bsf si, bx
mov esi, dword [edx]
stc
test esi, esi
pushal
pushfd
pushfd
pushfd
lea esp, [esp + 0x2c]
je 0x589bb7
bt sp, 1
add esi, ebx
pushfd
lea esp, [esp + 4]
jmp 0x589bbd
mov byte [esp], 0xda
lea esp, [esp + 8]
je 0x57908f
jmp 0x54f8e5
cmc
inc esi
neg al
mov esi, edi
bsr ax, sp
aas
push edi
mov eax, dword [edx + 0xc]
mov byte [esp], dh
push esp
add eax, ebx
call fcn.00579a41
push 0x114ead9b
call fcn.005e8ad8
out dx, al
xchg esp, eax
jle 0x589beb
dec esi
adc eax, ebp
std
out dx, al
add eax, 0x7e94ee00
or al, 0x43
inc ebx
cwde
xor ecx, edi
xor al, 0x6b
fld xword [eax - 0x45]
xlatb
bnd jp 0x589bd4
call 0xb55c7809
invalid
sbb esp, ebx
add esi, dword [ebp - 0x1eef2927]
add eax, 0x39d472e4
push cs
add dword [ebp + 0x5e], 0
invalid
Function at 0x42acc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x42acda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ace1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42acd0
mov eax, 1
add ebx, ebx
jne 0x42acf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ace8
jne 0x42ad04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ace8
xor ecx, ecx
sub eax, 3
jb 0x42ad18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ad8a
mov ebp, eax
add ebx, ebx
jne 0x42ad23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ad30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ad54
inc ecx
add ebx, ebx
jne 0x42ad40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ad35
jne 0x42ad51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ad35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ad74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ad65
jmp 0x42acd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ad74
add edi, ecx
jmp 0x42acd6
pop esi
mov edi, esi
mov ecx, 0x4d9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ad92
cmp byte [edi], 6
jne 0x42ad92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ad97
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42ae0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a0bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42adc4
mov ecx, edi
jns 0x42adf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a0c4]
or eax, eax
je 0x42ae09
mov dword [ebx], eax
add ebx, 4
jmp 0x42ade1
call dword [esi + 0x2a0c0]
mov ebp, dword [esi + 0x2a0c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42ae43
sub esp, 0xffffff80
jmp 0x40b346
Function at 0x401839
Capabilities:
Parse pe header

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

Function at 0x4036f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40371d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40371d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403a21
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40e60c
push 0x40e604
push str.FlsAlloc
push 0x1f
call fcn.00403d04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403a55
push dword [ebp + 8]
mov ecx, esi
call dword [0x412fd8]
call esi
jmp 0x403a5b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x403a9f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40e61c
push 0x40e614
push str.FlsGetValue
push 0x21
call fcn.00403d04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403ad6
push dword [ebp + 8]
mov ecx, esi
call dword [0x412fd8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x403ade
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40e624
push 0x40e61c
push str.FlsSetValue
push 0x22
call fcn.00403d04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403b18
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412fd8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x406d3d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414040]
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 0x406d88
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406eb3
test al, al
jne 0x406d82
sub edx, 2
cmp edx, edi
jne 0x406d68
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406daa
lea eax, [edi + 2]
cmp edx, eax
je 0x406daa
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406c89
add esp, 0x10
jmp 0x406ea4
push esi
lea ecx, [ebp - 0x255]
call fcn.00406eb3
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 0x406ded
push dword [ebp - 0x25c]
jmp 0x406d9a
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 0x406e2a
cmp word [ebp - 0x226], 0
je 0x406e4b
cmp word [ebp - 0x226], ax
jne 0x406e2a
cmp word [ebp - 0x224], 0
je 0x406e4b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406c89
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406e97
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406e04
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406e7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406ea4
push 0x406ed7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a080
add esp, 0x10
jmp 0x406e74
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.00401c75
leave
ret