joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f924
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000f95d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10007eda
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10001c90
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x100114fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x10011540
call fcn.1000ab19
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10011540
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001155b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100110b4
test ebx, ebx
mov esi, eax
je 0x10011559
test edi, edi
je 0x10011559
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10011872
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10053984
call fcn.1003ee82
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10011897
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100118e3
call fcn.10007f7e
push eax
lea ecx, [ebp - 0x10]
call fcn.10001db0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100083b8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001280
mov eax, esi
call fcn.1003ef21
ret 8

Function at 0x10039f21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10072650]
jne 0x10039f2b
repz ret
jmp fcn.10040579
Function at 0x1004bc7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10045897
xor ebx, ebx
cmp dword [0x1009a0c8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1004bd4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1004bcba
xor eax, eax
jmp 0x1004be13
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100613e4
push edi
call esi
cmp eax, ebx
je 0x1004bcb3
push eax
call fcn.10045834
mov dword [esp], 0x100613d4
push edi
mov dword [0x1009a0c8], eax
call esi
push eax
call fcn.10045834
mov dword [esp], 0x100613c0
push edi
mov dword [0x1009a0cc], eax
call esi
push eax
call fcn.10045834
mov dword [0x1009a0d0], eax
lea eax, [ebp - 8]
push eax
call fcn.1003fe44
test eax, eax
pop ecx
pop ecx
je 0x1004bd1d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10041482
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1004bd4f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10045834
cmp eax, ebx
pop ecx
mov dword [0x1009a0d8], eax
je 0x1004bd4f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10045834
pop ecx
mov dword [0x1009a0d4], eax
mov eax, dword [0x1009a0d4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1004bdc8
cmp dword [0x1009a0d8], esi
je 0x1004bdc8
push eax
call fcn.100458a0
pop ecx
call eax
cmp eax, ebx
je 0x1004bd95
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1009a0d8]
call fcn.100458a0
pop ecx
call eax
test eax, eax
je 0x1004bd95
test byte [ebp - 0x18], 1
jne 0x1004bdc8
lea eax, [ebp - 0xc]
push eax
call fcn.1003fe7b
test eax, eax
pop ecx
je 0x1004bdb0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10041482
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1004bdbf
or dword [ebp + 0x10], 0x200000
jmp 0x1004bdf9
or dword [ebp + 0x10], 0x40000
jmp 0x1004bdf9
mov eax, dword [0x1009a0cc]
cmp eax, esi
je 0x1004bdf9
push eax
call fcn.100458a0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004bdf9
mov eax, dword [0x1009a0d0]
cmp eax, esi
je 0x1004bdf9
push dword [ebp - 4]
push eax
call fcn.100458a0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1009a0c8]
call fcn.100458a0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0xee4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xf0b010]
push edi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x73035a
nop
push eax
nop
call 0x777ee026
mov ebx, eax
push 0xf149e8
mov dword [ebp - 4], ebx
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
mov byte [ebx + edi], 0
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xee4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x754843d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xf149e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xee4b06
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
push 0xf149e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x73035f
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xee6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xee6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x75479910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xee6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xee6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xee6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x75479910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xee6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xee6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0xee6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.011190f4]
push eax
call dword [fcn.01119088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xee6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00ee7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x13e7af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x11190e0]
test esi, esi
jne 0x13e7b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x13e7b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x13e7b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x13e7b6a
jmp 0x13e7b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x1118bf0]
add eax, esi
call fcn.013e5610
test eax, eax
je 0x13e7b73
inc edi
cmp edi, dword [ebp - 4]
jb 0x13e7b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40eac9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x417018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.acdb19.dll_public:_void___thiscall_AcDbPathname::constructor_void_]
mov ecx, dword [esp + 0x28]
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.Ac1st19.dll_public:_wchar_t_const____thiscall_AcString::kwszPtr_void_const]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.acdb19.dll_public:_enum_PathErr___thiscall_AcDbPathname::Parse_wchar_t_const___int_]
mov esi, dword [sym.imp.acdb19.dll_public:_void___thiscall_AcDbPathname::GetExtension_wchar_t___const]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call esi
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.Ac1st19.dll_public:_class_AcString____thiscall_AcString::assign_wchar_t_const__]
push ecx
mov ecx, dword [esp + 0x30]
call edi
lea ecx, [esp + 0xc]
call dword [sym.imp.acdb19.dll_public:_void___thiscall_AcDbPathname::RemoveExtensionAlways_void_]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.mfc100u.dll_delete]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.acdb19.dll_public:_void___thiscall_AcDbPathname::destructor_void_]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4020e0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x417d08]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x402106
push 0x417d20
mov dword [0x417d20], 0x114
call esi
mov dword [0x417d08], eax
cmp dword [0x417d30], 2
jne 0x402163
test eax, eax
jne 0x402129
push 0x417d20
mov dword [0x417d20], 0x114
call esi
mov dword [0x417d08], eax
push edi
mov edi, dword [0x417d24]
test eax, eax
jne 0x40214a
push 0x417d20
mov dword [0x417d20], 0x114
call esi
mov dword [0x417d08], eax
cmp edi, 5
pop edi
jne 0x402163
mov eax, dword [0x417d28]
cmp eax, 1
je 0x40215f
cmp eax, 2
jne 0x402163
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x4052f0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4052d1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4052ef
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
inc esp
or bh, bh
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40534d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x405334
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40533d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x405347
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x405329
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4052b3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40539a
dec eax
je 0x405391
sub eax, 3
je 0x405388
mov dword [ebp - 4], 0x40
jmp 0x4053b7
inc ebp
cld
inc eax
add byte [eax], al
add bl, ch
das
mov dword [ebp - 4], 4
jmp 0x40539d
mov dword [ebp - 4], 0x20
jmp 0x40539d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4053e9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x405369
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00404bfa
pop es
jecxz 0x405380
imul edi, edi, 0x75
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4053f5
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c110
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40ec88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x417018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40c2c7
cmp byte [edi + 0x4a], bl
je 0x40c2c7
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40c2ba
lea esi, [esp + 0x10]
call fcn.0040bb20
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp edx, 0x10
jae 0x40c195
lea ecx, [esp + 0x10]
mov eax, ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [edi + 0x44]
push edx
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40c1cf
dec eax
je 0x40c1d2
sub eax, 2
lea esi, [esp + 0x10]
je 0x40c2c2
call fcn.0040a590
xor al, al
jmp 0x40c2c9
mov byte [edi + 0x4a], bl
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp edx, 0x10
jae 0x40c1e5
lea ecx, [esp + 0x10]
mov esi, dword [esp + 0xc]
sub esi, ecx
je 0x40c217
cmp edx, 0x10
jae 0x40c1f6
lea eax, [esp + 0x10]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40c2b1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp byte [edi + 0x4a], bl
je 0x40c2be
cmp esi, ebx
jne 0x40c188
or ecx, 0xffffffff
sub ecx, dword [esp + 0x20]
cmp ecx, 8
jbe 0x40c2e6
mov ecx, dword [esp + 0x20]
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40c2e6
cmp edx, esi
jae 0x40c299
push ecx
push esi
lea edx, [esp + 0x18]
push edx
call fcn.0040c950
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp esi, ebx
jbe 0x40c188
cmp edx, 0x10
jae 0x40c271
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x20]
pxor xmm0, xmm0
movq qword [eax + ecx], xmm0
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], esi
jae 0x40c291
lea eax, [esp + 0x10]
mov byte [eax + esi], bl
jmp 0x40c180
cmp esi, ebx
jne 0x40c262
mov dword [esp + 0x20], ebx
cmp edx, 0x10
jae 0x40c2aa
lea eax, [esp + 0x10]
mov byte [eax], bl
jmp 0x40c180
lea esi, [esp + 0x10]
call fcn.0040a590
xor al, al
jmp 0x40c2c9
lea esi, [esp + 0x10]
call fcn.0040a590
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040d342
add esp, 0x30
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x40cf30
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov dword [esi], vtable.AcTransProcMgrThread.0
je 0x40cf90
mov eax, dword [esi + 8]
push ebx
push edi
push eax
mov byte [esi + 0x1d], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_SwitchToThread]
xor edi, edi
call ebx
cmp byte [esi + 0x1c], 0
je 0x40cf8e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
inc edi
cmp edi, 5
jle 0x40cf76
cmp byte [esi + 0x1c], 0
jne 0x40cf80
call ebx
cmp byte [esi + 0x1c], 0
jne 0x40cf66
jmp 0x40cf8d
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
pop edi
pop ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40cfa5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
ret

