joyce8/EMBER2024-capa huggingface dataset:
Function at 0x117fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x118b520]
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.01176e52
and dword [ebp - 0x14], 0
cmp dword [0x11cd558], 0
mov dword [ebp - 0x18], eax
jne 0x117fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x117fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x117fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x11cd558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x11cd55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x11cd560], eax
call edi
push eax
call esi
mov dword [0x11cd568], eax
test eax, eax
je 0x117fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x11cd564], eax
mov eax, dword [0x11cd564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x117fc78
cmp dword [0x11cd568], ecx
je 0x117fc78
push eax
call esi
push dword [0x11cd568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x117fc78
test ebx, ebx
je 0x117fc78
call edi
test eax, eax
je 0x117fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x117fc6f
test byte [ebp - 8], 1
jne 0x117fc78
or dword [ebp + 0x10], 0x200000
jmp 0x117fcab
mov eax, dword [0x11cd55c]
cmp eax, dword [ebp - 0x18]
je 0x117fcab
push eax
call esi
test eax, eax
je 0x117fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x117fcab
mov eax, dword [0x11cd560]
cmp eax, dword [ebp - 0x18]
je 0x117fcab
push eax
call esi
test eax, eax
je 0x117fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x11cd558]
call esi
test eax, eax
je 0x117fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x117fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.011713cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x567e1d82
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x44e45261
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4026f4
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402702
call dword [0x47701c]
or eax, eax
je 0x402703
ret
mov al, 1
jmp fcn.00402780

Function at 0x40270c
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40271a
call dword [0x477020]
or eax, eax
jne 0x40271b
ret
mov al, 2
jmp fcn.00402780

Function at 0x402724
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x40275c
test edx, edx
je 0x402746
push eax
mov eax, ecx
call dword [0x477024]
pop ecx
or eax, eax
je 0x402755
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402780
mov dword [eax], edx
mov eax, ecx
call dword [0x477020]
or eax, eax
jne 0x40273f
ret
mov al, 1
jmp fcn.00402780
test edx, edx
je 0x402770
push eax
mov eax, edx
call dword [0x47701c]
pop ecx
or eax, eax
je 0x402755
mov dword [ecx], eax
ret

Function at 0x402780
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x479004]
test ecx, ecx
je 0x402790
pop edx
call ecx
dec eax
mov al, byte [eax + 0x4027a9]
jns 0x4027a4
call fcn.004062f8
mov eax, dword [eax + 4]
jmp fcn.00403aac

Function at 0x4027c4
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.004062f8
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x4027d9
ret
xor eax, eax
jmp fcn.00402780

Function at 0x402930
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40295f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c24
jmp 0x40297d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402858
mov edi, eax
test ebx, ebx
je 0x40297d
cmp dword [esi], 0
je 0x40297d
dec ebx
jmp 0x402966
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x479040], 0x8088405
inc edx
mov dword [0x479040], edx
mul edx
mov eax, edx
ret

Function at 0x402ca8
Capabilities:
Query or enumerate registry value

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

Function at 0x402fc0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402fda
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402fda
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402fc6
mov al, 0xa
jmp fcn.00402780
ret
Function at 0x40300c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x479018], 0
je 0x4029b3
call dword [0x479018]
mov eax, 0xd2
jmp fcn.00403aac
push eax
push ecx
mov eax, dword [eax]
call fcn.00402fdc
pop ecx
pop eax
je 0x40301b
jmp ebx
pop ecx
jmp 0x4029a4

Function at 0x403024
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402fdc
mov eax, ebx
pop ebx
jne 0x403039
pop ecx
jmp 0x4029a4
ret

Function at 0x403980
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4794a0
mov esi, 0x479034
mov edi, 0x479038
cmp byte [ebx + 0x24], 0
jne 0x4039af
cmp dword [edi], 0
je 0x4039af
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x40399e
cmp dword [0x47903c], 0
je 0x4039ff
call fcn.004038fc
cmp byte [0x479044], 0
je 0x4039dc
mov edx, 0x477028
mov eax, 0x479218
call fcn.00405b94
call fcn.00405b17
jmp 0x4039f8
cmp byte [0x477010], 0
jne 0x4039f8
push 0
push 0x477048
push 0x477028
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x47903c], eax
cmp byte [ebx + 0x24], 2
jne 0x403a0f
cmp dword [esi], 0
jne 0x403a0f
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004037d0
cmp byte [ebx + 0x24], 1
jbe 0x403a1f
cmp dword [esi], 0
je 0x403a3c
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403a3c
call fcn.004053ac
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403a3c
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.004037a8
cmp byte [ebx + 0x24], 1
jne 0x403a4a
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403a55
call fcn.0040394c
cmp dword [ebx], 0
jne 0x403a62
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4039ff

Function at 0x403aa0
Capabilities:
Terminate process

Disassembly:
mov dword [0x479034], eax
jmp fcn.00403980

Function at 0x403af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026f4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x479045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ab8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4041a8
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.0040416c
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.0040416c
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x404154
ret

Function at 0x404250
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.00402780
test ecx, ecx
je fcn.0040416c
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404154
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret
Function at 0x404290
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4042a4
push eax
push 0
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404154
ret

Function at 0x404318
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x404357
cmp al, 0xb
je 0x404357
cmp al, 0xc
je 0x404361
cmp al, 0xd
je 0x404374
cmp al, 0xe
je 0x404392
cmp al, 0xf
je 0x404357
cmp al, 0x11
je 0x404357
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402780
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x404357
jmp 0x4043a6
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x404361
jmp 0x4043a6
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00404318
dec edi
jg 0x404377
pop ebp
jmp 0x4043a6
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004042ec
dec edi
jg 0x404395
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4043ac
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00404318

Function at 0x4043e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, 0
je 0x4044ca
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x404434
cmp al, 0xb
je 0x40444e
cmp al, 0xc
je 0x404465
cmp al, 0xd
je 0x404474
cmp al, 0xe
je 0x404492
cmp al, 0xf
je 0x4044a8
cmp al, 0x11
je 0x4044b7
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.00402780
cmp ecx, 1
mov eax, ebx
jg 0x404445
call fcn.00403b3c
jmp 0x4044c6
mov edx, ecx
call fcn.00403b60
jmp 0x4044c6
cmp ecx, 1
mov eax, ebx
jg 0x40445c
call fcn.0040416c
jmp 0x4044c6
mov edx, ecx
call fcn.00404184
jmp 0x4044c6
mov eax, ebx
add ebx, 0x10
call fcn.00404c4c
dec edi
jg 0x404465
jmp 0x4044c6
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.004043e4
dec edi
jg 0x404477
pop ebp
jmp 0x4044c6
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004043b8
dec edi
jg 0x404495
pop ebp
jmp 0x4044c6
mov eax, ebx
add ebx, 4
call fcn.00405474
dec edi
jg 0x4044a8
jmp 0x4044c6
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00404e40
dec edi
jg 0x4044b7
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4044cc
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.004043e4
Function at 0x4044d8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x404504
mov edx, eax
add eax, esi
add edx, ebx
call fcn.00402818
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x404543
cmp cl, 0xb
je 0x404554
cmp cl, 0xc
je 0x404565
cmp cl, 0xd
je 0x404576
cmp cl, 0xe
je 0x404596
cmp cl, 0xf
je 0x4045af
cmp cl, 0x11
je 0x4045c0
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.00402780
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403b90
mov eax, 4
jmp 0x4045d1
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004041a8
mov eax, 4
jmp 0x4045d1
lea edx, [esi + eax]
add eax, ebx
call fcn.00404894
mov eax, 0x10
jmp 0x4045d1
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.004045f4
pop eax
jmp 0x4045d1
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.004044d8
pop eax
jmp 0x4045d1
mov edx, dword [esi + eax]
add eax, ebx
call fcn.0040548c
mov eax, 4
jmp 0x4045d1
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404e7c
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x4044f2
pop ecx
sub ecx, eax
jle 0x4045ed
lea edx, [ebx + eax]
add eax, esi
call fcn.00402818
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4045f4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x14]
mov cl, byte [edi]
cmp cl, 0xa
je 0x40463a
cmp cl, 0xb
je 0x404651
cmp cl, 0xc
je 0x404665
cmp cl, 0xd
je 0x404679
cmp cl, 0xe
je 0x40469a
cmp cl, 0xf
je 0x4046b7
cmp cl, 0x11
je 0x4046cb
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.00402780
mov eax, ebx
mov edx, dword [esi]
call fcn.00403b90
add ebx, 4
add esi, 4
dec ebp
jne 0x40463a
jmp 0x4046df
mov eax, ebx
mov edx, dword [esi]
call fcn.004041a8
add ebx, 4
add esi, 4
dec ebp
jne 0x404651
jmp 0x4046df
mov eax, ebx
mov edx, esi
call fcn.00404894
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x404665
jmp 0x4046df
xor ecx, ecx
mov cl, byte [edi + 1]
lea edi, [edi + ecx + 2]
mov eax, ebx
mov edx, esi
mov ecx, dword [edi + 8]
push dword [edi + 4]
call fcn.004045f4
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x404682
jmp 0x4046df
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.004044d8
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x40469a
jmp 0x4046df
mov eax, ebx
mov edx, dword [esi]
call fcn.0040548c
add ebx, 4
add esi, 4
dec ebp
jne 0x4046b7
jmp 0x4046df
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.00404e7c
add ebx, 4
add esi, 4
dec ebp
jne 0x4046cb
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x404894
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402780
cmp eax, edx
je 0x40492c
cmp word [eax], 8
jb 0x4048cc
push eax
push edx
cmp word [eax], 0x100
je 0x4048c2
cmp word [eax], 0x101
je 0x4048ba
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4048ca
call dword [0x4793e4]
jmp 0x4048ca
add eax, 8
call fcn.00403b3c
pop edx
pop eax
cmp word [edx], 8
jae 0x4048e3
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
je 0x4048fe
cmp word [edx], 0x101
jne 0x404918
push eax
call 0x4048d2
pop eax
jmp dword [0x4793ec]
mov edx, dword [edx + 8]
or edx, edx
je 0x40490f
mov ecx, dword [edx - 8]
inc ecx
jle 0x40490f
lock inc dword [edx - 8]
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x404848
ret

Function at 0x404c18
Capabilities:
Terminate process

Disassembly:
push eax
cmp word [eax], 8
jb 0x404c26
push edx
call fcn.00404850
pop edx
xor eax, eax
test edx, edx
je 0x404c42
mov eax, dword [edx - 4]
shr eax, 1
je 0x404c42
push eax
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x404154
pop edx
mov word [edx], 8
mov dword [edx + 8], eax
ret
Function at 0x4050b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405270
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405115
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40528c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405187
xor eax, eax
push ebp
push 0x405180
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404f0c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405169
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4052ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405187
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405268
cmp byte [ebp - 0xd], 0
jne 0x4051c9
cmp byte [ebp - 0x12], 0
je 0x405268
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4051e2
dec ebx
cmp byte [ebx], 0x2e
je 0x4051f1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051e1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405268
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40521e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405268
cmp byte [ebp - 0xd], 0
je 0x405268
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405268
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40582c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x40583f
sub ecx, 2
jne 0x405868
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40585c
cmp edx, dword [ebx + 8]
jne 0x40586f
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.004027e4
jmp 0x40585a
mov eax, 0x67
jmp 0x405861
mov eax, 0x64
jmp 0x405861