joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181e5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x439160], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x418230
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x455e1c], ax
xor eax, eax
mov word [0x455e1e], ax
mov dword [0x439160], 0x455e1c
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e4d0
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x439150
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418431
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041bbd0
cmp byte [0x448748], 0
je 0x4184da
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00419811
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4184da
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4184d1
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x4184b5
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040e5b0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x418586
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041bbd0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x4185a1
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x4185ae
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x418671
movzx eax, word [esi]
test ax, ax
je 0x418671
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x4185fb
test edi, edi
je 0x418605
test ebx, ebx
jne 0x418605
test ecx, ecx
je 0x4185f7
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41861c
cmp eax, 0xd
je 0x41862f
cmp eax, 0xa
je 0x418632
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41862a
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x4185dd
jmp 0x418632
mov byte [edx], 1
jmp 0x418632
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41866b
mov word [edi], ax
test ebx, ebx
je 0x41866b
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040e5b0
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x418673
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41867e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x4186cd
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x4186d5
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a7b3
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.0041bbd0
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x41a9da
push esi
call fcn.00421015
pop ecx
cmp eax, 0x7f6
jae 0x41a9da
push ebp
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0041cb30
movzx ecx, word [esi]
lea edx, [esi + 2]
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x1c0
push 0x22
pop ebp
cmp cx, bp
je 0x41a813
mov edx, esi
mov dword [esp + 0x24], edx
mov eax, ebx
test cx, cx
je 0x41a85c
push 0x20
mov ecx, esi
pop edi
cmp word [ecx], bp
jne 0x41a83d
jmp 0x41a830
cmp word [esi + eax*2], bp
je 0x41a839
inc eax
cmp word [esi + eax*2], bx
jne 0x41a82a
jmp 0x41a83d
mov word [esi + eax*2], di
cmp word [esi + eax*2], di
je 0x41a9b1
cmp word [esi + eax*2 + 2], 0x2f
je 0x41a9ab
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x41a823
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41a869
cmp word [eax], bx
jne 0x41a883
cmp byte [esp + 0x105c], bl
jne 0x41a883
cmp word [0x44974a], bx
je 0x41a883
mov dword [esp + 0x28], 0x44974a
push edx
mov dword [esp + 0x34], 1
call fcn.0040a80b
mov esi, eax
test esi, esi
je 0x41a8ae
push str..inf
push esi
call fcn.0040fe43
test eax, eax
jne 0x41a8ae
mov dword [esp + 0x20], 0x430664
push dword [esp + 0x24]
call fcn.004095ef
test al, al
je 0x41a8d6
push 0x800
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call fcn.0040a594
lea eax, [esp + 0x50]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41a9d8
mov edi, dword [esp + 0x1054]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x448740], bl
jne 0x41a90f
cmp byte [esp + 0x105c], bl
jne 0x41a90f
cmp byte [0x454e0c], bl
je 0x41a96e
test edi, edi
je 0x41a924
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41a924
push ebx
push edi
call ebp
mov bl, 1
push 0x7d0
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x4c]
call fcn.0041ac60
cmp byte [0x454e0c], 0
je 0x41a96e
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41a96e
mov eax, dword [esp + 0x10]
add eax, 0x3e8
cmp eax, dword [0x454e10]
jbe 0x41a96e
mov dword [0x454e10], eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41a98b
push str..exe
push esi
call fcn.0040fe43
test eax, eax
je 0x41a9c4
cmp byte [0x448740], 0
mov al, byte [esp + 0x105c]
je 0x41a9cb
test al, al
jne 0x41a9cb
mov dword [0x454e14], 0x1b58
jmp 0x41a9cb
cmp word [esi + eax*2], di
jne 0x41a9b7
xor ecx, ecx
mov word [esi + eax*2], cx
inc eax
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
jmp 0x41a860
mov al, byte [esp + 0x105c]
test bl, bl
je 0x41a9d8
test al, al
je 0x41a9d8
push 1
push edi
call ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1040
ret 0xc
Function at 0x41ab41
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041bbd0
cmp byte [0x448748], 0
je 0x41abcb
cmp word [0x454e18], 0
je 0x41abcb
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x454e18
call fcn.00419811
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41abca
push dword [ebp + 8]
call fcn.00421015
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41abd1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041bbd0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040e3a5
mov esi, eax
test esi, esi
je 0x41ac29
movzx ecx, word [esi]
push ecx
jmp 0x41ac14
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040e49c
test al, al
jne 0x41ac0d
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b804
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100627be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001b847
push 1
push 0x5a30
push 0x7576
call fcn.1001b988
add esp, 0xc
jmp 0x1001b977
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1001b873
push 0
push 0
push 0x2481
push 0
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x1001b977
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1001b894
push 0x9cc
call dword [sym.imp.GDI32.dll_EndPage]
mov dword [ebp - 0x20], 0x6e4b
mov dword [ebp - 0x38], 0x10008888
cmp dword [ebp - 0x20], 0x6e77
jle 0x1001b93b
and dword [ebp - 0x1c], 0
jmp 0x1001b8bc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x60e5
jge 0x1001b933
and dword [ebp - 0x14], 0
jmp 0x1001b8d2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x71b5
jge 0x1001b931
and dword [ebp - 0x18], 0
jmp 0x1001b8e8
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x47f
jge 0x1001b92f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sar eax, cl
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.1000d8f0
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
call fcn.1002fc5c
push eax
call fcn.1004cdd6
pop ecx
lea ecx, [ebp - 0x58]
call fcn.1002fc52
jmp 0x1001b8e1
jmp 0x1001b8cb
jmp 0x1001b8b5
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x6b96
jge 0x1001b951
push dword [ebp - 0x38]
call fcn.1004cdd6
pop ecx
jmp 0x1001b96d
or dword [ebp - 4], 0xffffffff
jmp 0x1001b977
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100215f6
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002163e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10021627
push 0x22a5
call dword [sym.imp.GDI32.dll_SaveDC]
jmp 0x1002163c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xc9092273
jmp 0x100216ad
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10021662
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x100216ad
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10021690
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100216ad
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
call fcn.1002fe2f
mov dword [eax], 0xe89405db
jmp 0x10021685
mov esp, ebp
pop ebp
ret
Function at 0x100294f5
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002952b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0xe97
push 0x5cf1
push dword [ebp - 4]
push dword [ebp - 8]
push 1
call fcn.10029585
add esp, 0x14
jmp 0x10029581
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10029572
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push 1
mov ecx, dword [ebp - 0x20]
call fcn.1002fe2f
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x10029581
push 0
push 0xaa7
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esp, ebp
pop ebp
ret
Function at 0x1004050c
Capabilities:
Enumerate gui resources
Query environment variable

Disassembly:
mov eax, 0x1006304b
call fcn.100620b0
sub esp, 0x10
push ebx
push esi
mov dword [ebp - 0x1c], 0x4090
xor esi, esi
cmp dword [ebp - 0x1c], 0x4315
push edi
mov dword [ebp - 0x10], esp
jle 0x1004059f
push 0x22e9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x18], esi
mov ecx, esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov eax, esi
cdq
idiv ecx
lea eax, [ebx + edi]
mov ecx, edx
sar eax, cl
mov ecx, 0x1060b0b8
cdq
push edx
push eax
call fcn.1002fc7c
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x3cea
jl 0x1004054d
inc esi
push 0
mov dword [ebp - 0x18], esi
cmp esi, 0x41b0
pop esi
jl 0x10040545
inc ebx
cmp ebx, 0x6103
jl 0x10040542
inc edi
cmp edi, 0x2f1b
jl 0x10040540
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], 0x3ec0
jge 0x100405ba
mov edx, 0x1000bb60
mov ecx, 0x1060b0b8
call fcn.10031726
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10043677
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
inc edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0xfffffffb
mov dword [esp + 0x18], 0xfffffffd
mov dword [esp + 0x18], 0x714ba09a
mov dword [esp + 0x18], 0x3ed1
cmp dword [esp + 0x18], 0x418c
push 0
pop esi
jle 0x10043729
push 0x231c
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, esi
mov ebx, esi
mov eax, esi
mov dword [esp + 0x14], esi
add eax, ebx
lea ecx, [esp + 0x40]
xor eax, edi
cdq
push edx
push eax
call fcn.1000d8f0
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100436ed
mov eax, dword [eax]
push eax
call fcn.1004cdd6
pop ecx
push esi
push 1
lea ecx, [esp + 0x48]
call fcn.1003011d
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xae2
jl 0x100436d3
inc ebx
cmp ebx, 0x5778
jl 0x100436cd
inc edi
cmp edi, 0x319
jl 0x100436cb
mov ebx, dword [esp + 0x1c]
xor edi, edi
inc edi
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x18], 0x3bdd
jge 0x10043746
push 0x1000c054
call fcn.1004cdd6
pop ecx
mov dword [esp + 0x14], esi
jmp 0x1004375c
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x20], 0xe280bfe7
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 4
jl 0x1004374c
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add eax, 8
jne 0x10043778
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x10], esi
je 0x10043780
mov esi, edi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
neg eax
cmp edi, eax
sbb eax, eax
add eax, 0xfffffffc
neg eax
sbb eax, eax
xor edx, edx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp ecx, eax
setne dl
sub edx, dword [esp + 0x10]
neg edx
sbb edx, edx
inc edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
call fcn.1004087b
mov esi, eax
lea edi, [esp + 0x24]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10043668
mov ecx, eax
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8 + 4]
mov esp, ebp
pop ebp
ret
Function at 0x1005e575
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10068750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10050708
mov dword [ebp - 0x14], eax
cmp dword [0x1060c11c], esi
jne 0x1005e668
push 0x800
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005e5f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005e748
push esi
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005e748
push 0x10007528
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005e748
push eax
call ebx
push 0x10007534
push edi
mov dword [0x1060c11c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007544
push edi
mov dword [0x1060c120], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007558
push edi
mov dword [0x1060c124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060c12c], eax
test eax, eax
je 0x1005e665
push 0x10007574
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1060c128], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005e68d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1005e680
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005e6a2
push 4
pop eax
jmp 0x1005e74a
cmp dword [ebp - 0x14], esi
je 0x1005e6a2
push dword [0x1060c11c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1005e687
mov eax, dword [0x1060c128]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005e700
cmp dword [0x1060c12c], edi
je 0x1005e700
push eax
call ebx
push dword [0x1060c12c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005e700
test eax, eax
je 0x1005e700
call ecx
test eax, eax
je 0x1005e6f5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1005e6f5
test byte [ebp - 8], 1
jne 0x1005e700
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005e730
mov eax, dword [0x1060c120]
cmp eax, edi
je 0x1005e72d
push eax
call ebx
test eax, eax
je 0x1005e72d
call eax
mov esi, eax
test esi, esi
je 0x1005e72d
mov eax, dword [0x1060c124]
cmp eax, edi
je 0x1005e72d
push eax
call ebx
test eax, eax
je 0x1005e72d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1060c11c]
call ebx
test eax, eax
je 0x1005e748
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005e74a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004dc1c
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031c8
xor eax, eax
push ebp
push 0x4031c1
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 0x403204
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 0x4031c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d7020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d7020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da04c], 0
je 0x404019
cmp word [0x4da220], 0xd7b2
jne 0x403fe1
cmp dword [0x4da228], 0
jbe 0x403fe1
mov eax, 0x4da21c
call dword [0x4da238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d706c
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 0x404040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7030], 0
jne 0x404035
push 0
push 0x4d7064
push 0x4d706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40629c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406302
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062ec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406309
lea eax, [ebp - 0x10]
call fcn.00404134
ret

Function at 0x40c870
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 0x40c8a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404224
jmp 0x40c8b2
mov eax, ebx
mov edx, esi
call fcn.00404188
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c8bc
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 0x40c8dd
mov al, byte [esp]
jmp 0x40c8df
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cf64
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cddc
mov eax, dword [0x4d99dc]
cmp byte [eax], 0
je 0x40cfe0
mov eax, dword [0x4d965c]
call fcn.00402ad8
call fcn.00402910
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409a34
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d028
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d016
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d95f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4da668]
call fcn.00405794
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret