joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c4d8db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1c4d8dc6
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1c4d8dd7
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1c4d8e18
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1c4db184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1c4db0cd
add ebx, 0
push ecx
call 0x1c4db0e2
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73191117
sub ebx, dword [0x731b0956]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x731b0946
call fcn.1c4d6bac
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1c4d60ba
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1c4db240
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1c4db240
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1c4db1f7
mov eax, 1
lock xchg dword [0x731b0952], eax
push 0x3dd1fc71
call 0x1c4db184
push esi
add esp, 8
cmp eax, 0
jne 0x1c4db16d
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1c4db193
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1c4db1a8
cmp ecx, edx
cmp eax, 0
je 0x1c4db1cd
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1c4db1b7
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1c4db1e6
dec eax
loope 0x1c4db1e9
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x731b0952], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1c4db21d
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1c4db232
jmp 0x1c4db23d
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1c4db12b
Function at 0x1c4e22a5
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1c4e257b
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7319d5ca
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73194590
push 0xffffffffffffffff
call fcn.1c4d94a5
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1c4e230f
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1c4e2327
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1c4e256f
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1c4e2543
Function at 0x1c4f1d75
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1c4f1d97
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1c4f1d97
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1c4f1d97
ret
cmp word [ebx + 4], 0x14c
jne 0x1c4f1d97
test word [ebx + 0x16], 2
je 0x1c4f1d97
test word [ebx + 0x16], 0x100
je 0x1c4f1d97
cmp word [ebx + 0x18], 0x10b
jne 0x1c4f1d97
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1c4f1d97
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1c4f1e23
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1c4f1db7
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1c4d8d02
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1c4f1d97
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1c4f1e23
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1c4f1d97
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1c4f1d97
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1c4f1d97
ret
cmp word [ebx + 4], 0x14c
jne 0x1c4f1d97
test word [ebx + 0x16], 2
je 0x1c4f1d97
test word [ebx + 0x16], 0x100
je 0x1c4f1d97
cmp word [ebx + 0x18], 0x10b
jne 0x1c4f1d97
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1c4f1d97
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1c4f1e23
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1c4f1db7
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1c4d8d02
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1c4f1d97
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1c4f1eda
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1c4f1f33
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1c4f1eda
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1c4f1ee9
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1c8f7b8c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1c4f1f3a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1c4d8db0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1c4f1fd9
add edi, 4
add eax, 2
dec ecx
jne 0x1c4f1f1f
call 0x1c4f1f86
loope 0x1c4f1f7c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1c4f1fd6
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1c4f1fe7
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1c4f1f9a
cmp eax, ecx
ja 0x1c4f1f9a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1c4f2024
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1c4f201a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1c4d928f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1c4f1ee9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1c4f1f33
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1c4f1eda
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1c4f1ee9
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1c8f7b8c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1c4f1f3a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1c4d8db0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1c4f1fd9
add edi, 4
add eax, 2
dec ecx
jne 0x1c4f1f1f
call 0x1c4f1f86
loope 0x1c4f1f7c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1c4f1fd6
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1c4f1fe7
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1c4f1f9a
cmp eax, ecx
ja 0x1c4f1f9a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1c4f2024
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1c4f201a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1c4d928f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4026a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4026b1
xor eax, eax
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0xc]
call sub.MFC40.DLL_CWnd::GetControlUnknown
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4026c8
xor eax, eax
pop edi
pop esi
ret 0x10
cmp dword [esp + 0x14], 1
sbb eax, eax
lea edi, [esi + 0x10]
inc eax
mov ecx, dword [esp + 0x18]
push 0
mov dword [edi], 0
push 0
mov dword [esi + 0x24], ecx
mov dword [esi + 0x18], 1
push 1
mov dword [esi + 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x402706
xor eax, eax
pop edi
pop esi
ret 0x10
lea eax, [esi + 0xc]
push eax
push 0
push edi
push 0x4027f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x40272a
xor eax, eax
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop edi
mov dword [esi + 4], 1
pop esi
ret 0x10
Function at 0x404280
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0
add eax, 0x32
mov ecx, dword [ecx + 0x20]
lea edx, [eax + 0xff]
push edx
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4
Function at 0x4043e0
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404660
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea ecx, [ebp - 0x24]
push ebx
push esi
mov ebx, 1
call sub.MFC40.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::CString
mov byte [ebp - 4], 2
lea eax, [ebp - 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jbe 0x404492
push str.couldnt_get_temporary_path
push 0x5a8
call fcn.0040b520
add esp, 8
mov ecx, dword [ebp + 8]
push 0x419048
call fcn.00415798
mov byte [ebp - 4], bl
call fcn.00404650
mov byte [ebp - 4], 0
call fcn.00404658
mov dword [ebp - 4], 0xffffffff
call fcn.0040466a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c5
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::LoadStringA
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
mov ebx, 3
call fcn.00415798
push 0x419150
lea ecx, [ebp - 0x1c]
call sub.MFC40.DLL_CString::CString_1
mov esi, eax
push 1
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::Right
mov byte [ebp - 4], 4
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp eax, 1
mov byte [ebp - 4], bl
sbb dword [ebp - 0x14], ecx
neg dword [ebp - 0x14]
call fcn.00404640
mov byte [ebp - 4], 2
call fcn.00404648
cmp dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
je 0x40453a
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
push ecx
push edx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0041559a
mov byte [ebp - 4], 2
call fcn.00404532
jmp 0x404592
push 0x419150
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ebx, 7
mov byte [ebp - 4], 6
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], bl
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0041559a
mov byte [ebp - 4], bl
call fcn.00404638
mov byte [ebp - 4], 6
call fcn.00404630
mov byte [ebp - 4], 2
call fcn.00404628
cmp dword [ebp + 0xc], 0
je 0x4045a8
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push eax
push ecx
call fcn.00404680
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
test eax, eax
jne 0x4045f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4045f4
push str.couldnt_create_the_target_directory
push 0x5a8
call fcn.0040b520
add esp, 8
mov ecx, dword [ebp + 8]
push 0x419048
call fcn.00415798
mov byte [ebp - 4], 1
jmp 0x404466
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041559a
mov byte [ebp - 4], 1
call fcn.00404650
mov byte [ebp - 4], 0
call fcn.00404658
mov dword [ebp - 4], 0xffffffff
call fcn.0040466a
mov eax, 1
jmp 0x404482
Function at 0x4102fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x410343
cmp edx, 0x10
jl 0x41032f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x41031c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x410343
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x41033b
and edx, 3
cmp edx, 3
jne 0x410357
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x41035c
cmp edx, 2
jne 0x410368
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x41036d
cmp edx, 1
jne 0x410373
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x415210
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417268
push 0x415402
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x41c54c], 0xffffffff
mov eax, dword [0x41c54c]
mov dword [0x41c550], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x419d50]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x419d4c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41c548], eax
call fcn.00415400
cmp dword [0x419d48], 0
jne 0x4152a0
push 0x4153f0
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.004153d0
push 0x419034
push 0x419030
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x419d44]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x419d40]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x41902c
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x415314
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x41530c
cmp al, 0x22
jne 0x415301
cmp byte [esi], 0x22
jne 0x41531e
inc esi
jmp 0x41531e
cmp al, 0x20
jbe 0x41531e
inc esi
cmp byte [esi], 0x20
ja 0x415318
cmp byte [esi], 0
je 0x41532e
cmp byte [esi], 0x20
ja 0x41532e
inc esi
cmp byte [esi], 0
jne 0x415323
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x415355
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x415398
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093e8
cmp edx, dword [eax]
je 0x403b74
add eax, 8
inc ecx
cmp eax, 0x409478
jl 0x403b65
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093e8]
jne 0x403ca2
mov eax, dword [0x409c88]
cmp eax, 1
je 0x403c7c
test eax, eax
jne 0x403ba5
cmp dword [0x407234], 1
je 0x403c7c
cmp edx, 0xfc
je 0x403ca2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bdc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004047d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c1f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004047d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004047e0
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.004047e0
push dword [esi + 0x4093ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004047e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404db2
add esp, 0x2c
pop edi
jmp 0x403ca2
lea eax, [ebp + 8]
lea esi, [esi + 0x4093ec]
push 0
push eax
push dword [esi]
call fcn.004048c0
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]
pop esi
leave
ret

Function at 0xd0ac66
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a2c], 0
push esi
jne 0xd0ac9d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0xd0ac77
mov dword [ecx*4 + 0x422a28], eax
inc ecx
cmp ecx, 0x100
jl 0xd0ac72
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0xd0acce
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a28]
xor eax, esi
inc ecx
dec edx
jne 0xd0acb0
pop edi
not eax
pop esi
ret 0xc
Function at 0x401d18
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.DLL_MapVirtualKeyW]
push edi
mov edi, ecx
push 5
pop eax
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
push ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x402fd6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], edx
je 0x474d8d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov byte [ecx], dl
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 8], 0x23
mov edi, edx
push edi
mov ecx, esi
call fcn.00403141
movzx eax, word [eax]
push 0x2b
pop ecx
push 0x5e
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x474d94
cmp ax, cx
je 0x474d94
cmp ax, dx
je 0x474d94
cmp ax, word [ebp - 8]
je 0x474d94
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.00403141
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, 0x7b
jne 0x474e0f
push pe_nt_image_headers32
lea ecx, [ebp - 0x20]
call fcn.00408db7
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.004030eb
test al, al
je 0x4030e7
push dword [ebp - 0x20]
push dword [esi*4 + 0x4bc5d0]
call fcn.004226b7
pop ecx
pop ecx
test eax, eax
je 0x4030b5
inc esi
cmp esi, 0x62
jl 0x40309a
cmp esi, 0x62
je 0x474dc6
cmp byte [esi + 0x4bc568], 0
jne 0x4030e7
movzx eax, byte [esi + 0x4bc500]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00406ea2
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x4030d0
lea ecx, [ebp - 0x20]
call fcn.00406ea2
xor al, al
jmp 0x4030e0
cmp ax, word [ebp - 0xc]
jne 0x474d9f
mov eax, dword [ebp + 0x10]
jmp 0x474dbe
cmp ax, cx
jne 0x474da9
mov eax, dword [ebp + 0x14]
jmp 0x474dbe
cmp ax, dx
jne 0x474db3
mov eax, dword [ebp + 0x18]
jmp 0x474dbe
push 0x23
pop ecx
cmp ax, cx
jne 0x474dc0
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x403022
push 0
lea ecx, [ebp - 0x20]
call fcn.0040b59e
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.DLL_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474d85
test eax, 0x200
je 0x474dee
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474dfa
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x4030d0
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x4030d0
push eax
call dword [sym.imp.USER32.DLL_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x474d8d
test eax, 0x200
je 0x474e2e
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474e3a
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x4030d8
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x4030d8