joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
mov ebx, 0x401008
push ebx
mov dword [0x404fe8], edi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x404030], eax
cmp eax, esi
jne 0x4013a3
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x4010d0
mov dword [0x404030], eax
push 0x401050
call fcn.00401422
test eax, eax
jne 0x4012ae
push 0x401140
mov ebx, 0x401090
push ebx
call fcn.00401422
test eax, eax
jne 0x4012ae
push 0x401108
push ebx
call fcn.00401422
test eax, eax
je 0x4013a3
push 0x104
push 0x404ff0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40118c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4013ae
push 0x401180
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x404034], eax
test eax, eax
je 0x4013a3
push 0xfa
lea eax, [ebp - 0x104]
push eax
push dword [0x404fe8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40132e
push 0x5c
lea eax, [ebp - 0x104]
push eax
call fcn.004018e0
add esp, 8
test eax, eax
je 0x40132e
mov byte [eax + 1], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x401178
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40136d
mov eax, dword [section..text]
xor edi, edi
or ah, 0x40
push eax
push 0x404040
push edi
push edi
call dword [0x404034]
push dword [section..text]
push 0x404ff0
push edi
push edi
call dword [0x404034]
jmp 0x40139e
push 0x65
mov eax, dword [0x404fe8]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0
mov dword [0x404fec], eax
push 0x4014ae
push 0
push 0x64
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, dword [0x404fec]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.0040162d
test esi, esi
je 0x4013ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x404030], 0
je 0x4013c3
mov eax, dword [0x404030]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401422
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 8]
push 0x80000002
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401453
xor eax, eax
jmp 0x4014a7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401476
xor eax, eax
jmp 0x4014a7
lea eax, [ebp - 0xc]
lea ecx, [ebp - 8]
push eax
push 0x404040
push ecx
push 0
push 0x40119c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40149c
mov esi, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40162d
Capabilities:
Delete file
Delete registry value
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
jne 0x401661
dec eax
lea esi, [ebp + eax - 0x108]
push pe_nt_image_headers32
lea eax, [ebp - 0x188]
mov byte [esi], 0
push eax
push 0x67
push dword [0x404fe8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x188]
lea edx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4011b0
lea ecx, [ebp - 0x108]
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x2c8]
lea edx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401705
lea eax, [ebp - 4]
push eax
push 0x401018
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40170c
push 0x4011a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40170c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4011c0
push 0x4026d0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x404168], eax
xor eax, eax
mov al, byte [0x404169]
mov dword [0x404174], eax
mov eax, dword [0x404168]
shr dword [0x404168], 0x10
and eax, 0xff
mov dword [0x404170], eax
shl eax, 8
add eax, dword [0x404174]
mov dword [0x40416c], eax
call fcn.004026b0
mov dword [ebp - 4], 0
call fcn.004024d0
call fcn.004024c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40621c], eax
call fcn.00402060
mov dword [0x404148], eax
test eax, eax
je 0x4017b9
cmp dword [0x40621c], 0
jne 0x4017c3
push 0xffffffffffffffff
call fcn.00401940
add esp, 4
call fcn.00401de0
call fcn.00401d00
call fcn.00401910
mov esi, dword [0x40621c]
mov al, byte [esi]
cmp al, 0x22
je 0x4017ea
cmp al, 0x20
jbe 0x401817
inc esi
cmp byte [esi], 0x20
ja 0x4017e2
jmp 0x401817
inc esi
cmp byte [esi], 0x22
je 0x401816
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401811
xor eax, eax
mov al, bl
push eax
call fcn.00401ca0
add esp, 4
test eax, eax
je 0x40180b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4017f3
cmp byte [esi], 0x22
jne 0x401817
inc esi
cmp byte [esi], 0
je 0x401827
cmp byte [esi], 0x20
ja 0x401827
inc esi
cmp byte [esi], 0
jne 0x40181c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40184b
mov eax, dword [ebp - 0x40]
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 fcn.00401940
jmp 0x40188c
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 0x401980
Capabilities:
Terminate process

Disassembly:
mov dword [0x4041a0], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40419c], bl
jne 0x4019dc
cmp dword [0x406218], 0
je 0x4019ca
mov esi, dword [0x406210]
sub esi, 4
cmp esi, dword [0x406218]
jb 0x4019ca
mov eax, dword [esi]
test eax, eax
je 0x4019bf
call eax
sub esi, 4
cmp esi, dword [0x406218]
jae 0x4019b7
push 0x40401c
push 0x404014
call fcn.00401a00
add esp, 8
push 0x404024
push 0x404020
call fcn.00401a00
add esp, 8
test ebx, ebx
jne 0x4019fd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x402060
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x404248], 0
push ebx
push esi
push edi
push ebp
jne 0x4020b0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x40208e
mov dword [0x404248], 1
mov ebx, dword [esp + 0x10]
jmp 0x4020be
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4020a6
mov dword [0x404248], 2
jmp 0x4020be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x404248], 1
jne 0x40216d
test edi, edi
jne 0x4020e1
call esi
mov edi, eax
test edi, edi
jne 0x4020e1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4020fb
add esi, 2
cmp word [esi], 0
jne 0x4020e9
add esi, 2
cmp word [esi], 0
jne 0x4020e9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40215c
push ebp
call fcn.00402a00
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40215c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40214b
push ebx
call fcn.004029e0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404248], 2
jne 0x4021f1
test ebx, ebx
jne 0x402190
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402190
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4021a5
inc ebp
cmp byte [ebp], 0
jne 0x402197
inc ebp
cmp byte [ebp], 0
jne 0x402197
sub ebp, ebx
inc ebp
push ebp
call fcn.00402a00
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4021ca
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4027f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x4046d8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x402818
add ecx, 8
inc eax
cmp ecx, 0x404760
jb 0x402808
cmp dword [eax*8 + 0x4046d8], edx
lea ebx, [eax*8]
jne 0x4029d3
cmp dword [0x404154], 1
je 0x402998
cmp dword [0x404154], 0
jne 0x40284f
cmp dword [0x404158], 1
je 0x402998
cmp edx, 0xfc
je 0x4029d3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40288c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4028d0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4047ac
push ebp
call fcn.00402b20
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40478c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4046dc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402a80
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406110]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4029af
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4046dc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x402e60
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x406104], edx
push ebx
push esi
push edi
push ebp
jbe 0x403067
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x406110
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x403067
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x402ec9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x402eda
push 2
push 0
push edx
call fcn.00403300
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x402f76
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x402faf
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x402f3d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x402f2b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x402f12
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fa5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x402efd
jmp 0x402faf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fa5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x402faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x403056
cmp dword [esp + 0x10], 0
je 0x403008
cmp dword [esp + 0x10], 5
jne 0x402feb
mov dword [0x40415c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x404160], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00403290
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x403032
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x403032
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40415c], 0x1c
mov dword [0x404160], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40415c], 9
mov dword [0x404160], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4045e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x435780]
push ebx
push esi
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xc], 0
movaps xmm0, xmmword [0x435790]
push edi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 3
nop word [eax + eax]
push dword [esi]
call fcn.00404700
add esi, 4
lea eax, [ebp - 4]
cmp esi, eax
jne 0x404620
mov eax, 0x21
cmp eax, 0x1c5
jl 0x40463f
call 0x7444bc2d
add ch, al
cld
jne 0x404645
je 0x404645
call 0xf6f72f44
invalid
call fcn.00403d00
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add eax, 0x13
jne 0x404660
jmp 0xdc2c2e71
call 0x402250
mov eax, 0x13
cmp eax, 0x1a5
jl 0x404673
call 0x7444bc43
add ch, cl
pushfd
jne 0x404679
je 0x404679
jmp 0x6a40b118
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAnyAccessesGranted]
call fcn.00406770
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0x30], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.00406f50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx ebx, ax
test esi, esi
je 0x4046cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4046cf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
mov ecx, edi
call fcn.004077e0
mov ecx, edi
call fcn.00405fb0
call fcn.00404310
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b18c
mov esp, ebp
pop ebp
ret
Function at 0x40342c
Capabilities:
Query or enumerate registry value

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

Function at 0x403e5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x432044], 0
je 0x403ebd
cmp word [0x432218], 0xd7b2
jne 0x403e85
cmp dword [0x432220], 0
jbe 0x403e85
mov eax, 0x432214
call dword [0x432230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x403ee4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x430020], 0
jne 0x403ed9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40690c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406945
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040cc
jmp 0x40694e
mov eax, ebx
mov edx, esi
call fcn.00404030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406958
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 0x40697a
movzx eax, byte [esp]
jmp 0x40697c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40700c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406e84
mov eax, dword [0x43132c]
cmp byte [eax], 0
je 0x407088
mov eax, dword [0x431288]
call fcn.00402f34
call fcn.00402d9c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405dcc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4070d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4070be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x431268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4347f0]
call fcn.00404644
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x402e2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e85
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cc8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cc8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e6f
inc ebx
jmp 0x402e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e8c
lea eax, [ebp - 8]
call fcn.004045a4
ret

Function at 0x402e94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a4
test esi, esi
jne 0x402ecb
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.00404694
jmp 0x402eec
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cc8
mov dword [esp], eax
test esi, esi
je 0x402eec
cmp dword [ebx], 0
je 0x402eec
dec esi
jmp 0x402ed3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035d8
Capabilities:
Query or enumerate registry value

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

Function at 0x404420
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47004c], 0
je 0x404481
cmp word [0x470220], 0xd7b2
jne 0x404449
cmp dword [0x470228], 0
jbe 0x404449
mov eax, 0x47021c
call dword [0x470238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e06c
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 0x4044a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x40449d
push 0
push 0x46e064
push 0x46e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret