joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40434f
Capabilities:
Terminate process

Disassembly:
jmp 0x44d582
push 0x2e0
mov eax, 0x523af0
call fcn.00407194
mov edi, ecx
push 0xfffffffffffffff0
call fcn.00407fae
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.00407fae
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.004029ff
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.004074be
lea ecx, [ebp - 0x2e8]
call fcn.00407829
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004029c8
mov edx, dword [edi]
mov ecx, edi
test al, al
jne 0x44d671
lea eax, [ebp - 0x94]
push eax
call dword [edx + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004090bb
push eax
call fcn.00408e81
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00401dd4
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040662c
push eax
push esi
lea ecx, [ebp - 0x2e8]
call fcn.004068d9
mov esi, eax
jmp 0x44d6b8
mov esi, edi
lea eax, [edi + 0x28]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ebp - 0x94]
push eax
call dword [edx + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004090bb
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2e8]
call fcn.004068d9
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00401dd4
test esi, esi
jne 0x44d721
push 0xffffffffffffffff
push 0x536cec
lea ecx, [ebp - 0x94]
call fcn.00403cc9
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.004048ae
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.00401dd4
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0040662c
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.00405f1f
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.00404624
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.00401dd4
lea ecx, [ebp - 0x2e8]
call fcn.00407e05
xor eax, eax
call fcn.00408fda
ret 0x10
Function at 0x40468d
Capabilities:
Terminate process

Disassembly:
jmp 0x4c34d9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4c34ea
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00407a4f
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 0x40489a
Capabilities:
Query environment variable

Disassembly:
jmp 0x50bae0
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x50baf1
pop esi
ret
push ebx
push edi
push esi
call fcn.0050b9c7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004055c4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x50bb19
push ebx
push esi
push edi
call fcn.00407748
add esp, 0xc
push 0
call fcn.004087c4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40543e
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x49b5bf
jmp fcn.0049b5b4
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_312
Function at 0x407842
Capabilities:
Parse pe header

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

Function at 0x407860
Capabilities:
Print debug messages

Disassembly:
jmp 0x4ae79d
push esi
mov esi, ecx
call fcn.00407f04
mov eax, 0x400000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x547cc4
call fcn.00403c6a
test eax, eax
jns 0x4ae7ec
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ae7e5
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x577b2c], 1
mov eax, esi
pop esi
ret

Function at 0x407db0
Capabilities:
Hide graphical window

Disassembly:
jmp 0x4a4ddd
push 0x98
mov eax, 0x5277f8
call fcn.00407194
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4a4eed
lea eax, [ebp - 0xa4]
push eax
call fcn.004085d5
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00404bd3
push eax
mov ecx, ebx
call fcn.00408ea4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a4eed
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.00406069
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00407db5
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.00404282
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.00401ee7
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1c8
push eax
call fcn.00405f06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00401dd4
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x100]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.00408fda
ret 4
Function at 0x407e9b
Capabilities:
Hide graphical window

Disassembly:
jmp 0x496ec9
push 0x9c
mov eax, 0x5264ed
call fcn.00407194
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x496f5b
lea eax, [ebp - 0xa8]
push eax
call fcn.004011a4
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00404bd3
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00408ea4
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00406069
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00407db5
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004029c8
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00401dd4
mov esi, 0x588
test bl, bl
je 0x496f96
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.00407748
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00408fda
ret 4
Function at 0x441158
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x44117b
or esi, 1
push 2
call edi
test ax, ax
jns 0x441187
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x441193
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x44119f
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x46bc3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x46bc69
cmp eax, edi
jge 0x46bc59
push esi
call fcn.00465d46
pop ecx
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, eax
test eax, eax
jle 0x46bc8e
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x46bc74
mov dword [esi + 8], edx
jmp 0x46bca3
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x46bc99
xor dl, dl
jmp 0x46bc9e
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x46bc8e
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x46bcdd
push str.zlib_corrupt
call fcn.00465c3d
add esp, 4
jmp 0x46bd1d
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x46bced
push str.read_past_buffer
jmp 0x46bcd3
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x46bd07
push edi
push ecx
push esi
call fcn.0046f8b1
add esp, 0xc
test eax, eax
je 0x46bd1d
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00407748
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4f5f43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004023fb
mov eax, dword [0x574700]
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.00408206
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f5f85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f60e1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040840e
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 + 0x57a1c8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00404174
mov ecx, dword [esi*4 + 0x57a1c8]
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 0x4f60da
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f60da
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 0x4f60da
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00404174
add esp, 0x14
test edx, edx
jl 0x4f60da
jg 0x4f6050
test eax, eax
jb 0x4f60da
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f60da
jl 0x4f606a
cmp dword [ebp - 0x1008], eax
ja 0x4f60da
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f6088
test ebx, ebx
je 0x4f60c1
cmp ecx, edi
jae 0x4f60c1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f60a2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f60ae
cmp byte [ecx + 1], 0xa
jne 0x4f60ae
inc ecx
jmp 0x4f60ae
movzx eax, al
movsx eax, byte [eax + 0x5749a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f6088
cmp edx, ebx
jne 0x4f6088
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f60df
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403e90
leave
ret
Function at 0x505d2a
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 + 0x57a1c8]
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 0x505d6a
cmp byte [ebx], 0xa
jne 0x505d6a
or byte [eax + edi + 0x28], 4
jmp 0x505d6f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x505e6d
mov al, byte [edx]
cmp al, 0x1a
je 0x505e4f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x505d9e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x505dc3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x505dcd
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 0x505d80
jmp 0x505e6d
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 0x505e4a
cmp dword [ebp - 0xc], 0
je 0x505e4a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x57a1c8]
test byte [eax + edi + 0x28], 0x48
je 0x505e24
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x505e0f
mov byte [esi], dl
jmp 0x505e20
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57a1c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x505e6d
cmp byte [ebp - 1], 0xa
jne 0x505e33
cmp esi, ebx
jne 0x505e33
mov byte [esi], 0xa
jmp 0x505e6c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401d84
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x505e6d
mov byte [esi], 0xd
jmp 0x505e6c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x57a1c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x505e69
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x505e6d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x505ec9
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 + 0x57a1c8]
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 0x505f0c
cmp word [esi], dx
jne 0x505f0c
or byte [edi + eax + 0x28], 4
jmp 0x505f11
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 0x506064
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 0x506044
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x505f53
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x505f89
cmp eax, edx
jae 0x505f95
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 0x505f2b
jmp 0x506064
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 0x506040
cmp dword [ebp - 0x14], 0
je 0x506040
mov eax, dword [ebx*4 + 0x57a1c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x506018
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x505fe1
mov word [esi], cx
jmp 0x506014
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x57a1c8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x57a1c8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x57a1c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x506064
pop ebx
cmp word [ebp - 4], bx
jne 0x506029
cmp esi, dword [ebp + 0xc]
jne 0x506029
mov word [esi], bx
jmp 0x506061
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401d84
add esp, 0x10
cmp word [ebp - 4], bx
je 0x506064
push 0xd
jmp 0x50605d
mov ecx, dword [ebx*4 + 0x57a1c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x50605b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x506064
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 0x509d6e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x574700]
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 0x509db9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0050a279
test al, al
jne 0x509db3
sub edx, 2
cmp edx, edi
jne 0x509d99
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x509ddb
lea eax, [edi + 2]
cmp edx, eax
je 0x509ddb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00509967
add esp, 0x10
jmp 0x509ed5
push esi
lea ecx, [ebp - 0x255]
call fcn.0050a279
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 0x509e1e
push dword [ebp - 0x25c]
jmp 0x509dcb
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 0x509e5b
cmp word [ebp - 0x226], 0
je 0x509e7c
cmp word [ebp - 0x226], ax
jne 0x509e5b
cmp word [ebp - 0x224], 0
je 0x509e7c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00509967
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x509ec8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x509e35
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x509eb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x509ed5
push 0x50924d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004074c3
add esp, 0x10
jmp 0x509ea5
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.00403e90
leave
ret
Function at 0x1001da70
Capabilities:
Encode data using xor

Disassembly:
shr bh, cl
aam 0x82
sbb al, byte [esi]
push es
in eax, 0x2e
xchg edx, eax
in eax, 0xe
mov al, byte [0xce2316e9]
clc
dec edi
mov al, 0x9e
adc esp, dword [ebx + 0x15]
sahf
add ebp, dword [ebp - 0x59d35e3]
xor byte [esi], ch
cld
mov dword [ebx + 0x1b979b3e], ebx
fsubr qword [esp + ecx*2 - 0x1fecad5b]
out dx, eax
jle 0x1001da2b
punpckhwd mm6, qword [esi - 0x78d88c1f]
out dx, eax
xchg ecx, eax
imul esi, dword [esi - 0x78d88c1f], 0xfad391ef
sar edx, cl
jecxz 0x1001dab6
in al, 0xc3
out dx, eax
mov al, byte [0x2e60f911]
jl 0x1001d9fc
in al, 0x1c
imul esi, dword [ebp - 6], 0xffffff90
jle 0x1001d9f6
insb byte es:[edi], dx
invalid
adc ebp, edx
pcmpgtd mm7, qword [edx + ebp*8 - 0x13a64831]
sti
dec ebp
das
sbb byte [eax - 0xa], al
js 0x1001da91
pushfd
cdq
pushal
lea esp, [ebp + 0x2a711f95]
jo 0x1001da33
popfd
cmp bh, byte [edi - 0x27c045fa]
aas
test ebx, ebp
sub dl, byte [ecx]
jge 0x1001db18
mov edx, 0x853fd83f
jmp 0x1001dac2
imul dword [ebx + ebx*2 + 0x14893fc9]
fstp xword [edi + 0x492be9b7]
inc esi
out 0x98, al
sub al, 0xc5
lcall 0x1234, 0x3231b2ac
lea ecx, [ebx - 0x1374cd1b]
mov esp, ebp
xor cl, byte [ebx - 0x7624f614]
push edi
and eax, 0xe900fc5f
in eax, 0x32
mov ebp, esp
or ebx, ebx
mov dword [edi + 0x25], edx
pop edi
cld
add cl, ch
jmp 0x6d4bcb3c
jne 0x1001dab5
dec ecx
pop ebp
xchg ebx, eax
adc al, 0xf0
pop ds
add esi, dword [esp + edi*8 + 0x78]
sbb eax, 0x79bd1e7c
sar dword [ebx], cl
pop ss
aad 0x5f
stc
pop esi
ror dword [eax], 1
int3
insb byte es:[edi], dx
xchg esp, eax
mov edi, 0x6cc8d424
sbb ch, byte [esi]
invalid
Function at 0x4012c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.00405d1a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
mov ecx, dword [esi + 0x98]
push 0x630000
push 0
push 0x401
push ecx
call edi
mov edx, dword [esi + 0x98]
push 0
push 0x63
push 0x402
push edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x401390
push 0
push 0
call edi
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0x401520
push 0
push 0
call edi
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x14]
push ecx
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push 1
mov ecx, esi
call fcn.00405a32
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x4019d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004062ae

Function at 0x401b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b90
lea ebx, [ebx]
cmp esi, eax
jae 0x401b94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b80
cmp esi, eax
jb 0x401b9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret