joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf15
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41fdf3
call fcn.004101e7
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.00401435
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040f990
add esp, 0xc
push str.gfxUI.exe
lea ecx, [ebp - 0x2c]
call fcn.00401cad
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040f990
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040f990
mov eax, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x84], esi
jae 0x40cf87
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40cfbc
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014e1
mov al, byte [ebp - 0x2d]
call fcn.00410231
ret

Function at 0x40d55f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42acf4], 0
push esi
jne 0x40d4d2
call fcn.0040d3f8
test eax, eax
je 0x40d515
mov eax, dword [0x42acf4]
cmp eax, 1
jne 0x40d4f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d515
pop esi
ret
push eax
call dword [0x42acfc]
test eax, eax
jne 0x40d55d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d519
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42acf4]
call dword [0x42acfc]
mov edi, eax
test edi, edi
je 0x40d53e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d55a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42acf4]
call dword [0x42acf8]
add edi, 0x10
cmp edi, esi
jb 0x40d546
mov eax, edi
pop edi
pop esi
ret
jmp 0x40d4bf

Function at 0x40fa0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429730]
jne 0x40fa14
repz ret
jmp fcn.00412e71
Function at 0x41cd5f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004139f1
and dword [ebp - 4], 0
cmp dword [0x42b72c], 0
mov ebx, eax
jne 0x41ce10
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41cec1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41cec1
push eax
call fcn.0041397f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b72c], eax
call esi
push eax
call fcn.0041397f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b730], eax
call esi
push eax
call fcn.0041397f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b734], eax
call esi
push eax
call fcn.0041397f
pop ecx
mov dword [0x42b73c], eax
test eax, eax
je 0x41ce10
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041397f
pop ecx
mov dword [0x42b738], eax
mov eax, dword [0x42b738]
cmp eax, ebx
je 0x41ce68
cmp dword [0x42b73c], ebx
je 0x41ce68
push eax
call fcn.004139fa
push dword [0x42b73c]
mov esi, eax
call fcn.004139fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ce68
test edi, edi
je 0x41ce68
call esi
test eax, eax
je 0x41ce5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ce5f
test byte [ebp - 0xc], 1
jne 0x41ce68
or dword [ebp + 0x10], 0x200000
jmp 0x41cea1
mov eax, dword [0x42b730]
cmp eax, ebx
je 0x41cea1
push eax
call fcn.004139fa
pop ecx
test eax, eax
je 0x41cea1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41cea1
mov eax, dword [0x42b734]
cmp eax, ebx
je 0x41cea1
push eax
call fcn.004139fa
pop ecx
test eax, eax
je 0x41cea1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b72c]
call fcn.004139fa
pop ecx
test eax, eax
je 0x41cec1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cec3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452cbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x452ccd
pop dword [ebp - 0x3c]
mov eax, 0x452ccd
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x86612a1
sub dword [ebp - 0x4c], 0xba13cd56
mov dword [ebp - 0x48], 0xa88a91c7
add dword [ebp - 0x48], 0x89a8ba7e
mov dword [ebp - 0x44], 0x69602323
add dword [ebp - 0x44], 0xe2ec210b
mov dword [ebp - 0x40], 0xe2a53e5c
sub dword [ebp - 0x40], 0xe2a53e5c
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x54f04851
add dword [ebp - 0x4c], 0x1f822105
mov dword [ebp - 0x48], 0xed5f486d
sub dword [ebp - 0x48], 0xabf2e6f8
mov dword [ebp - 0x44], 0x3790578c
sub dword [ebp - 0x44], 0xd420eb20
mov dword [ebp - 0x40], 0x86a696d9
add dword [ebp - 0x40], 0x79596927
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x4db82
push 0
call eax
mov ecx, 0x49bc
mov edx, eax
mov ebx, 0x9ecd422
sub ebx, 0x9a57422
add ebx, dword [ebp - 0x3c]
mov esi, 0x318bcd95
mov edi, dword [ebx]
add dword [ebp - 0x18], ecx
xor edi, esi
xor dword [ebp - 4], ebx
mov dword [edx], edi
sub dword [ebp - 0xc], esi
add edx, 0xaa092d4c
sub edx, 0xaa092d48
add ebx, 0xdc04ecec
add ebx, 0x23fb1318
loop 0x452dd4
add eax, 0x119c3
mov ebx, eax
add eax, 5
mov ecx, 0x66a408df
sub ecx, 0x666408df
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40003398
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4000900c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4000905e
test eax, edx
je 0x40009061
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40009021
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40009047
add ecx, 4
js 0x40009037
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40009044
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4000906d
test edx, edx
jne 0x40009014
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40009bac
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
push esp
lea eax, [esp + 8]
push eax
push 0x104
mov eax, ebx
call fcn.400050f4
push eax
call sub.KERNEL32.DLL_ReadFile
mov ecx, eax
lea edx, [esp + 4]
mov eax, esi
call fcn.40004d54
add esp, 0x108
pop esi
pop ebx
ret

Function at 0x4000b73c
Capabilities:
Resume thread

Disassembly:
add esp, 0xffffffe0
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 0xa]
movzx eax, word [esp + 8]
call fcn.4000b578
fstp qword [esp + 0x18]
wait
movzx eax, word [esp + 0x16]
push eax
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
call fcn.4000b3d4
fadd qword [esp + 0x18]
fstp qword [esp]
wait
fld qword [esp]
add esp, 0x20
ret

Function at 0x4000b78c
Capabilities:
Resume thread

Disassembly:
add esp, 0xfffffff0
push esp
call sub.KERNEL32.DLL_ResumeThread
movzx eax, word [esp]
add esp, 0x10
ret

Function at 0x4000cd58
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
jle 0x4000cd91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.40004d54
jmp 0x4000cd9a
mov eax, ebx
mov edx, esi
call fcn.40004cb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4000cda4
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
jle 0x4000cdc6
movzx eax, byte [esp]
jmp 0x4000cdc8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4000d458
Capabilities:
Get thread local storage value

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4000d2d0
mov eax, dword [0x40095a90]
cmp byte [eax], 0
je 0x4000d4d4
mov eax, dword [0x40095768]
call fcn.4000346c
call fcn.40003080
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.400074b0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.40009c5c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_SetThreadLocale
push eax
call sub.KERNEL32.DLL_TlsGetValue
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4000d51c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_SetThreadLocale
push eax
call sub.KERNEL32.DLL_TlsGetValue
jmp 0x4000d50a
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
mov eax, dword [0x400956f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x400987f8]
call fcn.400061c8
push eax
call sub.user32.dll_GetMenuItemCount
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_GetMenuState
add esp, 0x444
ret

Function at 0x4000ddd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4000deaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.40004cfc
lea eax, [ebp - 4]
call fcn.4000514c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.400050f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4000de94
mov eax, ebx
call fcn.40002f24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4000de8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.400050f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4000de77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4000debc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4000de77
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4000de94
mov eax, dword [ebp - 0x10]
call fcn.40002f40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4000deb1
lea eax, [ebp - 4]
call fcn.40004c64
ret
Function at 0x40015b60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x4009a990], 0
je 0x40015b82
cmp bx, 0x100
jb 0x40015b82
cmp bx, 0x7ff
jbe 0x40015b86
xor eax, eax
jmp 0x40015b88
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x40015c0f
push 0x4009a994
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor eax, eax
push ebp
push 0x40015c08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4009a990]
call fcn.40005f18
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x40015bf0
mov eax, dword [0x4009a990]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x40015be7
mov eax, dword [esi]
cmp eax, dword [0x40093a30]
jne 0x40015beb
xor eax, eax
jmp 0x40015bed
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40015c0f
push 0x4009a994
call sub.KERNEL32.DLL_GetLocaleInfoA
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40015c1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40015cf2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x4009a994
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor eax, eax
push ebp
push 0x40015cd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4009a990]
call fcn.40005f20
mov esi, eax
test esi, esi
jl 0x40015cbd
inc esi
xor edi, edi
mov eax, dword [0x4009a990]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x40015cb9
cmp ebx, dword [0x40093a30]
je 0x40015cb9
lea edx, [ebp - 0x110]
mov eax, dword [ebx]
call fcn.40003ba0
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.40004ec8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.400091a4
test al, al
je 0x40015cb9
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x40015cbd
inc edi
dec esi
jne 0x40015c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40015cdc
push 0x4009a994
call sub.KERNEL32.DLL_GetLocaleInfoA
ret

Function at 0x40018600
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x4001860f
add esp, 0xfffffff0
call fcn.40003fe4
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.40003c90
mov dl, 1
mov eax, dword [0x40016e4c]
call fcn.40003c90
mov dword [edi + 4], eax
lea eax, [edi + 8]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov ecx, dword [0x40016f5c]
mov dl, 1
mov eax, dword [0x40018130]
call fcn.400182bc
mov esi, eax
mov eax, dword [edi + 4]
mov edx, esi
call fcn.400193c4
mov byte [esi + 0x10], 1
mov eax, edi
test bl, bl
je 0x4001866b
call fcn.4000403c
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40018970
Capabilities:
Get geographical location

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
ret
Function at 0x4001978c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
test dl, dl
je 0x4001979a
add esp, 0xfffffff0
call fcn.40003fe4
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.40003c90
lea eax, [esi + 8]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dl, 1
mov eax, dword [0x40016e4c]
call fcn.40003c90
mov dword [esi + 4], eax
mov byte [esi + 0x20], 0
mov eax, esi
test bl, bl
je 0x400197d8
call fcn.4000403c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40019948
Capabilities:
Get geographical location

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
ret

Function at 0x4001ff14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, eax
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edx, dword [0x40095c34]
cmp eax, dword [edx]
je 0x4001ff57
call sub.KERNEL32.DLL_LeaveCriticalSection
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x400959ec]
mov dl, 1
mov eax, dword [0x40017c28]
call fcn.4000d624
call fcn.400045f8
test ebx, ebx
jle 0x4001ff64
mov eax, ebx
call fcn.4001fed4
jmp 0x4001ff69
call fcn.4001fec8
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x4009a9d0
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor eax, eax
push ebp
push 0x400200d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x40093af0
call sub.KERNEL32.DLL_GlobalFindAtomA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x400200ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x4001ffb4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x4001ffb8
xor eax, eax
jmp 0x4001ffba
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x400200a4
jmp 0x40020097
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.4001951c
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.40019410
push 0x4009a9d0
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
push ebp
push 0x4002005d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4002001e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40020045
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40020064
push 0x4009a9d0
call sub.KERNEL32.DLL_GetUserDefaultLCID
ret
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jg 0x4001ffcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400200c1
mov eax, dword [ebp - 0xc]
call fcn.40003cc0
ret
Function at 0x400203a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
push 0x4009a9d0
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor eax, eax
push ebp
push 0x40020452
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x40093af0], 0
je 0x4002043a
mov eax, dword [0x40093af0]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4002043a
mov edx, esi
mov eax, dword [0x40093af0]
call fcn.4001951c
mov ebx, eax
cmp dword [ebx + 8], 0
jne 0x40020434
test edi, edi
je 0x400203f5
mov eax, dword [ebx]
cmp edi, dword [eax]
je 0x40020410
cmp word [ebp + 0xa], 0
je 0x40020434
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp eax, dword [ebp + 8]
jne 0x40020434
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp + 0xc]
jne 0x40020434
mov edx, esi
mov eax, dword [0x40093af0]
call fcn.40019410
mov eax, dword [ebx]
mov edx, 0x18
call fcn.40002f40
mov edx, 0xc
mov eax, ebx
call fcn.40002f40
dec esi
cmp esi, 0xffffffff
jne 0x400203d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40020459
push 0x4009a9d0
call sub.KERNEL32.DLL_GetLocaleInfoA
ret
Function at 0x40020460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edx, dword [0x40095c34]
cmp eax, dword [edx]
jne 0x4002048a
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x400205f7
cmp byte [ebp - 5], 0
je 0x4002049f
mov eax, 0xc
call fcn.40002f24
mov dword [ebp - 0xc], eax
jmp 0x400204a5
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
movzx ebx, byte [ebp - 5]
xor bl, 1
test bl, bl
je 0x400204c5
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_GetLastError
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
jmp 0x400204cd
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
push ebp
push 0x400205d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4009a9d0
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor eax, eax
push ebp
push 0x400205af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx edx, byte [ebp - 5]
mov byte [eax + 4], dl
cmp dword [0x40093af0], 0
jne 0x40020517
mov dl, 1
mov eax, dword [0x40016e4c]
call fcn.40003c90
mov dword [0x40093af0], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40093af0]
call fcn.400193c4
call fcn.4001fef0
cmp word [0x40093ade], 0
je 0x4002054e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [0x40093ae0]
call dword [0x40093adc]
test bl, bl
je 0x40020597
push 0x4009a9d0
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
push ebp
push 0x40020590
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_LocalAlloc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40020597
push 0x4009a9d0
call sub.KERNEL32.DLL_GetUserDefaultLCID
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400205b6
push 0x4009a9d0
call sub.KERNEL32.DLL_GetLocaleInfoA
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40020654
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov esi, eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edx, dword [0x40095c34]
cmp eax, dword [edx]
jne 0x400206c9
xor ebx, ebx
mov eax, dword [0x4009a9b8]
mov dword [esp + 8], eax
cmp ebx, 2
jne 0x40020693
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_GetWindow
push pe_nt_image_headers32
push 0x3e8
push 0
lea eax, [esp + 0x10]
push eax
push 2
call sub.user32.dll_GetMenuStringA
mov ebx, eax
cmp ebx, 0xffffffff
setne dl
mov eax, esi
call fcn.40020360
cmp ebx, 1
jne 0x400206c3
xor eax, eax
call fcn.4001ff14
test ebx, ebx
jne 0x4002067c
jmp 0x400206d5
push 0xffffffffffffffff
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.DLL_LocalAlloc
push esp
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.DLL_LockResource
cmp eax, 1
sbb edx, edx
inc edx
mov eax, esi
call fcn.40020360
mov eax, dword [esp]
add esp, 0x28
pop esi
pop ebx
ret
Function at 0x40023cb4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40023d80
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
mov edx, edi
call fcn.40004cfc
mov eax, dword [ebp - 4]
call fcn.40023b04
mov ebx, eax
test bl, bl
jne 0x40023d03
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.4000519c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.400050f4
push eax
mov edx, ebx
mov eax, esi
call fcn.40023c9c
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x40023d46
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetCPInfo
jmp 0x40023d6a
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x40095644]
mov dl, 1
mov eax, dword [0x400239a4]
call fcn.4000d624
call fcn.400045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40023d87
lea eax, [ebp - 4]
call fcn.40004c64
ret

Function at 0x40023d90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 5], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40023e95
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.40004cfc
mov eax, dword [ebp - 4]
call fcn.40023b04
mov ebx, eax
test bl, bl
jne 0x40023ddc
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.4000519c
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 0
je 0x40023ded
cmp dword [ebp - 4], 0
jne 0x40023e17
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.400050f4
push eax
mov edx, ebx
mov eax, esi
call fcn.40023c9c
push eax
call sub.KERNEL32.DLL_GetDateFormatA
test eax, eax
sete byte [ebp - 6]
jmp 0x40023e49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [esi + 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.400050f4
push eax
mov edx, ebx
mov eax, esi
call fcn.40023c9c
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
sete byte [ebp - 6]
cmp byte [ebp - 6], 0
je 0x40023e7f
cmp dword [esi + 4], 0
setne al
test al, bl
je 0x40023e72
push dword [esi + 0x10]
push 0x40023eb0
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.40004ff8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.40023c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40023e9c
lea eax, [ebp - 4]
call fcn.40004c64
ret