joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2f0
mov cl, 0x64
mov al, 0x6c
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2e], cl
push ebx
mov cl, 0x72
push ebp
mov byte [esp + 0x33], al
mov byte [esp + 0x34], al
mov byte [esp + 0x37], al
mov byte [esp + 0x38], al
mov byte [esp + 0x19], al
push esi
mov byte [esp + 0x15], cl
mov byte [esp + 0x19], cl
mov byte [esp + 0x22], cl
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x38]
xor ebx, ebx
mov dl, 0x79
push eax
push ecx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x40], 0x6e
mov byte [esp + 0x41], 0x74
mov byte [esp + 0x45], 0x2e
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x1c], 0x5a
mov byte [esp + 0x1d], 0x77
mov byte [esp + 0x1e], 0x51
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], 0x56
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x75
mov byte [esp + 0x28], 0x61
mov byte [esp + 0x2a], 0x4d
mov byte [esp + 0x2b], 0x65
mov byte [esp + 0x2c], 0x6d
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x10009ebe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x10009ebe
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x74]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x304]
push 0x3c
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x5c]
push 0x1c
push ecx
push ebx
push esi
push edi
call ebp
test eax, eax
jl 0x10009e9e
cmp dword [esp + 0x70], 0x1000000
jne 0x10009e9e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
cmp eax, edx
je 0x10009e9e
push ebx
lea eax, [esp + 0xf8]
push 0x20c
push eax
push 2
push esi
push edi
call ebp
test eax, eax
jl 0x10009e9e
mov eax, dword [esp + 0xf8]
push 0x5c
push eax
call fcn.10019f93
add eax, 2
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.1001b0e5
add esp, 0x10
test eax, eax
jne 0x10009e9e
cmp esi, dword [esp + 0x308]
jne 0x10009eb1
cmp dword [esp + 0x10], ebx
jne 0x10009eb1
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
add esi, 0x10000
cmp esi, 0x80000000
jae 0x10009ebe
jmp 0x10009e20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f0
ret
Function at 0x1000b6a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x1003ca3c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x1000b6b7
call esi
mov dword [0x1003ca3c], eax
inc dword [0x1003ca40]
call esi
mov esi, dword [0x1003ca3c]
mov ecx, eax
sub ecx, esi
pop esi
cmp ecx, 0x3e8
jbe 0x1000b6ed
mov edx, dword [0x1003ca40]
mov dword [0x1003ca40], 0
mov dword [0x1003ca38], edx
mov dword [0x1003ca3c], eax
ret

Function at 0x1000b880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, 0x64
lea edi, [esp + 0xc]
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], al
mov al, 0x6c
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xe], 0x33
mov byte [esp + 0x10], 0x38
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x15], 0
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x1000b925
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
test ecx, ecx
jne 0x1000b939
xor eax, eax
add esp, 0x20c
ret
add eax, ecx
add esp, 0x20c
ret

Function at 0x1000b950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, 0x64
lea edi, [esp + 0xc]
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], al
mov al, 0x6c
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xe], 0x33
mov byte [esp + 0x10], 0x39
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x15], 0
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x1000b9f5
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
test ecx, ecx
jne 0x1000ba09
xor eax, eax
add esp, 0x20c
ret
add eax, ecx
add esp, 0x20c
ret
Function at 0x1000d920
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
push ebx
push esi
push 0x264d4161
call fcn.1000b0a0
add esp, 4
test eax, eax
je 0x1000da9a
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov al, 0x2e
mov byte [esp + 0xe], al
mov byte [esp + 0x2d], al
lea eax, [esp + 8]
mov bl, 0x6c
mov cl, 0x62
push eax
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], 0x69
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], 0x65
mov byte [esp + 0x10], 0x67
mov byte [esp + 0x11], bl
mov byte [esp + 0x13], 0x64
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], 0x47
mov byte [esp + 0x2c], 0x4c
mov byte [esp + 0x2d], 0x45
mov byte [esp + 0x2e], 0x53
mov byte [esp + 0x2f], 0x76
mov byte [esp + 0x30], 0x32
mov byte [esp + 0x32], 0x64
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0
call esi
test eax, eax
je 0x1000da9a
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
je 0x1000da9a
mov al, 0x66
lea edx, [esp + 0x34]
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], al
mov al, 0x73
push edi
mov byte [esp + 0x45], al
mov byte [esp + 0x23], al
lea eax, [esp + 0xc]
mov cl, 0x61
push edx
push eax
mov byte [esp + 0x40], 0x65
mov byte [esp + 0x41], 0x67
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], 0x53
mov byte [esp + 0x44], 0x77
mov byte [esp + 0x45], cl
mov byte [esp + 0x46], 0x70
mov byte [esp + 0x47], 0x42
mov byte [esp + 0x48], 0x75
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x72
mov byte [esp + 0x4e], 0
mov byte [esp + 0x20], 0x67
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x52
mov byte [esp + 0x23], 0x65
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x50
mov byte [esp + 0x27], 0x69
mov byte [esp + 0x28], 0x78
mov byte [esp + 0x29], 0x65
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2c], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [0x1003d490], eax
call esi
push eax
call edi
pop edi
mov dword [0x1003d48c], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x3c
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x1000f6b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov al, 0x31
mov cl, 0x64
mov byte [esp + 3], al
mov byte [esp + 4], al
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x13], al
mov byte [esp], cl
mov byte [esp + 2], cl
mov byte [esp + 6], cl
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x17], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x20], al
mov byte [esp + 7], cl
mov byte [esp + 8], cl
lea eax, [esp]
mov dl, 0x33
mov cl, 0x44
push eax
mov byte [esp + 5], dl
mov byte [esp + 9], 0x2e
mov byte [esp + 0xd], 0
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], cl
mov byte [esp + 0x15], 0x4f
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x18], 0x32
mov byte [esp + 0x19], 0x43
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1d], 0x74
mov byte [esp + 0x1f], cl
mov byte [esp + 0x21], 0x76
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x63
mov byte [esp + 0x25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1000f775
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1000f775
mov eax, 0x80004005
add esp, 0x24
ret 0x28
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000f790
mov eax, 0x80004005
add esp, 0x24
ret 0x28
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
call eax
add esp, 0x24
ret 0x28
Function at 0x100142e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ebx, dword [ebp + 0x14]
push ebx
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001435e
mov ecx, ebx
mov esi, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 1
mov dword [ebp - 0x14], esi
jmp 0x1001435e
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016320
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov dword [esp], 0
test eax, eax
je 0x1001637c
mov eax, dword [esp + 8]
push esi
push 0
push 0
push eax
push fcn.10016060
push 0
push 0
call fcn.1001ab8f
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x10016360
test esi, esi
je 0x10016360
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [esp]
pop ecx
ret 8
mov edx, dword [esp + 8]
push edx
call fcn.10016060
pop ecx
ret 8
Function at 0x10017ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100243f8
push 0x10019c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10017b7b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10017b7b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x10017b7b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10017b7b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017cb0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003ef80], eax
je 0x10017cc6
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x1003ef90]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10017d19
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10006390
cmp dword [esi + 4], ebp
jne 0x10017d08
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10017d08
push eax
call fcn.10017d90
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10019670
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10017cd5
mov dword [0x1003ef90], ebp
call fcn.10017d60
mov esi, dword [0x1003ef8c]
cmp esi, ebp
je 0x10017d4d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.10019670
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10017d35
pop ebx
pop edi
mov dword [0x1003ef8c], ebp
mov dword [0x1003ef80], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10018080
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1003ef84]
push esi
test eax, eax
push edi
jne 0x100180f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x100180f4
push 8
call fcn.10019e52
mov esi, eax
add esp, 4
test esi, esi
jne 0x100180b0
mov edi, 8
jmp 0x100180cd
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100180e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10019670
add esp, 4
mov dword [0x1003ef84], edi
mov eax, edi
pop edi
mov dword [0x1003ef88], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x1003ef8c]
mov dword [esi], eax
mov dword [0x1003ef8c], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x100186b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024408
push 0x10019c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001873a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10018733
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10018733
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1001873a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018da0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x10018dc8
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x10018dec
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10018de4
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10018df3
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x10018dd4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10018ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0x3c]
push edi
add ecx, eax
xor ebx, ebx
mov ebp, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x10], ecx
mov edi, dword [eax + ebp + 0x24]
mov esi, dword [eax + ebp + 0x1c]
mov edx, dword [eax + ebp + 0x20]
mov ecx, dword [eax + ebp + 0x10]
add edi, eax
add esi, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xf8]
add edx, eax
mov dword [esp + 0x20], esi
test edi, 0xffff0000
jne 0x10018f66
cmp edi, ecx
jb 0x10018f59
mov edx, dword [eax + ebp + 0x14]
lea edx, [edx + ecx - 1]
cmp edi, edx
ja 0x10018f59
sub edi, ecx
mov ebx, dword [esi + edi*4]
jmp 0x10018fe7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
mov ecx, dword [eax + ebp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
jle 0x10018fe9
mov dword [esp + 0x1c], edx
jmp 0x10018f83
mov edi, dword [esp + 0xf8]
mov esi, dword [edx]
add esi, eax
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x10018fab
test cl, cl
je 0x10018fa7
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x10018fab
add esi, 2
add edi, 2
test cl, cl
jne 0x10018f87
xor ecx, ecx
jmp 0x10018fb0
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x10018fd2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + ebp + 0x18]
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jl 0x10018f7c
jmp 0x10018fe9
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [edx + esi*2]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + ecx*4]
add ebx, eax
lea ecx, [eax + ebp]
cmp ebx, ecx
jb 0x100190b8
mov edx, dword [esp + 0x10]
add edx, ebp
add edx, eax
cmp ebx, edx
ja 0x100190b8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x28]
push 0x2e
push ecx
call fcn.1001a620
add esp, 8
test eax, eax
je 0x100190b8
mov byte [eax], 0
inc eax
lea edx, [esp + 0x8c]
push eax
push edx
call esi
mov al, 0x6c
lea ecx, [esp + 0x28]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x2e
push eax
push ecx
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100190b8
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.10018ef0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x404588
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040742c
test esi, esi
jne 0x4045c0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407568
jmp 0x4045de
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044cc
mov edi, eax
test esi, esi
je 0x4045de
cmp dword [ebx], 0
je 0x4045de
dec esi
jmp 0x4045c7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406714
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x509050], 0
je 0x406775
cmp word [0x50932c], 0xd7b2
jne 0x40673d
cmp dword [0x509334], 0
jbe 0x40673d
mov eax, 0x509328
call dword [0x509344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x4067a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x502030], 0
jne 0x406791
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x502038], 0
je 0x406926
mov edx, esi
mov eax, ebx
call dword [0x502038]
jmp 0x406935
mov eax, 8
call fcn.00404214
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x509051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4068c8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x407f78
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407fba
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407fda
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040762c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x409444
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4095ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040742c
cmp si, word [0x5029e0]
jb 0x4094de
cmp si, word [0x502be0]
ja 0x4094de
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4094de
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5029e0]
jae 0x4094b8
mov edi, ebx
dec edi
jmp 0x4094d9
cmp si, word [ebx*8 + 0x5029e0]
jbe 0x4094c8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4094d9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5029e4]
call fcn.00409354
jmp 0x4094de
cmp edi, dword [ebp - 0xc]
jae 0x4094a2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40958d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40958d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040762c
push dword [ebp - 0x164]
push 0x4095c8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040762c
push dword [ebp - 0x168]
push 0x4095d8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040762c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004079e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095b2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407424
ret