joyce8/EMBER2024-capa huggingface dataset:
Function at 0x24d93bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x24da27f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
lea ecx, [esp]
mov dword [esp + 0x34], eax
call fcn.24d92790
push str.PropInfo_UiControlType
mov dword [esp + 0x2c], 0
call fcn.24d8c770
add esp, 4
push 1
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 5
call fcn.24d92890
mov ecx, dword [esp + 0x30]
lea edx, [esp]
push edx
call fcn.24d92500
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.24d92830
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x24d94c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x24da2955
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebx
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov ecx, dword [esp + 0x20]
push ecx
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 1
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x24d976d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x24da2d82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push str.NativeAccess
lea ecx, [esp + 0xc]
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_unsigned_short_int_const__]
push str.DAOAccess
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_unsigned_short_int_const__]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x24dad28c]
mov byte [esp + 0x34], 1
call fcn.24d953f0
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x14], 0
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18

Function at 0x24d97fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x24da2e75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_unsigned_short_int_const__]
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_unsigned_short_int_const__]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], ecx
mov cx, word [esp + 0x34]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0xc], eax
mov ax, word [esp + 0x30]
mov word [esi + 0x1a], cx
push edx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 1
mov word [esi + 0x18], ax
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_unsigned_short_int_const__]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x24d98720
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x24da2f56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 5
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 6
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 7
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 8
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::constructor_class_CXLib301::SWCharString_const__]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x24d9fd30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x24da3958
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
mov dword [ebx], 0xff
mov dword [edi], 0
mov al, byte [0x24dad240]
test al, al
je 0x24d9fd8a
cmp word [esi], 0x200c
jne 0x24d9fd8a
push str.VV_VT_vtValue_____VT_ARRAYVT_VARIANT_
push 0x1ff
push 0x24da65ac
call fcn.24d81790
add esp, 0xc
movzx eax, word [esi]
cmp eax, 0x17
ja case.0x24d9fd96.15
jmp dword [eax*4 + 0x24d9ff4c]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov esi, 8
jmp 0x24d9fdd5
mov esi, 0xc
jmp 0x24d9fdd5
mov eax, dword [esi + 8]
test eax, eax
je case.0x24d9fd96.0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea esi, [eax + eax + 2]
test esi, esi
je case.0x24d9fd96.0
push ebp
push esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x24d9fe79
pop ebp
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esi + 8]
test edx, edx
setne al
neg al
mov word [esp + 0xc], 0xb
sbb eax, eax
mov word [esp + 0x14], ax
push ebx
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x30], 0
call fcn.24d9fd30
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov esi, 0x10
jmp 0x24d9fdd5
mov esi, 1
jmp 0x24d9fdd5
mov esi, 2
jmp 0x24d9fdd5
mov esi, 4
jmp 0x24d9fdd5
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
push ebx
push esi
push ebp
push ecx
mov dword [esp + 0x4c], 0
call fcn.24d9f8c0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x24d9fed1
mov edx, dword [ebx]
push edx
push ebp
call fcn.24d90750
add esp, 8
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov al, byte [0x24dad240]
test al, al
je 0x24d9fef9
cmp word [esp + 0x38], 0
je 0x24d9fef9
push str._isNull
push 0x255
push 0x24da65ac
call fcn.24d81790
add esp, 0xc
mov eax, dword [esp + 0x34]
mov dword [eax], ebp
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov al, byte [0x24dad240]
test al, al
je 0x24d9ff34
push str.FALSE
push 0x23e
push 0x24da65ac
call fcn.24d81790
add esp, 0xc
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 0x258
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x24da0334
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x24dad0a4]
sub esp, 0x528
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x24da0356
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24da04cb
push dword [0x24dad138]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x24da04cb
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x24da038b
mov byte [ebp - 0x528], bl
push esi
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x24da03a3
mov byte [ebp - 0x320], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x24da03c1
mov byte [ebp - 0x110], bl
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x24da03de
mov byte [ebp - 0x218], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.24da0299
lea eax, [ebp - 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x24da03fb
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x420]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x24da040f
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x217], bl
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.24da0299
lea eax, [ebp - 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x24da043e
sub eax, ecx
lea ecx, [ebp - 0x420]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x24da0450
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
mov byte [ebp + ecx - 0x10f], bl
call fcn.24da01d3
test eax, eax
pop esi
jne 0x24da0491
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.24da01d3
test eax, eax
jne 0x24da04bf
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.24da01d3
test eax, eax
jne 0x24da04cb
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.24da01d3
test eax, eax
je 0x24da04cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x24da0e10
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x24dad1d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.24da0de0
mov eax, 0x24d80000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x24da0e72
cmp dword [ebp - 0x1c], 5
jb 0x24da0e8a
jmp 0x24da0e86
cmp dword [ebp - 0x10], 1
jne 0x24da0e8a
cmp dword [ebp - 0x1c], 4
ja 0x24da0e86
jne 0x24da0e8a
cmp dword [ebp - 0x18], 0
jbe 0x24da0e8a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x24da688c
call fcn.24d81120
test eax, eax
jge 0x24da0eab
mov byte [0x24dad230], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.24da0731
add ebp, 0x78
leave
ret
Function at 0x10001060
Capabilities:
Enumerate gui resources
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf682c
call fcn.10003660
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0xf682c]
push ecx
push eax
lea edx, [ebp - 0xf6828]
push edx
push esi
mov dword [ebp - 0xf682c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x40
push 0x3000
push 0xf6824
push 0
call dword [fcn.10006534]
mov esi, eax
push 0xf6824
lea eax, [ebp - 0xf6828]
push eax
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
test esi, esi
je 0x100010fa
push 0
push esi
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002c60
mov esp, ebp
pop ebp
ret

Function at 0x10001300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x25
lea esi, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.100024c0
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x10001342
lea eax, [ebp - 0x20]
push 0x1000427c
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
je 0x10001363
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov bl, 1
jmp 0x10001365
xor bl, bl
cmp dword [ebp - 0xc], esi
jb 0x10001377
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
test bl, bl
pop ebx
je 0x10001390
push str.C:Program_Files__x86_FonsdTask.xml
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:Program_Files__x86_Fonsdkdsd.dat
jmp 0x1000139a
call fcn.10001110
push str.C:Program_Files__x86_FonsdTask.xml
call fcn.10001060
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.10002c60
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100037f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x100023b2
cmp byte [ebx + 0x49], 0
je 0x100023b2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x100023a6
lea esi, [ebp - 0x2c]
call fcn.10002040
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10002293
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x100022cb
dec eax
je 0x100022cf
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x100023ad
call fcn.10001420
xor al, al
jmp 0x100023b4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100022df
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000230d
cmp edi, 0x10
jae 0x100022ee
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000239e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x100023aa
test esi, esi
jne 0x10002287
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x100023cf
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x100023cf
cmp edi, esi
jae 0x10002387
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10002690
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10002287
mov ecx, eax
cmp edi, 0x10
jae 0x10002363
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000237e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10002281
test esi, esi
jne 0x10002359
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10002396
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10002281
lea esi, [ebp - 0x2c]
call fcn.10001420
xor al, al
jmp 0x100023b4
lea esi, [ebp - 0x2c]
call fcn.10001420
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002c60
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x10002c60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10006018]
jne 0x10002c6a
repz ret
jmp fcn.10003179
Function at 0x402e1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404544
test esi, esi
jne 0x402e53
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.00404634
jmp 0x402e74
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb8
mov dword [esp], eax
test esi, esi
je 0x402e74
cmp dword [ebx], 0
je 0x402e74
dec esi
jmp 0x402e5b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x489020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035d8
xor eax, eax
push ebp
push 0x4035d1
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 0x403614
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 0x4035d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x489020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x489020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40433c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b04c], 0
je 0x40439d
cmp word [0x48b220], 0xd7b2
jne 0x404365
cmp dword [0x48b228], 0
jbe 0x404365
mov eax, 0x48b21c
call dword [0x48b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48906c
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 0x4043c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x489030], 0
jne 0x4043b9
push 0
push 0x489064
push 0x48906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x46600c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48a5ac]
cmp byte [eax + 0xc], 0
je 0x466179
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466172
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48bba0], 0
jne 0x466060
push 0x466180
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x466188
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bba0], eax
cmp dword [0x489e98], 0
jne 0x46615b
push 0x466198
call sub.kernel32.dll_LoadLibraryA
mov dword [0x489e98], eax
cmp dword [0x489e98], 0
je 0x46615b
push 0x4661a4
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bba4], eax
push 0x4661b4
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bba8], eax
push 0x4661c8
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbac], eax
push 0x4661e0
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbb0], eax
push 0x4661f8
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbb4], eax
push 0x46620c
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbb8], eax
push 0x466224
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbbc], eax
push 0x46623c
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbc0], eax
push 0x466258
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbc4], eax
push 0x466264
mov eax, dword [0x489e98]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bbc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466179
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46a218
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404544
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x46a267
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047b4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471a5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x471aac]
test si, 4
je 0x471a70
or bl, 1
test si, 8
je 0x471a7a
or bl, 4
test si, 1
je 0x471a84
or bl, 8
test si, 2
je 0x471a8e
or bl, 0x10
test si, 0x10
je 0x471a98
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471aa7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret