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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.004019d1
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x42cb08
push dword [ebp - 0xc]
call fcn.0040f89b
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [esp], str.interface_
call fcn.00402172
push edi
lea esi, [ebp - 0x30]
call fcn.00401a27
push str.TypeLib
call fcn.00401a27
push edi
call fcn.0045738d
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x42cb08
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call edi
mov esi, eax
cmp esi, ebx
jne 0x42caff
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebp + ecx*2 - 0x248], ax
lea eax, [ebp - 0x248]
push eax
call fcn.0040f89b
pop ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0045738d
pop ecx
cmp esi, ebx
jl 0x42caff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call edi
test eax, eax
jne 0x42caa4
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
mov word [ebp + ecx*2 - 0x248], ax
lea eax, [ebp - 0x248]
push eax
call fcn.00457a5d
fstp qword [ebp - 0x20]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push ebx
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.004593c0
add esp, 0x10
call fcn.00469d16
fld qword [ebp - 0x20]
movzx eax, ax
push eax
call fcn.00469d16
movzx eax, ax
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, ebx
jl 0x42caff
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.00401a04
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42cb17
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004019d1
lea ecx, [ebp - 0x1c]
call fcn.004019d1
lea ecx, [ebp - 0x3c]
call fcn.004019d1
push str.SOFTWAREClasses_
lea eax, [ebp - 0x2c]
call fcn.00402172
push dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401a27
push str.CLSID
call fcn.00401a27
push 0x46df98
lea eax, [ebp - 0x1c]
call fcn.00402172
cmp ebx, edi
je 0x42cb9b
cmp word [ebx], 0x5c
je 0x42cb9b
cmp word [ebx + 2], 0x5c
je 0x42cb9b
push 0x474090
lea eax, [ebp - 0x1c]
call fcn.00402172
push ebx
lea esi, [ebp - 0x1c]
call fcn.00401a27
cmp dword [ebp + 0x10], edi
je 0x42cbeb
push 0x20
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00456db0
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x58], edi
call fcn.00401b5f
push str.IPC_
lea esi, [ebp - 0x3c]
call fcn.00401a27
mov eax, dword [ebp - 0x3c]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
cmp esi, edi
jne 0x42cc89
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, edi
jne 0x42cc89
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, edi
jne 0x42cc84
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x268]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x42cc7f
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebp + ecx*2 - 0x268], ax
lea eax, [ebp - 0x268]
push eax
call fcn.0040f89b
pop ecx
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0045738d
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0x3c]
call fcn.00401a04
lea ecx, [ebp - 0x1c]
call fcn.00401a04
lea ecx, [ebp - 0x2c]
call fcn.00401a04
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43618c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004019d1
xor ebx, ebx
push 0x3c
lea eax, [esp + 0x30]
push ebx
push eax
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
call fcn.00456db0
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x4361ed
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
call fcn.00412b6d
cmp word [eax], bx
je 0x4361ed
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
call fcn.00412b6d
push eax
call fcn.0040f89b
pop ecx
mov edi, eax
cmp dword [ebp + 0x10], 3
jb 0x436209
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
call fcn.00412b6d
push eax
call fcn.0040f89b
pop ecx
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x10], 4
jb 0x436248
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
call fcn.00412b6d
cmp word [eax], bx
je 0x436248
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
call fcn.0041d2fc
test al, al
jne 0x436248
mov eax, dword [esp + 0x18]
call fcn.00412b88
lea ecx, [esp + 0x1c]
cmp ecx, eax
je 0x436248
call fcn.00401b5f
cmp dword [ebp + 0x10], 5
jb 0x436260
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
call fcn.00412c4e
movzx eax, ax
mov dword [esp + 0x14], eax
push 0x3c
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00456db0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], ebx
mov eax, dword [eax]
add esp, 0xc
call fcn.00412b6d
mov esi, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [esp + 0x18], eax
cmp edi, ebx
je 0x4362c8
push edi
call fcn.0045504c
pop ecx
cmp esi, ebx
je 0x4362d3
push esi
call fcn.0045504c
pop ecx
cmp dword [esp + 0x18], ebx
jne 0x436308
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.00418902
mov dword [eax + 0x14], 1
lea eax, [esi + 4]
call fcn.00418902
mov esi, dword [ebp + 0x14]
push ebx
mov byte [eax + 0x18], bl
call fcn.0041315d
jmp 0x436336
cmp byte [ebp + 0xc], bl
je 0x43631c
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x450], eax
jmp 0x436336
mov esi, dword [ebp + 0x14]
push 1
call fcn.0041315d
cmp dword [esp + 0x64], ebx
je 0x436336
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.00401a04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x438c2f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call edi
cmp eax, 0x103
je 0x438d3b
mov eax, dword [ebp + 0xc]
or eax, 0x20019
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x228]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438d4d
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00438c2f
pop ecx
pop ecx
push dword [ebp - 0xc]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x438d4d
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00439477
test al, al
je 0x438cef
call fcn.00439477
test al, al
mov eax, dword [ebp - 0x10]
jne 0x438cdd
mov eax, 0x4394a6
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
push ecx
push dword [ebp + 8]
call eax
jmp 0x438cff
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x438d3f
cmp dword [ebp - 0x18], ebx
je 0x438d11
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call edi
cmp eax, 0x103
jne 0x438c78
mov al, 1
jmp 0x438d4f
cmp dword [ebp - 0x18], ebx
je 0x438d4d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44176c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x4914d0
test edi, edi
je 0x441789
call 0x480679
mov dword [0x49153c], eax
jmp 0x44178e
mov eax, dword [0x49153c]
cmp eax, 0xffffffff
jne 0x44179a
xor eax, eax
jmp 0x4418d5
mov ecx, dword [0x491530]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
cmp byte [edi + 0x3a], 0
mov ecx, dword [edi]
push ebx
mov dword [ebp + 0xc], ecx
je 0x4417dc
cmp dword [edi + 0x180], 0
mov byte [edi + 0x3a], 0
jl 0x4417dc
cmp byte [edi + 0x18c], 0
je 0x4417dc
push dword [edi + 0x188]
call 0x4871f9
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0x18c], 0
mov ebx, dword [ebp + 8]
cmp ebx, 8
jg 0x44186e
je 0x441844
test ebx, ebx
je 0x441832
cmp ebx, 1
je 0x441844
cmp ebx, 2
je 0x441816
cmp ebx, 3
je 0x4418b7
jle 0x4418cd
cmp ebx, 5
jle 0x441844
cmp ebx, 6
je 0x44181a
jmp 0x4418cd
mov byte [edi + 0x38], 1
cmp byte [edi + 0x38], 0
je 0x4418d2
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4418cd
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 0x38], 0
jmp 0x4418cd
cmp byte [edi + 0x38], 0
jne 0x4418d2
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x441868
cmp ebx, 4
je 0x441868
push dword [ebp + 0xc]
call fcn.0044c3f5
mov byte [edi + 0x38], 1
jmp 0x4418cd
mov eax, ebx
sub eax, 9
je 0x4418b7
sub eax, 0x37
je 0x4418b3
dec eax
je 0x4418a8
dec eax
je 0x44189b
dec eax
jne 0x4418cd
push eax
mov byte [edi + 0x39], al
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4418cd
push ecx
mov byte [edi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x4418cd
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4418cd
push 1
jmp 0x4418aa
cmp byte [edi + 0x38], 0
je 0x4418d2
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
call fcn.0044c45a
xor eax, eax
inc eax
jmp 0x4418d4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x444d93
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
lea esi, [ebp - 8]
mov eax, 0x4914d0
call 0x483e8f
test al, al
jne 0x444db7
xor eax, eax
jmp 0x444f94
mov ecx, dword [0x491530]
mov eax, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x491544]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
mov al, byte [edi + 0x88]
mov esi, dword [edi]
lea edx, [ebp + 8]
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], al
call fcn.00454138
mov eax, dword [edi + 0x44]
xor edx, edx
cmp eax, edx
jl 0x444dfa
push eax
call 0x484d69
xor edx, edx
movzx eax, byte [ebp - 1]
cmp eax, 0x12
jg 0x444ed6
je 0x444e94
cmp eax, edx
je 0x444e84
jle 0x444db0
cmp eax, 4
jle 0x444f1d
cmp eax, 8
je 0x444e66
cmp eax, 0x10
je 0x444e52
cmp eax, 0x11
jne 0x444db0
mov ecx, dword [ebp + 8]
cmp ecx, edx
jl 0x444db0
push 1
mov dword [edi + 0x44], ecx
call 0x484d05
push 1
push 0
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x444f7d
cmp dword [ebp + 8], edx
jl 0x444db0
push dword [ebp + 8]
push edx
push 0x111d
jmp 0x444e78
cmp dword [ebp + 8], edx
jl 0x444db0
push dword [ebp + 8]
push edx
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x444f7d
mov ecx, dword [ebp + 8]
cmp ecx, edx
jge 0x444f40
jmp 0x444db0
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jl 0x444db0
push 1
mov dword [edi + 0x44], ecx
call 0x484d6f
test byte [edi + 0x8a], 0x20
jne 0x444f7d
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x444f7d
cmp eax, 0x13
je 0x444f2c
cmp eax, 0x14
je 0x444e2b
cmp eax, 0x17
je 0x444f1d
cmp eax, 0x18
je 0x444efe
jle 0x444db0
cmp eax, 0x1b
jle 0x444f1d
jmp 0x444db0
cmp dword [ebp + 8], edx
jl 0x444db0
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 8]
push 1
mov dword [edi + 0x44], ecx
call 0x484def
jmp 0x444f6d
cmp dword [ebp + 8], 0xfffffffe
je 0x444db0
mov ecx, 0xfe000000
cmp dword [ebp + 8], ecx
jne 0x444f4c
push 1
mov dword [edi + 0x44], ecx
call 0x484e0f
jmp 0x444f7d
push dword [ebp + 8]
push edx
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push dword [ebp + 8]
push 0
push 0x1026
push dword [ebp - 0xc]
call esi
cmp byte [ebx + 0x39], 0
jne 0x444f7d
push 1
push edi
mov esi, ebx
call 0x4840ce
cmp dword [0x4803bc], 0
je 0x444f91
cmp byte [ebp - 1], 8
jne 0x444f91
or eax, 0xffffffff
jmp 0x444f94
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x457c59
Capabilities:
Create thread

Disassembly:
push 0x457b8a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x457c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call 0x4ae630
pop ecx
test ebx, ebx
je 0x457c88
push ebx
call 0x4b2eb0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45e080
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479d30]
jne 0x45e08a
repz ret
jmp fcn.00466186

Function at 0x46431c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045b70c
and dword [ebp - 0x14], 0
cmp dword [0x47fff4], 0
mov dword [ebp - 0x18], eax
jne 0x4643cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x464477
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d4a0
push ebx
call edi
test eax, eax
je 0x464477
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x46d490
push ebx
mov dword [0x47fff4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47fff8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47fffc], eax
call edi
push eax
call esi
mov dword [0x480004], eax
test eax, eax
je 0x4643cf
push 0x46d448
push ebx
call edi
push eax
call esi
mov dword [0x480000], eax
mov eax, dword [0x480000]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x464428
cmp dword [0x480004], ecx
je 0x464428
push eax
call esi
push dword [0x480004]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x464428
test ebx, ebx
je 0x464428
call edi
test eax, eax
je 0x46441f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46441f
test byte [ebp - 8], 1
jne 0x464428
or dword [ebp + 0x10], 0x200000
jmp 0x46445b
mov eax, dword [0x47fff8]
cmp eax, dword [ebp - 0x18]
je 0x46445b
push eax
call esi
test eax, eax
je 0x46445b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46445b
mov eax, dword [0x47fffc]
cmp eax, dword [ebp - 0x18]
je 0x46445b
push eax
call esi
test eax, eax
je 0x46445b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47fff4]
call esi
test eax, eax
je 0x464477
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x464479
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e080
leave
ret
Function at 0x405e28
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 0x405e8e
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.00404474
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e95
lea eax, [ebp - 0x10]
call fcn.00404204
ret

Function at 0x40ae5c
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 0x40ae95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f4
jmp 0x40ae9e
mov eax, ebx
mov edx, esi
call fcn.00404258
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b560
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3c8
mov eax, dword [0x4560c8]
cmp byte [eax], 0
je 0x40b5dc
mov eax, dword [0x455eec]
call fcn.00402d34
call fcn.00402bb4
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.0040864c
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 0x40b624
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b612
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x455e98]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x457664]
call fcn.00405294
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
Function at 0x40be80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040429c
lea eax, [ebp - 8]
call fcn.00404714
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf40
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf23
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf40
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf5d
lea eax, [ebp - 8]
call fcn.00404204
ret

Function at 0x40c430
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 0x40c494
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404474
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c49b
lea eax, [ebp - 0xc]
call fcn.00404204
ret

Function at 0x41a61c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x457884
cmp dword [edi], 0
jne 0x41a698
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x457880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4553ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a5f4
lea eax, [esi + 5]
call fcn.0041a614
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a614
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 0x41a66d
mov dword [0x457880], 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 0x41b8b4
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 0x41b8ba
ret
Function at 0x41dd74
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 0x41ddc5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ddac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dd9c
jmp 0x41ddc5
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 0x41ddad
pop ebx
mov esp, ebp
pop ebp
ret