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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1007fa4
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x1007fa4
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1007fa4
mov edx, dword [ebp + 0x18]
cmp edx, edi
je 0x1007fa4
cmp dword [edx], 1
ja 0x1007f66
mov eax, 0x80070057
jmp 0x1007fa9
mov ecx, dword [esi]
cmp ecx, 1
je 0x1007f77
cmp ecx, 2
je 0x1007f77
cmp ecx, 7
jne 0x1007f5f
push edx
push eax
push esi
push 0x22
push dword [ebp + 0xc]
xor ecx, ecx
push edi
push dword [ebp + 8]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, edi
je 0x1007fa0
jle 0x1007f9e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
jmp 0x1007fa9
mov eax, 0x80004003
pop edi
pop esi
pop ebp
ret 0x18

Function at 0x100848a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10013b0
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10084f2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100139c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10084e9
cmp dword [ebp - 0xc], 4
jne 0x10084e9
cmp dword [ebp - 0x10], 1
jne 0x10084e9
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x10089f1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0xc], ecx
pop ebx
mov ecx, dword [ebp - 0xc]
push 0
push dword [ebp - 8]
call fcn.01008611
mov dword [ebp - 4], eax
test eax, eax
je 0x1008b1d
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
imul esi, esi, 0x228
add esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 8], ecx
jne 0x1008a66
cmp dword [edx + 0x230], ecx
je 0x1008a51
push ebx
lea edx, [esi + 4]
push edx
push ebx
push ecx
push 0x10017a8
push eax
call edi
push ebx
lea eax, [esi + 0x21c]
push eax
push ebx
push 0
push 0x100178c
push dword [ebp - 4]
jmp 0x1008a7b
cmp dword [edx + 0x230], ecx
je 0x1008a7d
push ebx
lea edx, [esi + 8]
push edx
push ebx
push ecx
push 0x10017a8
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x234], 0
je 0x1008ade
push ebx
lea eax, [esi + 0xc]
push eax
push ebx
push 0
push 0x1001770
push dword [ebp - 4]
call edi
lea ecx, [esi + 0x10]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x10], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1008aa6
sub eax, dword [ebp - 0x10]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 2
push 0
push 0x1001744
push dword [ebp - 4]
call edi
push ebx
lea eax, [esi + 0x218]
push eax
push ebx
push 0
push 0x1001718
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x238], 0
je 0x1008b14
push ebx
lea eax, [esi + 0x220]
push eax
push ebx
push 0
push 0x1001704
push dword [ebp - 4]
call edi
push ebx
add esi, 0x224
push esi
push ebx
push 0
push 0x10016e4
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x1008a0c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1008b36
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push 1
mov dword [ebp - 8], ecx
call fcn.01008611
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi], edi
mov dword [ebp - 4], eax
mov dword [ecx], edi
cmp eax, edi
je 0x1008c4f
mov eax, dword [ebp + 8]
push ebx
cmp dword [eax + 8], edi
je 0x1008b72
cmp dword [eax], edi
je 0x1008c1b
push edi
xor ebx, ebx
cmp dword [eax], edi
push 0xa
push edi
setne bl
push esi
push 0x1001878
push dword [ebp - 4]
lea ebx, [ebx + ebx - 1]
call fcn.010066b5
test eax, eax
jge 0x1008b95
mov dword [esi], edi
push edi
push 0xa
push edi
push dword [ebp + 0x10]
push 0x1001858
push dword [ebp - 4]
call fcn.010066b5
mov edx, dword [ebp + 0x10]
test eax, eax
jge 0x1008bb2
mov dword [edx], edi
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], edi
je 0x1008bd6
mov eax, dword [esi]
add eax, ebx
cmp eax, edi
jl 0x1008bd0
cmp eax, 0xa
jle 0x1008bcc
push 0xa
pop eax
jmp 0x1008bd2
cmp eax, edi
jge 0x1008bd2
xor eax, eax
mov dword [esi], eax
jmp 0x1008bf0
mov eax, dword [edx]
add eax, ebx
cmp eax, edi
jl 0x1008bec
cmp eax, 0xa
jle 0x1008be8
push 0xa
pop eax
jmp 0x1008bee
cmp eax, edi
jge 0x1008bee
xor eax, eax
mov dword [edx], eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0xc]
je 0x1008c1b
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1008c1b
mov eax, dword [esi]
cmp eax, ecx
jbe 0x1008c09
mov eax, ecx
mov dword [esi], eax
mov eax, dword [edx]
cmp eax, ecx
jbe 0x1008c13
mov eax, ecx
mov dword [edx], eax
cmp eax, ecx
jne 0x1008c1b
mov dword [esi], edi
push 4
pop ebx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push edi
push 0x1001878
push dword [ebp - 4]
call esi
push ebx
push dword [ebp + 0x10]
push ebx
push edi
push 0x1001858
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x1009fe4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
call fcn.01009da4
mov ebx, eax
test ebx, ebx
jne 0x100a057
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x10018f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a057
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10018c8
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a04d
cmp dword [ebp - 8], esi
jne 0x100a04d
cmp dword [ebp - 0x10], eax
je 0x100a04d
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100c909
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xef8
mov eax, dword [0x100f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ebx, ebx
push ebx
push 0x27
lea eax, [ebp - 0x20c]
push eax
push ebx
mov esi, ecx
call edi
test eax, eax
jne 0x100c96a
push ebx
push 5
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
test eax, eax
jne 0x100c96a
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100c96a
mov word [ebp - 0x20c], ax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40e
lea eax, [ebp - 0xe3c]
push eax
push 0x3f1
push dword [esi + 8]
call edi
cmp eax, ebx
jle 0x100cb2b
mov ecx, 0x40d
sub ecx, eax
push ecx
lea ebx, [ebp + eax*2 - 0xe3a]
push ebx
push 0x3f0
push dword [esi + 8]
call edi
test eax, eax
jle 0x100cb2b
lea eax, [ebx + eax*2]
xor ecx, ecx
mov word [eax], cx
mov word [eax + 2], cx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x61c]
push eax
push 0x3ee
push dword [esi + 8]
call edi
test eax, eax
je 0x100cb2b
xor eax, eax
xor edi, edi
push 0x54
mov word [ebp - 0x414], ax
lea eax, [ebp - 0xe94]
push edi
push eax
mov dword [ebp - 0xe40], edi
call sub.msvcrt.dll_memset
mov eax, dword [esi + 4]
mov dword [ebp - 0xe94], eax
lea eax, [ebp - 0xe3c]
mov dword [ebp - 0xe8c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xe7c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xe6c], eax
lea eax, [ebp - 0x61c]
mov dword [ebp - 0xe68], eax
add esp, 0xc
lea eax, [ebp - 0xe98]
push eax
mov dword [ebp - 0xe98], 0x58
mov dword [ebp - 0xe80], 1
mov dword [ebp - 0xe78], ebx
mov dword [ebp - 0xe64], 0x1004
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x100cb6f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100cb6f
test al, 6
jne 0x100cb6f
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.0100bcf3
test eax, eax
je 0x100cab9
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.0100c60e
mov dword [ebp - 0xe40], eax
jmp 0x100cb6f
push 0x5c
lea eax, [ebp - 0xef4]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 4]
add esp, 0xc
push edi
mov dword [ebp - 0xef4], eax
mov eax, dword [esi + 8]
push edi
mov dword [ebp - 0xef0], eax
push edi
lea eax, [ebp - 0xef8]
push eax
mov dword [ebp - 0xef8], 0x60
mov dword [ebp - 0xee8], 0x20
mov dword [ebp - 0xee4], 0x3f9
mov dword [ebp - 0xedc], 0x3fa
mov dword [ebp - 0xed8], 0x3fb
mov dword [ebp - 0xee0], 0xfffd
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
jmp 0x100cb6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100cb3f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe40], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cb6f
test byte [eax + 0x1c], 4
je 0x100cb6f
push dword [ebp - 0xe40]
push 0x1001b74
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ad6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe40]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d5cb
leave
ret
Function at 0x100d575
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100dc80
call fcn.0100d774
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100f638
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100d32c
cmp eax, esi
jne 0x100d31f
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100d32f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100d306
xor esi, esi
inc esi
mov eax, dword [0x100f634]
cmp eax, esi
jne 0x100d342
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100d371
mov eax, dword [0x100f634]
test eax, eax
jne 0x100d36b
mov dword [0x100f634], esi
push 0x1001310
push 0x1001304
call fcn.0100d26b
pop ecx
pop ecx
test eax, eax
je 0x100d371
jmp 0x100d499
mov dword [0x100f2f8], esi
mov eax, dword [0x100f634]
cmp eax, esi
jne 0x100d395
push 0x1001300
push 0x10012f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100f634], 2
test ebx, ebx
jne 0x100d3a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100f63c], 0
je 0x100d3c5
push 0x100f63c
call fcn.0100d6e9
pop ecx
test eax, eax
je 0x100d3c5
push 0
push 2
push 0
call dword [0x100f63c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100d421
test al, al
je 0x100d3df
cmp dword [ebp - 0x1c], 0
jne 0x100d421
mov al, byte [esi]
test al, al
je 0x100d3ef
cmp al, 0x20
ja 0x100d3ef
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100d3df
test byte [ebp - 0x3c], 1
je 0x100d3fb
movzx eax, word [ebp - 0x38]
jmp 0x100d3fe
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100f2f4], eax
cmp dword [0x100f2e8], 0
jne 0x100d475
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100d430
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100d443
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100d3cc
cmp dword [0x100f2f8], 0
jne 0x100d484
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100f2f4]
jmp 0x100d4a5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d7b9
ret
call fcn.0100d8c1
jmp 0x100d2cc
Function at 0x401fe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00401c02
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e

Function at 0x402030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00401c4d
push eax
push esi
push dword [ebp + 8]
call fcn.00401c02
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00401c4d
push eax
push esi
push dword [ebp + 8]
call fcn.00401c02
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00401c3d
imul ecx, edi, 0x9d8855d6
jl 0x4020c2
invalid
invalid
Function at 0x4012d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4012fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40131e
cmp esi, eax
jae 0x4012f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401310
cmp esi, eax
jae 0x4012f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ba45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x83
mov dword [esp + 0x18], esi
call fcn.00422c46
mov dword [esp + 0x1c], 0
mov dword [esi], method.CDialog.virtual_0
lea edi, [esi + 0x70]
call fcn.00423575
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebp, [esi + 0x74]
call fcn.00423575
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
lea ebx, [esi + 0x78]
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.0041f537
mov dword [ebx], vtable.CButton.0
lea ebx, [esi + 0xc8]
mov ecx, ebx
mov byte [esp + 0x1c], 3
call fcn.0041f537
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x118]
mov ecx, ebx
mov byte [esp + 0x1c], 4
call fcn.0041f537
mov dword [ebx], vtable.CStatic.0
mov bl, 5
mov byte [esp + 0x1c], bl
call fcn.00428352
mov eax, dword [eax + 4]
push 0x42d83c
push str.username
push str.Option
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00428544
push eax
mov ecx, edi
mov byte [esp + 0x20], 6
call fcn.00401c60
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00428352
mov eax, dword [eax + 4]
push 0x42d83c
push str.registration_code
push str.Option
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00428544
push eax
mov ecx, ebp
mov byte [esp + 0x20], 7
call fcn.00401c60
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x168], 4
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4067f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x120]
test eax, eax
je 0x40684d
mov eax, dword [esi + 0x150]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov eax, dword [esi + 0x120]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
cmp dword [esi + 0x118], 1
jne 0x40684c
mov ecx, esi
mov dword [esi + 0x128], 0
call fcn.00405d30
mov edx, dword [esi + 0x150]
push 0
push edx
mov dword [esi + 0x118], 1
call edi
pop edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x150]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x150], 0
pop esi
ret
Function at 0x40882f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x408882
call fcn.00428352
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x408882
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408878
xor eax, eax
jmp 0x40899b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4088b2
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4088b2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x408998
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4088df
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004076c0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x408998
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408928
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408928
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408922
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004076c0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x408988
and dword [ebp + 0xc], 0
jmp 0x408988
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x408988
push 0xc
call fcn.00422b2f
mov esi, eax
test esi, esi
pop ecx
je 0x40896a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40896c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x408983
push dword [ebp - 8]
call fcn.0041e4ea
jmp 0x408988
call fcn.0041e4c1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4088ed
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410efc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004111e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410f97
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43d0fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x410f97
cmp eax, 1
je 0x410fb8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410f97
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410f64
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410f93
xor eax, eax
inc eax
jmp 0x410fd7
cmp edi, eax
jae 0x410f9b
xor eax, eax
jmp 0x410fd7
cmp eax, esi
jae 0x410fa2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43d0fc]
jmp 0x410fbb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412603
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x431a80
call fcn.00413440
mov edi, 0x94
mov eax, edi
call fcn.004111e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43d0fc], ecx
mov eax, dword [esi + 4]
mov dword [0x43d108], eax
mov edx, dword [esi + 8]
mov dword [0x43d10c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43d100], esi
cmp ecx, 2
je 0x412663
or esi, 0x8000
mov dword [0x43d100], esi
shl eax, 8
add eax, edx
mov dword [0x43d104], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41269e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41269e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4126b6
cmp eax, 0x20b
je 0x4126a3
mov dword [ebp - 0x1c], esi
jmp 0x4126ca
cmp dword [ecx + 0x84], 0xe
jbe 0x41269e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4126c4
cmp dword [ecx + 0x74], 0xe
jbe 0x41269e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414353
pop ecx
test eax, eax
jne 0x4126de
push 0x1c
call fcn.004125df
pop ecx
call fcn.00415d17
test eax, eax
jne 0x4126ef
push 0x10
call fcn.004125df
pop ecx
call fcn.00418c0c
mov dword [ebp - 4], esi
call fcn.004162a5
test eax, eax
jge 0x412708
push 0x1b
call fcn.004125ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43e9d0], eax
call fcn.00418aea
mov dword [0x43d0e8], eax
call fcn.00418a48
test eax, eax
jge 0x41272e
push 8
call fcn.004125ba
pop ecx
call fcn.00418815
test eax, eax
jge 0x41273f
push 9
call fcn.004125ba
pop ecx
push 1
call fcn.004131a6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412755
push eax
call fcn.004125ba
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004187b8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412776
movzx eax, word [ebp - 0x40]
jmp 0x412779
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041df4e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412797
push edi
call fcn.004132d3
call fcn.004132f5
jmp 0x4127c9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041347b
ret