Function at 0x40cfb0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x40cfe7
mov eax, dword [esi + 0x14]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 1
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
cmp byte [esi + 0x1c], 0
jne 0x40d023
mov eax, dword [esi + 4]
test eax, eax
je 0x40d006
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov word [esi + 0x1c], 1
pop esi
ret
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
push 0x40d050
call dword [sym.imp.mfc100u.dll_AfxBeginThread]
mov dword [esi + 4], eax
mov word [esi + 0x1c], 1
pop esi
ret

Function at 0x40d030
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40d048
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov byte [esi + 0x1c], 0
pop esi
ret

Function at 0x40d0d0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d0f6
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 8]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x1d], 0
pop esi
jne 0x40d10c
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret

Function at 0x40d342
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417018]
jne 0x40d34c
repz ret
jmp fcn.0040d81b
Function at 0x402d08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404140
test esi, esi
jne 0x402d3f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404230
jmp 0x402d60
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ba4
mov dword [esp], eax
test esi, esi
je 0x402d60
cmp dword [ebx], 0
je 0x402d60
dec esi
jmp 0x402d47
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4032d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x415020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403368
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403348
xor eax, eax
push ebp
push 0x403341
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403384
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403348
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x415020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x415020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x416044], 0
je 0x40401d
cmp word [0x416218], 0xd7b2
jne 0x403fe5
cmp dword [0x416220], 0
jbe 0x403fe5
mov eax, 0x416214
call dword [0x416230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404044
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x415030], 0
jne 0x404039
push 0
push 0x415064
push 0x41506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405bfe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405be8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c05
lea eax, [ebp - 0x10]
call fcn.00404140
ret

Function at 0x40a434
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a46d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404230
jmp 0x40a476
mov eax, ebx
mov edx, esi
call fcn.00404194
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a480
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a4a1
mov al, byte [esp]
jmp 0x40a4a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b8fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b960
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004043b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407718
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b967
lea eax, [ebp - 0xc]
call fcn.00404140
ret