joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e22c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42e3dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00460e78
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42e3f4
call fcn.00460adc
mov eax, ebx
call fcn.0044cca4
mov edi, eax
dec edi
test edi, edi
jl 0x42e2e4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0044cc78
mov edx, dword [0x40c090]
call fcn.0045fe18
test al, al
je 0x42e2e0
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0044cc78
lea edx, [ebp - 0x14]
call fcn.004342e8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00460e78
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00460b50
inc esi
dec edi
jne 0x42e292
mov al, byte [0x42e3f8]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42e404
mov eax, dword [ebp - 0xc]
call fcn.004539b8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00460870
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004342e8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42e3f4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.004342e8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42e3f4
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42e3f4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42e410
call fcn.004510c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e3e4
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004607fc
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004607fc
lea eax, [ebp - 0x14]
call fcn.004607d8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004607fc
ret
Function at 0x431e50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x48c3a4], 0
je 0x431f9f
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48be3c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x431f9f
mov eax, dword [0x48c3a8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48c3a4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431f6e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x48c3a4]
call fcn.004449d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431f66
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x431f66
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431f66
mov eax, dword [ebp - 0x14]
call fcn.0043a978
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x431f66
push ebp
call fcn.00431e0c
pop ecx
test al, al
jne 0x431f66
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x431f22
mov eax, dword [ebp - 0x14]
call fcn.0043950c
dec eax
jle 0x431f66
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0045fe88
cmp byte [ebp - 1], 0
je 0x431f66
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x431f66
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48c3a8]
call fcn.004315d4
inc edi
dec ebx
jne 0x431eb5
mov eax, dword [0x48c3a8]
cmp dword [eax + 8], 0
jle 0x431f86
mov eax, dword [0x48c3a8]
call fcn.00431664
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431f9f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00431c74
pop ecx
test al, al
jne 0x431f9f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435568
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4355b4
mov eax, esi
call fcn.004227e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4355b4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4355b4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4356f3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4355f4
cmp eax, 0x108
ja 0x4355f4
mov eax, esi
call fcn.004227e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4356ea
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4356f3
jmp 0x4356ea
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4356d3
cmp eax, 0x20a
ja 0x4356d3
test byte [esi + 0x50], 0x80
jne 0x435626
sub eax, 0x203
je 0x435623
sub eax, 3
je 0x435623
sub eax, 3
jne 0x435626
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43563a
dec eax
je 0x43564f
dec eax
je 0x43566c
dec eax
je 0x43564f
jmp 0x435673
mov ecx, ebx
mov eax, dword [0x48be3c]
mov eax, dword [eax]
mov edx, esi
call fcn.0042c1ec
jmp 0x4356ea
cmp byte [esi + 0x5d], 1
jne 0x435665
mov eax, esi
mov si, 0xffed
call fcn.0045fe88
jmp 0x4356f3
or word [esi + 0x54], 1
jmp 0x4356ea
and word [esi + 0x54], 0xfffe
jmp 0x4356ea
mov eax, dword [0x48c360]
cmp byte [eax + 0x20], 0
je 0x4356ea
mov eax, dword [0x48c360]
cmp dword [eax + 0x1c], 0
je 0x4356ea
mov eax, dword [ebx]
mov edx, dword [0x48c360]
cmp eax, dword [edx + 0x1c]
jne 0x4356ea
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00422724
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0045fe88
jmp 0x4356f3
cmp eax, 0xb00b
jne 0x4356ea
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00433e88
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438ba8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x438bc4
cmp dword [esi + 4], 0
je 0x438bf1
test byte [ebx + 0x55], 1
jne 0x438be3
mov eax, ebx
call fcn.00437800
test eax, eax
jne 0x438be3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x438d01
mov edx, esi
mov eax, ebx
call fcn.004386c8
jmp 0x438d01
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x438cfa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043a978
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043549c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00438ba8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043a978
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438d01
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f19c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48c03c]
cmp byte [eax + 0xc], 0
je 0x43f309
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f302
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48c3b4], 0
jne 0x43f1f0
push 0x43f310
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x43f318
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3b4], eax
cmp dword [0x4879bc], 0
jne 0x43f2eb
push 0x43f328
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4879bc], eax
cmp dword [0x4879bc], 0
je 0x43f2eb
push 0x43f334
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3b8], eax
push 0x43f344
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3bc], eax
push 0x43f358
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3c0], eax
push 0x43f370
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3c4], eax
push 0x43f388
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3c8], eax
push 0x43f39c
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3cc], eax
push 0x43f3b4
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3d0], eax
push 0x43f3cc
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3d4], eax
push 0x43f3e8
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3d8], eax
push 0x43f3f4
mov eax, dword [0x4879bc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c3dc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f309
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44d704
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48c4dc
cmp dword [edi], 0
jne 0x44d780
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48c4d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487a10
mov ecx, 2
call fcn.0045ef18
mov edx, 0x44d6dc
lea eax, [esi + 5]
call fcn.0044d6fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044d6fc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44d755
mov dword [0x48c4d8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x44ec70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0044e8b4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00460c88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x44ecce
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48c00c]
mov dl, 1
mov eax, dword [0x44e7ac]
call fcn.00452994
call fcn.00460438
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44ecd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00460c88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44ed30
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48c008]
mov dl, 1
mov eax, dword [0x44e7ac]
call fcn.00452994
call fcn.00460438
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044e8e4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4520f0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x452129
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004608c8
jmp 0x452132
mov eax, ebx
mov edx, esi
call fcn.0046082c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45213c
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
test eax, eax
jle 0x45215d
mov al, byte [esp]
jmp 0x45215f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4527e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x45265c
mov eax, dword [0x48c1f0]
cmp byte [eax], 0
je 0x452851
mov eax, dword [0x48c1f4]
call fcn.0045f420
call fcn.0045ee84
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00450968
push eax
lea eax, [esp + 0x50]
push eax
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 0x452898
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x452887
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48c0a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48c230]
call fcn.00461f50
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x4533e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x453444
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00460a40
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00450594
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45344b
lea eax, [ebp - 0xc]
call fcn.004607d8
ret

