joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017be0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x10017c1a
cmp dword [esp + 0x34], esi
je 0x10017c1a
push 0x200
call fcn.1001c856
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10017c25
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017d84
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x10017d1a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10017c7d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017cf3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10017ce8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10017b50
cmp edx, edi
jb 0x10017ce8
ja 0x10017ce2
cmp eax, dword [esp + 0x24]
jbe 0x10017ce8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x10017c70
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10017d30
cmp dword [esp + 0x24], 0
jbe 0x10017d84
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.100159c0
add esp, 0xc
test eax, eax
jne 0x10017d69
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.1001c3d1
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.100177a0
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.1001c3d1
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1001ab30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1002a7bb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100331b0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x10035370], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1001d862
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1001ad1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001abce
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1001cf30
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1001a820
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1001ac35
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x1002fa30
push eax
call fcn.1001d74a
add esp, 0xc
cmp eax, 1
jne 0x1001ac35
mov eax, dword [ebp - 0x14]
mov dword [0x10035370], eax
jmp 0x1001ad05
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1001ac4f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1001ac63
push ebx
push esi
call fcn.1001af80
jmp 0x1001ac65
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x10035370], eax
test eax, eax
jne 0x1001ac87
push 0x10030930
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1001d22b
push eax
lea edx, [ebp + 0x84]
push 0x1002fa30
push edx
mov edi, 1
call fcn.1001d935
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1001a960
test eax, eax
jne 0x1001acfe
push 0x10030930
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1001d22b
call fcn.1001aa00
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x10035370]
test esi, esi
je 0x1001acef
call fcn.1001b060
mov dword [0x10035370], 0
jmp 0x1001acf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1001acfc
ret
mov eax, dword [0x10035370]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1001ad1d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10035370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1001b630
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1001ad50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a760
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100331b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x10035370]
xor edi, edi
cmp ecx, edi
jne 0x1001ad9b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1001ada8
mov dword [ebp - 0x14], edi
jmp 0x1001adc0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1001ae56
mov ecx, dword [0x10035370]
mov eax, dword [ecx]
cmp eax, edi
je 0x1001ad87
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001ad87
mov ebx, 0x10035370
mov dword [ebp - 4], edi
call fcn.1001ae70
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1001adfe
push 0x10030930
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1001d22b
mov ecx, dword [0x10035370]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1001ae18
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1001ae42
push 0x10030930
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1001d22b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001ae39
call fcn.1001b180
mov eax, 0x1001ae3f
ret
mov eax, dword [0x10035370]
mov eax, dword [eax]
test eax, eax
je 0x1001ae54
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ae70
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1001ae9d
xor ecx, ecx
jmp 0x1001aea9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1001af5d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1001aed0
mov dword [esp + 0xc], esi
jmp 0x1001af30
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1001af29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001af1c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1001af30
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001af30
push 0x1002fa38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001af30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1001af53
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1001aec2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1001af71
mov ecx, dword [ebx]
add ecx, 8
call fcn.1001b0b0
test eax, eax
je 0x1001af71
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1001af80
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1002a78b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100331b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1001cf30
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1001b018
push 0x10030930
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1001d22b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1001b630
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100331b0]
jne 0x1001b63a
repz ret
jmp fcn.1001dfa1
Function at 0x10028035
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.1001efbf
and dword [ebp - 4], 0
cmp dword [0x1003522c], 0
mov ebx, eax
jne 0x100280e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10028197
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10028197
push eax
call fcn.1001ef4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003522c], eax
call esi
push eax
call fcn.1001ef4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10035230], eax
call esi
push eax
call fcn.1001ef4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10035234], eax
call esi
push eax
call fcn.1001ef4d
pop ecx
mov dword [0x1003523c], eax
test eax, eax
je 0x100280e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001ef4d
pop ecx
mov dword [0x10035238], eax
mov eax, dword [0x10035238]
cmp eax, ebx
je 0x1002813e
cmp dword [0x1003523c], ebx
je 0x1002813e
push eax
call fcn.1001efc8
push dword [0x1003523c]
mov esi, eax
call fcn.1001efc8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002813e
test edi, edi
je 0x1002813e
call esi
test eax, eax
je 0x10028135
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10028135
test byte [ebp - 0xc], 1
jne 0x1002813e
or dword [ebp + 0x10], 0x200000
jmp 0x10028177
mov eax, dword [0x10035230]
cmp eax, ebx
je 0x10028177
push eax
call fcn.1001efc8
pop ecx
test eax, eax
je 0x10028177
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10028177
mov eax, dword [0x10035234]
cmp eax, ebx
je 0x10028177
push eax
call fcn.1001efc8
pop ecx
test eax, eax
je 0x10028177
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003522c]
call fcn.1001efc8
pop ecx
test eax, eax
je 0x10028197
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10028199
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10028474
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x6b0
mov dword [ebp - 0x18], 0x1003b000
mov dword [ebp - 0x1c], 0xcc5c
mov dword [ebp - 0x20], 0x34c8f2
mov dword [ebp - 0x24], 0x4931d
mov dword [ebp - 0x28], 0x1b3d87
mov dword [ebp - 0x2c], 0xe2bab
mov dword [ebp - 0x30], 0x2151c24
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x6b], 0x72
mov byte [ebp - 0x6a], 0x68
mov byte [ebp - 0x69], 0x45
mov byte [ebp - 0x68], 0x43
mov byte [ebp - 0x67], 0x79
mov byte [ebp - 0x66], 0x45
mov byte [ebp - 0x65], 0x4c
mov byte [ebp - 0x64], 0x53
mov byte [ebp - 0x63], 0x77
mov byte [ebp - 0x62], 0x43
mov byte [ebp - 0x61], 0x35
mov byte [ebp - 0x60], 0x35
mov byte [ebp - 0x5f], 0x62
mov byte [ebp - 0x5e], 0x7a
mov byte [ebp - 0x5d], 0x37
mov byte [ebp - 0x5c], 0x6f
mov byte [ebp - 0x5b], 0x61
mov byte [ebp - 0x5a], 0x28
mov byte [ebp - 0x59], 0x30
mov byte [ebp - 0x58], 0x2a
mov byte [ebp - 0x57], 0x32
mov byte [ebp - 0x56], 0x4e
mov byte [ebp - 0x55], 0x53
mov byte [ebp - 0x54], 0x36
mov byte [ebp - 0x53], 0x61
mov byte [ebp - 0x52], 0x4b
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, 0x6d948
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax

Function at 0x10028b5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
invalid
inc ebp

Function at 0x10028c24
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x401184
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
or ebx, ebx
add edi, esi
sub ecx, 0x1017
mov ebx, 0x3eb6
mov esi, edi
lea edx, [ebx - 0x22]
push ebx
add ebx, edx
push 0x4dc815
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
xor ebx, 0x15
xor esi, 0x2a7e
mov ecx, ecx
sub edi, 0x4e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
sub edx, ebx
sub esi, 0x14
lea edi, [esi + 0xc]
mov ebx, dword [0x4394f2]
mov ebx, 0x40112c
dec edx
xor ecx, 0x4079
mov edi, 0x43b
call ebx
xor edx, 0
push ebx
xor esi, 0x617c
sub ebx, 0x5174
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
dec esi
xor ebx, 0x3a62
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret
Function at 0x401f14
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x401f42
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x401f4a
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x401f79
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x401f9f
mov eax, 0x4030b4
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x401fc8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x401fc8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x401fc8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00401ced
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42a559
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x42a559
lcall 0x5de5, 0x8b10c483
jmp loc.00816618

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4045a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004072f0
test esi, esi
jne 0x4045e0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040742c
jmp 0x4045fe
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044ec
mov edi, eax
test esi, esi
je 0x4045fe
cmp dword [ebx], 0
je 0x4045fe
dec esi
jmp 0x4045e7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4062ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62c050], 0
je 0x40634d
cmp word [0x62c32c], 0xd7b2
jne 0x406315
cmp dword [0x62c334], 0
jbe 0x406315
mov eax, 0x62c328
call dword [0x62c344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406378
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61d034], 0
jne 0x406369
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064f8
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 [0x61d03c], 0
je 0x40651e
mov edx, esi
mov eax, ebx
call dword [0x61d03c]
jmp 0x40652d
mov eax, 8
call fcn.00404234
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x62c051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4064c0
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 0x4093a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40950b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004072f0
cmp si, word [0x61d7e4]
jb 0x40943e
cmp si, word [0x61d9e4]
ja 0x40943e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40943e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x61d7e4]
jae 0x409418
mov edi, ebx
dec edi
jmp 0x409439
cmp si, word [ebx*8 + 0x61d7e4]
jbe 0x409428
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409439
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x61d7e8]
call fcn.004092b4
jmp 0x40943e
cmp edi, dword [ebp - 0xc]
jae 0x409402
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4094ed
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094ed
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004074f0
push dword [ebp - 0x164]
push 0x409528
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004074f0
push dword [ebp - 0x168]
push 0x409538
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004074f0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004078a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409512
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004072e8
ret
Function at 0x4096c4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4097c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x62eb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x62eb70]
jne 0x409710
mov eax, esi
mov edx, 0x62eb74
mov ecx, 0x55
call fcn.004074f0
push 0x62eb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097b3
push 0x62eb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004072f0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409781
cmp byte [0x62eb54], 0
je 0x409746
mov edx, esi
mov eax, ebx
call fcn.004095a4
jmp 0x409781
mov edx, esi
mov eax, ebx
call fcn.004093a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409781
cmp dword [esi], 0
je 0x40976a
mov eax, esi
mov edx, 0x4097e4
call fcn.00407704
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407704
push 0x62eb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x62eb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040737c
push eax
push 0x62eb74
call sub.kernel32.dll_lstrcpynW
push 0x62eb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d0
lea eax, [ebp - 4]
call fcn.004072e0
ret