joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001747
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x1001766
cmp cx, 0x20
je 0x1001763
cmp cx, 9
jne 0x100176e
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x1001757
mov cx, word [eax]
xor edi, edi
test cx, cx
je 0x10018a4
test edi, edi
jne 0x100178c
cmp cx, 0x20
je 0x10017a6
cmp cx, 9
je 0x10017a6
cmp cx, 0x22
jne 0x100179b
xor ecx, ecx
test edi, edi
sete cl
mov edi, ecx
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x100177c
mov cx, word [eax]
test cx, cx
je 0x10018a4
push 2
pop edi
movzx ecx, cx
sub ecx, 0x50
je 0x100186c
sub ecx, edi
je 0x1001821
sub ecx, 5
je 0x10017f4
sub ecx, 0x19
je 0x100186c
sub ecx, edi
je 0x1001821
sub ecx, 5
jne 0x1001895
jmp 0x10017f4
cmp cx, 0x3a
je 0x10017f4
cmp cx, 0x20
je 0x10017f4
cmp cx, 9
jne 0x10017ff
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x10017e2
push 0x1014034
push eax
call fcn.01001712
jmp 0x1001895
cmp cx, 0x3a
je 0x1001821
cmp cx, 0x20
je 0x1001821
cmp cx, 9
jne 0x100182c
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x100180f
push 0x1014030
push eax
call fcn.01001712
mov ecx, dword [0x1014030]
cmp ecx, 0x10
jle 0x100184e
mov dword [0x1014030], 0x10
jmp 0x1001895
cmp ecx, edi
jge 0x1001895
mov dword [0x1014030], edi
jmp 0x1001895
cmp cx, 0x3a
je 0x100186c
cmp cx, 0x20
je 0x100186c
cmp cx, 9
jne 0x1001877
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x100185a
push str.__n_n_
push eax
call fcn.01001712
cmp dword [str.__n_n_], 0x40
jle 0x1001895
mov dword [str.__n_n_], 0x40
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x10017b5
pop edi
pop esi
ret 4

Function at 0x10047a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1014f14], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x10047c7
push esi
push esi
push esi
push esi
call edi
mov dword [0x1014f14], eax
cmp dword [0x1014f18], esi
jne 0x10047db
push esi
push esi
push 1
push esi
call edi
mov dword [0x1014f18], eax
cmp dword [0x1014f1c], esi
jne 0x10047fb
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x100471c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1014f1c], eax
cmp dword [ebp + 8], esi
push dword [0x1014f18]
je 0x1004820
mov dword [0x1014f68], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x1014f14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100484d
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1014f20]
cmp eax, esi
je 0x100483e
push esi
push 4
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1014f68], esi
je 0x100484d
push 5
call fcn.01004ce1
pop edi
pop esi
leave
ret 4
Function at 0x1007e2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101432c]
jne 0x1007e35
ret
jmp 0x1007e3a
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x101432c]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1015020]
test eax, eax
je 0x1007e5e
call eax
cmp dword [0x1015024], 0
je 0x1007ea5
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1015024]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01007e2c
add ebp, 0x2a8
leave
ret

Function at 0x1007eca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10015c8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007f20
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001604
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007f13
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1007f22
xor eax, eax
pop esi
leave
ret 4
Function at 0x10128a5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001608
call fcn.01012c18
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10128f8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10128f8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1012910
cmp ecx, 0x20b
je 0x10128fd
mov dword [ebp - 0x1c], ebx
jmp 0x1012924
cmp dword [eax + 0x84], 0xe
jbe 0x10128f8
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x101291e
cmp dword [eax + 0x74], 0xe
jbe 0x10128f8
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1015028], edi
mov dword [0x101502c], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101501c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1015018]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1015030], eax
call fcn.01012c12
cmp dword [0x10149f0], ebx
jne 0x1012981
push fcn.01012c12
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01012c00
push 0x1014010
push 0x101400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1015014]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1015010]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1014008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1012a0c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10129ec
cmp cl, 0x22
jne 0x10129dd
cmp byte [eax], 0x22
jne 0x10129f5
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1012a00
cmp cl, 0x20
jbe 0x10129f1
test byte [ebp - 0x54], 1
je 0x1012a17
movzx ecx, word [ebp - 0x50]
jmp 0x1012a1a
cmp byte [eax], 0x20
jbe 0x10129f5
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1012a0c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0100209c
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1012a38
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1012a74
mov eax, esi
jmp 0x1012a88
call fcn.01012c53
ret
Function at 0x4029b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029f5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a15
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404900
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ba8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404698
test esi, esi
jne 0x402bde
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404788
jmp 0x402bfc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402abc
mov edi, eax
test esi, esi
je 0x402bfc
cmp dword [ebx], 0
je 0x402bfc
dec esi
jmp 0x402be5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403164
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4dd008], 0x8088405
inc edx
mov dword [ebx + 0x4dd008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403730
Capabilities:
Query or enumerate registry value

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

Function at 0x404498
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e004c], 0
je 0x4044f9
cmp word [0x4e0220], 0xd7b2
jne 0x4044c1
cmp dword [0x4e0228], 0
jbe 0x4044c1
mov eax, 0x4e021c
call dword [0x4e0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4dd058
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 0x404520
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dd020], 0
jne 0x404515
push 0
push 0x4dd078
push 0x4dd058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40464c
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.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404614
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406160
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406390
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406390
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40626c
xor eax, eax
push ebp
push 0x406265
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fa8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40624a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40624a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406386
cmp byte [ebp - 0xd], 0
jne 0x4062b3
cmp byte [ebp - 0x12], 0
je 0x406386
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4062db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406386
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406318
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406386
cmp byte [ebp - 0xd], 0
je 0x406386
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406386
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409468
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x409499
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4094a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4094d1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4095e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40960a
test byte [ebp - 0xc], 0x10
jne 0x40960e
xor eax, eax
jmp 0x409610
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4097c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4097e4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409813
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x409988
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x409de0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.kernel32.dll_CreateDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40d2dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40d324
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404788
jmp 0x40d32f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004046ec
mov esp, ebp
pop ebp
ret 4

Function at 0x40d338
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d366
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40d36c
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40daf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d93c
mov eax, dword [0x4df770]
cmp byte [eax], 0
je 0x40db74
mov eax, dword [0x4df2f8]
call fcn.00402f88
call fcn.0040290c
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00409e0c
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40dbb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dbaa
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x4df264]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e0718]
call fcn.00405f6c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40ecdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ed46
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404900
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004092e8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed4d
lea eax, [ebp - 0x14]
call fcn.00404698
ret
Function at 0x40f658
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x4df35c]
cmp dword [eax], 0
je 0x40f68f
push 0xa
push 0x40f6e8
mov eax, dword [0x4df35c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4df35c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 4], eax
jmp 0x40f6e1
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4df83c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f6e1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xa
push 0x40f6e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f6e1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f6a4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x424130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x424166
push ebp
call fcn.004240c0
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x42418c
push ebp
call fcn.004240c0
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00423b20
mov esp, ebp
pop ebp
ret 4

Function at 0x429fac
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00429d90
pop ecx
pop ebp
ret

Function at 0x429fd8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.00429d90
cmp dword [ebp - 8], 1
jne 0x42a00c
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret