joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f1f6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x46f310
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46f22d
xor eax, eax
jmp 0x46f33f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x46f250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46f226
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x46f226
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x48e9bc
xor edi, edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x46f226
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x46f2ec
cmp dword [ecx], edi
jne 0x46f2ec
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x46f315
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x46f32a
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x46fbc0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x4c2810
push edi
mov ecx, esi
call fcn.0041cedf
mov ecx, dword [0x4c2870]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x46fc17
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x46fc7b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x46fc95
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041d09e
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x46fc7b
mov ecx, dword [0x4c2884]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x46fc7b
cmp cl, 0xf
je 0x46fc7b
cmp cl, 0x13
je 0x46fc7b
cmp cl, 0x10
je 0x46fc7b
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x46fc7b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4c2884]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
mov eax, dword [eax + ecx*4]
push dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 8]
push esi
push dword [eax + 0xc]
jmp 0x46fc0f
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x20d7b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x20a015
lea edi, [esi - 0x9015]
push edi
jmp 0x20d7ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x20d7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x20d7c0
mov eax, 1
add ebx, ebx
jne 0x20d7e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x20d7d8
jne 0x20d7f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x20d7d8
xor ecx, ecx
sub eax, 3
jb 0x20d808
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x20d87a
mov ebp, eax
add ebx, ebx
jne 0x20d813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x20d820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x20d844
inc ecx
add ebx, ebx
jne 0x20d830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x20d825
jne 0x20d841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x20d825
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x20d864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x20d855
jmp 0x20d7c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x20d864
add edi, ecx
jmp 0x20d7c6
pop esi
mov edi, esi
mov ecx, 0x2bf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x20d882
cmp byte [edi], 4
jne 0x20d882
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x20d887
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x20d8f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd3bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x20d8b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd4a4]
or eax, eax
je 0x20d8f0
mov dword [ebx], eax
add ebx, 4
jmp 0x20d8d1
call dword [esi + 0xd4a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x20d927
cmp al, 0xef
ja 0x20d91a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x20d8fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x20d909
mov ebp, dword [esi + 0xd4a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x20d95b
sub esp, 0xffffff80
jmp 0x2019c8
Function at 0x466d08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x466d10
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49192c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49197a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004913f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491993
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0d00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a0d08
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4a0df5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00422c64
mov edx, dword [ebp - 8]
mov ecx, 0x4a0e10
xor eax, eax
call fcn.004a0be4
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a0dc3
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4a0d22
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x39
call fcn.00426dfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00419f38
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004231e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x6e
call fcn.00426dcc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x414ecc]
call fcn.0041f384
call fcn.004070f0
jmp 0x4a0d22
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0dfc
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407a54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407a54
ret

Function at 0x4a0ec8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a0f22
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a0eee
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0efc
cmp edi, 1
jle 0x4a0efc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00427040
test eax, eax
jne 0x4a0f22
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a0f22
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a0f22
inc edi
dec esi
jne 0x4a0ede
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4a0f2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0f50
mov eax, dword [ebp - 4]
jmp 0x4a0f53
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a0f58
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a0fa5
xor ebx, ebx
jmp 0x4a0f9a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004198cc
test eax, eax
jne 0x4a0f99
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a1050
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0f7b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a0fb1
je 0x4a0fba
jmp 0x4a0fc3
call fcn.00422f10
mov esi, eax
jmp 0x4a0fc5
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a0fc5
xor esi, esi
test si, si
je 0x4a1050
xor ebx, ebx
jmp 0x4a0feb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a0fea
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1050
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0fd2
xor ebx, ebx
jmp 0x4a1045
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a1044
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a1039
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0f2c
push eax
mov eax, esi
call fcn.004a0f2c
pop edx
cmp edx, eax
jne 0x4a1044
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1050
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0ffa
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x403330
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.0040525c
test esi, esi
jne 0x403366
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.2_:q_iIt__n_qAbED_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040534c
jmp 0x403384
call sub.2_:q_iIt__n_qAbED_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031d4
mov edi, eax
test esi, esi
je 0x403384
cmp dword [ebx], 0
je 0x403384
dec esi
jmp 0x40336d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40430c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f201c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043a4
push 0x80000002
call fcn.00401330
test eax, eax
jne 0x404384
xor eax, eax
push ebp
push 0x40437d
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 0x4043c0
mov eax, dword [ebp - 4]
push eax
call fcn.00401338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404384
mov eax, dword [ebp - 4]
push eax
call fcn.00401328
ret
movzx eax, word [0x4f201c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f201c], ax
mov esp, ebp
pop ebp
ret

Function at 0x405024
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fe044], 0
je 0x405085
cmp word [0x4fe218], 0xd7b2
jne 0x40504d
cmp dword [0x4fe220], 0
jbe 0x40504d
mov eax, 0x4fe214
call dword [0x4fe230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.2_:q_iIt__n_qAbED_GetStdHandle
push eax
call sub.2_:q_iIt__n_qAbED_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4050ac
push 0xfffffffffffffff5
call sub.2_:q_iIt__n_qAbED_GetStdHandle
push eax
call sub.2_:q_iIt__n_qAbED_WriteFile
pop edx
ret
cmp byte [0x4f2028], 0
jne 0x4050a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.004012a0
pop edx
ret
Function at 0x4050b0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x5007c0
mov edi, 0x4fe040
cmp byte [ebx + 0x28], 0
jne 0x4050d8
cmp dword [edi], 0
je 0x4050d8
mov eax, dword [edi]
mov esi, eax
xor eax, eax
mov dword [edi], eax
call esi
cmp dword [edi], 0
jne 0x4050c9
cmp dword [0x4f2004], 0
je 0x4050f2
call fcn.00404f90
call fcn.00405024
xor eax, eax
mov dword [0x4f2004], eax
cmp byte [ebx + 0x28], 2
jne 0x405106
cmp dword [section..data], 0
jne 0x405106
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00404e68
cmp byte [ebx + 0x28], 1
jbe 0x40511a
cmp dword [section..data], 0
je 0x40513d
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x40513d
mov eax, edi
call fcn.00407198
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 4]
je 0x40513d
test esi, esi
je 0x40513d
push esi
call sub.2_:q_iIt__n_qAbED_FreeLibrary
call fcn.00404e40
cmp byte [ebx + 0x28], 1
jne 0x40514b
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x405156
call fcn.00404ff4
cmp dword [ebx], 0
jne 0x405175
cmp dword [0x4fe024], 0
je 0x40516a
call dword [0x4fe024]
mov eax, dword [section..data]
push eax
call sub.2_:q_iIt__n_qAbED_ExitProcess
mov eax, dword [ebx]
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
jmp 0x4050f2

Function at 0x4051fc
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 [0x4f2030], 0
je 0x405222
mov edx, esi
mov eax, ebx
call dword [0x4f2030]
jmp 0x405231
mov eax, 8
call fcn.00402eec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4fe045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.2_:q_iIt__n_qAbED_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406ebc
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.2_:q_iIt__n_qAbED_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070ec
push 0x80000001
call fcn.00401330
test eax, eax
je 0x406f3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070ec
push 0x80000002
call fcn.00401330
test eax, eax
je 0x406f3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407108
push 0x80000001
call fcn.00401330
test eax, eax
jne 0x406fc8
xor eax, eax
push ebp
push 0x406fc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406cf8
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 fcn.00401338
test eax, eax
je 0x406fa6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407128
mov eax, dword [ebp - 8]
push eax
call fcn.00401338
test eax, eax
je 0x406fa6
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 0x406fc8
mov eax, dword [ebp - 8]
push eax
call fcn.00401328
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.2_:q_iIt__n_qAbED_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.2_:q_iIt__n_qAbED_GetThreadLocale
push eax
call sub.2_:q_iIt__n_qAbED_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4070e2
cmp byte [ebp - 0xd], 0
jne 0x40700f
cmp byte [ebp - 0x12], 0
je 0x4070e2
lea eax, [ebp - 0x11d]
push eax
call sub.2_:q_iIt__n_qAbED_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407028
dec ebx
cmp byte [ebx], 0x2e
je 0x407037
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407027
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4070e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407074
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.2_:q_iIt__n_qAbED_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.2_:q_iIt__n_qAbED_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070e2
cmp byte [ebp - 0xd], 0
je 0x4070e2
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.2_:q_iIt__n_qAbED_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.2_:q_iIt__n_qAbED_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070e2
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.2_:q_iIt__n_qAbED_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.2_:q_iIt__n_qAbED_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409188
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40924c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405d34
jne 0x4091f6
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00405f80
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405c00
push eax
push 0
call fcn.004090e0
mov ebx, eax
jmp 0x4091dd
dec ebx
test ebx, ebx
jle 0x4091ec
mov eax, dword [ebp - 4]
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x4091dc
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405f80
push 0
push 0
call fcn.00409090
mov ebx, eax
mov edi, ebx
dec edi
mov edx, edi
mov eax, esi
call fcn.00405f80
mov eax, dword [esi]
call fcn.00405c00
push eax
push ebx
call fcn.00409090
cmp eax, edi
jne 0x409236
mov eax, dword [ebp - 4]
call fcn.00405c00
push eax
call fcn.004093e8
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409253
lea eax, [ebp - 4]
call fcn.00405a30
ret

Function at 0x409270
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4092ed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
call fcn.00409188
test al, al
je 0x4092d7
xor eax, eax
push ebp
push 0x4092d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
call fcn.00409178
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092d7
mov eax, dword [ebp - 4]
call fcn.00405c00
push eax
call fcn.004093e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092f4
lea eax, [ebp - 4]
call fcn.00405a30
ret

Function at 0x409300
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40937d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
call fcn.00409188
test al, al
je 0x409367
xor eax, eax
push ebp
push 0x409360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
call fcn.00409180
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409367
mov eax, dword [ebp - 4]
call fcn.00405c00
push eax
call fcn.004093e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409384
lea eax, [ebp - 4]
call fcn.00405a30
ret
Function at 0x40bf34
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x40c036
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405a30
cmp dword [0x4f2f58], 4
jle 0x40bfa4
push 0
push 0
mov eax, edi
call fcn.00405c00
push eax
call fcn.00409028
mov ebx, eax
test ebx, ebx
jbe 0x40c020
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405f80
push ebx
mov eax, dword [esi]
call fcn.00405c00
push eax
mov eax, edi
call fcn.00405c00
push eax
call fcn.00409028
jmp 0x40c020
lea eax, [ebp - 4]
mov edx, edi
call fcn.004054a8
lea eax, [ebp - 0x109]
xor ecx, ecx
mov edx, 0x104
call fcn.00403944
push 0x104
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.004056c0
push eax
call fcn.00409020
test eax, eax
je 0x40c020
xor ebx, ebx
jmp 0x40bfe3
inc ebx
cmp ebx, 0x104
jae 0x40bff5
cmp byte [ebp + ebx - 0x109], 0
jne 0x40bfe2
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405948
lea eax, [ebp - 4]
call fcn.00405718
mov edx, eax
lea eax, [ebp - 0x109]
mov ecx, ebx
call fcn.004030d4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c03d
lea eax, [ebp - 4]
call fcn.0040525c
ret

Function at 0x40e588
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbbc
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, dword [0x502a6c]
call fcn.004045f4
test al, al
jne 0x40e654
push 0x400
lea ecx, [esp + 0x48]
mov edx, esi
mov eax, ebx
call fcn.0040e2d8
mov eax, dword [0x4fd0f8]
cmp byte [eax], 0
je 0x40e624
mov eax, dword [0x4fcfd8]
call fcn.00403864
call fcn.00403084
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004095e8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040e044
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call fcn.00409108
push eax
call fcn.00409468
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e668
push 0xfffffffffffffff4
call fcn.00409108
push eax
call fcn.00409468
jmp 0x40e654
mov esi, 0x40e66c
lea edi, [esp + 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push eax
call fcn.004093b8
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call fcn.00409778
add esp, 0x444
pop edi
pop esi
pop ebx
ret