Function at 0x45f044
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004607d8
test esi, esi
jne 0x45f07a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004608c8
jmp 0x45f098
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0045ef58
mov edi, eax
test esi, esi
je 0x45f098
cmp dword [ebx], 0
je 0x45f098
dec esi
jmp 0x45f081
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x45fafc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487f48]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x45fb94
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45fb74
xor eax, eax
push ebp
push 0x45fb6d
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 0x45fbb0
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 0x45fb74
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x487f48]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487f48], ax
mov esp, ebp
pop ebp
ret
Function at 0x46065c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c800], 0
je 0x4606bd
cmp word [0x48c9d4], 0xd7b2
jne 0x460685
cmp dword [0x48c9dc], 0
jbe 0x460685
mov eax, 0x48c9d0
call dword [0x48c9ec]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4606e4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x487f58], 0
jne 0x4606d9
push 0
push 0x487fb0
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x462144
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x462374
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4621c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x462374
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4621c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x462390
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x462250
xor eax, eax
push ebp
push 0x462249
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00461f8c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x46222e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4623b0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x46222e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462250
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x46236a
cmp byte [ebp - 0xd], 0
jne 0x462297
cmp byte [ebp - 0x12], 0
je 0x46236a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4622b0
dec ebx
cmp byte [ebx], 0x2e
je 0x4622bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4622af
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x46236a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4622fc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x46236a
cmp byte [ebp - 0xd], 0
je 0x46236a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x46236a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462ae8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x48cd74], 1
jae 0x462b6e
mov byte [0x487f44], 2
mov dword [0x48c7c4], 0x4821f0
mov dword [0x48c7c8], 0x482202
mov byte [0x48c802], 2
mov dword [0x48c7b0], 0x461774
call fcn.0045facc
test al, al
je 0x462b2b
call fcn.0045fafc
call fcn.0045fbc0
mov word [0x48c808], 0xd7b0
mov word [0x48c9d4], 0xd7b0
mov word [0x48cba0], 0xd7b0
call fcn.00461654
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48c7f4], eax
call fcn.0045d950
mov dword [0x48c7f0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48c7e8], eax
ret

Function at 0x464978
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x464994
call fcn.00465e08
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4649b0
test bl, 1
je 0x4649b0
call fcn.00469a80
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret