joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cb40
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x20]
call fcn.00439560
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x44cb65
mov edi, dword [edi]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 9
mov byte [esp + 0x17], 0x22
mov byte [esp + 0x18], 9
mov byte [esp + 0x19], 0xa
mov byte [esp + 0x1a], 9
mov byte [esp + 0x1b], 0x7a
mov byte [esp + 0x1c], 9
mov byte [esp + 0x1d], 9
mov byte [esp + 0x1e], 9
mov al, byte [esp + 0x15]
cmp byte [esp + 0x14], 0
jne 0x44cbd8
xor esi, esi
lea ebx, [esi + 0x7f]
nop dword [eax]
mov al, byte [esp + esi + 0x15]
mov ecx, 9
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x1a
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [esp + esi + 0x15], dl
inc esi
cmp esi, 0xa
jb 0x44cbb0
mov ebx, dword [esp + 0x10]
push 5
push 0
push 0
push edi
lea eax, [esp + 0x25]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x34]
cmp edx, 8
jb 0x44cc24
mov eax, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x44cc1a
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x44cc39
push edx
push eax
call fcn.0047917e
add esp, 8
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 1
jl 0x44cb52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0049a999
int3
Function at 0x451b70
Capabilities:
Get common file path
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdc5b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4fd0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x23c]
call fcn.00431d30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x244], eax
cmp ebx, eax
je 0x451cfd
nop word [eax + eax]
push 0x4ed88c
mov edx, ebx
lea ecx, [ebp - 0x230]
call fcn.004330b0
add esp, 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x451c0e
cmp eax, 2
jne 0x451cb2
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x451c18
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x451cb2
push 2
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push 0
push 0x24000002
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x451cb2
push 4
push 0x3000
push 0x80000
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
nop dword [eax]
push 0
lea eax, [ebp - 0x240]
push eax
push 0x80000
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x451c80
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x8000
push 0x80000
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x451cee
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451ce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451d24
push edx
push ecx
call fcn.0047917e
add esp, 8
add ebx, 0x18
cmp ebx, dword [ebp - 0x244]
jne 0x451bd0
lea ecx, [ebp - 0x23c]
call fcn.00432fd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047913d
mov esp, ebp
pop ebp
ret
call fcn.0049a999
int3
Function at 0x456d70
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce548
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fd0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x456de6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x456de6
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x456e04
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047913d
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.00425730
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00456ed0
push 0x4f771c
lea eax, [ebp - 0x50]
push eax
call fcn.004919bf
int3

Function at 0x4572b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce604
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fd0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x507698]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x50650c]
cmp eax, dword [ecx + 0x90]
jg 0x457328
push esi
push dword [ebp + 0xc]
push dword [0x506508]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x45736f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047913d
mov esp, ebp
pop ebp
ret 8
push 0x50650c
call fcn.00479b1b
add esp, 4
cmp dword [0x50650c], 0xffffffff
jne 0x4572f8
mov ecx, 0x506508
mov dword [ebp - 4], 0
call fcn.00456d70
push 0x4d1290
call fcn.00479592
push 0x50650c
mov dword [ebp - 4], 0xffffffff
call fcn.00479ad1
add esp, 8
jmp 0x4572f8
push 0x4d2e98
lea ecx, [ebp - 0x28]
call fcn.00425730
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00456ed0
push 0x4f771c
lea eax, [ebp - 0x50]
push eax
call fcn.004919bf
int3
Function at 0x4573a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce654
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4fd0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x4573e2
xor esi, esi
jmp 0x4573ed
push ebx
call fcn.00459cc0
add esp, 4
mov esi, eax
mov dword [ebp - 0x5c], esi
push 1
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.00452650
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
call fcn.00456d70
mov eax, dword fs:[0x2c]
mov ecx, dword [0x507698]
mov byte [ebp - 4], 2
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x50650c]
cmp eax, dword [ecx + 0x90]
jg 0x4574a4
push esi
push ebx
push dword [0x506508]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4574ec
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x457461
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x10]
mov dword [ebp - 4], 6
test esi, esi
je 0x457486
xor al, al
mov edi, esi
mov ecx, ebx
rep stosb byte es:[edi], al
push esi
call fcn.00459d20
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047913d
mov esp, ebp
pop ebp
ret 8
push 0x50650c
call fcn.00479b1b
add esp, 4
cmp dword [0x50650c], 0xffffffff
jne 0x457430
mov ecx, 0x506508
mov byte [ebp - 4], 3
call fcn.00456d70
push 0x4d1290
call fcn.00479592
push 0x50650c
mov byte [ebp - 4], 2
call fcn.00479ad1
add esp, 8
jmp 0x457430
push 0x4d2e98
lea ecx, [ebp - 0x28]
call fcn.00425730
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x50]
call fcn.00456ed0
push 0x4f771c
lea eax, [ebp - 0x50]
push eax
call fcn.004919bf
int3
Function at 0x46bd20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 4
jb 0x46bd58
mov esi, eax
shr esi, 2
nop
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x46bd40
mov dword [esp + 0x24], eax
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x46be47
cmp eax, 8
jb 0x46be28
mov ebx, eax
mov esi, edi
and ebx, 0xfffffff8
xorps xmm4, xmm4
sub esi, edx
xorps xmm3, xmm3
mov dword [esp + 0x14], esi
mov ecx, edx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
movd xmm2, dword [eax + ecx]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 4]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [edi + ebp + 4]
add ebp, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, ebx
jb 0x46bdb0
mov eax, dword [esp + 0x24]
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x46be47
sub edi, edx
lea ebx, [edx + ebp]
sub eax, ebp
movzx edx, byte [ebx + edi]
lea ebx, [ebx + 1]
movzx ecx, byte [ebx - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x46be33
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x46be60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x46bfa6
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push edi
cmp eax, 4
jb 0x46bea3
mov edi, eax
shr edi, 2
mov ecx, dword [esi]
sub eax, 4
xor ecx, dword [ebx]
add esi, 4
mov dword [edx], ecx
add ebx, 4
add edx, 4
sub edi, 1
jne 0x46be88
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x46bfa2
cmp eax, 0x40
jb 0x46bf7f
lea ecx, [ebx - 1]
lea edi, [edx - 1]
add ecx, eax
add edi, eax
cmp edx, ecx
ja 0x46bed5
cmp edi, ebx
jae 0x46bf7f
lea ecx, [esi - 1]
add ecx, eax
cmp edx, ecx
ja 0x46bee6
cmp edi, esi
jae 0x46bf7f
mov ecx, eax
lea edi, [edx + 0x10]
mov eax, edx
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, esi
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edx + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [esi + ebp + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [edi - 0x30], xmm1
movups xmm1, xmmword [esi + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x20], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x46bf20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp ebp, eax
jae 0x46bfa2
sub esi, ebx
lea edi, [ebx + ebp]
sub edx, ebx
sub eax, ebp
nop dword [eax]
mov cl, byte [edi + esi]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + edx - 1], cl
sub eax, 1
jne 0x46bf90
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x471750
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x507620], 0
jne 0x47175e
call fcn.00471870
cmp byte [0x50762a], 0
je 0x47177c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00478d30
add esp, 0x10
ret
jmp fcn.0046fb00

Function at 0x4ac18d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004abe4d

Function at 0x4b7054
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret
Function at 0x403710
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 0x40374c
movzx eax, 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 0x40376c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00406040
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403a04
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.00405dd0
test esi, esi
jne 0x403a3a
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.00405ec0
jmp 0x403a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004038a8
mov edi, eax
test esi, esi
je 0x403a58
cmp dword [ebx], 0
je 0x403a58
dec esi
jmp 0x403a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x65e008], 0x8088405
inc edx
mov dword [ebx + 0x65e008], edx
fld qword [ebx + 0x65e764]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x404be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x65e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404c78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c58
xor eax, eax
push ebp
push 0x404c51
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 0x404c94
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 0x404c58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x65e024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x65e024], ax
mov esp, ebp
pop ebp
ret
Function at 0x405b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66d04c], 0
je 0x405bdd
cmp word [0x66d220], 0xd7b2
jne 0x405ba5
cmp dword [0x66d228], 0
jbe 0x405ba5
mov eax, 0x66d21c
call dword [0x66d238]
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 0x405c04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x65e034], 0
jne 0x405bf9
push 0
push 0x65e798
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405d54
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 [0x65e03c], 0
je 0x405d7a
mov edx, esi
mov eax, ebx
call dword [0x65e03c]
jmp 0x405d89
mov eax, 8
call fcn.00403498
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x66d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405d1c
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 0x407c14
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 0x407e44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407e44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407e60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407d20
xor eax, eax
push ebp
push 0x407d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407a50
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 0x407cfe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407e80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407cfe
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 0x407d20
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 0x407e3a
cmp byte [ebp - 0xd], 0
jne 0x407d67
cmp byte [ebp - 0x12], 0
je 0x407e3a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407d80
dec ebx
cmp byte [ebx], 0x2e
je 0x407d8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407d7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407e3a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407dcc
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 0x407e3a
cmp byte [ebp - 0xd], 0
je 0x407e3a
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 0x407e3a
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 0x40dd5c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40deb7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40dec8
call fcn.0040e070
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x40ded8
call fcn.0040e070
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40de27
cmp dword [ebp - 0x10], 0
je 0x40de27
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040dd24
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004067a8
mov eax, dword [ebp - 0x18]
call fcn.004067b8
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40de27
xor eax, eax
push ebp
push 0x40de20
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
push 0
mov eax, dword [ebp - 8]
call fcn.0040627c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0xc], eax
call fcn.004057d4
jmp 0x40de8c
lea edx, [ebp - 4]
xor eax, eax
call fcn.00403710
xor eax, eax
push ebp
push 0x40de85
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040dd24
mov eax, dword [ebp - 0x20]
call fcn.0040627c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov eax, dword [ebp - 8]
call fcn.0040627c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de8c
mov eax, dword [ebp - 4]
call fcn.0040627c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40debe
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405df4
lea eax, [ebp - 0x18]
call fcn.004065f4
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x411244
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4112c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x671d20], 0
je 0x411296
lea eax, [ebp - 0xc]
call fcn.00411d68
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 0x4112dc
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0x30]
cmp byte [0x65f040], 0
je 0x4112a3
mov eax, ebx
call fcn.0040627c
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4112cb
lea eax, [ebp - 0xc]
mov edx, dword [0x4110f0]
mov ecx, 3
call fcn.00406c1c
ret