joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a8e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00426180
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x414b1a
cmp ebx, dword [ebp + 4]
jg 0x414c72
cmp edi, esi
jge 0x414b07
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414b03
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x414ae3
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x414b0d
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414ace
cmp ebx, dword [ebp + 4]
jg 0x414c72
mov edi, 0x448140
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x414ba9
cmp esi, 1
jle 0x414b9d
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414b89
sub ebp, 1
jne 0x414b86
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x414c65
jmp 0x414c19
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414bb3
sub ebp, 1
jne 0x414bb0
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414c09
sub ebp, 1
jne 0x414c06
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x414c61
cmp edi, esi
jge 0x414c4e
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414c51
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x414c2e
cmp edx, 4
jne 0x414c54
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414c19
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x414b28
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x30
ret 4
Function at 0x415c67
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x150]
xor esi, esi
mov dword [esp + 0x30], edi
lea ebx, [edi + 0x28]
push dword [ebx]
call fcn.0042c4ab
mov dword [esp + esi*4 + 0x4c], eax
lea ebx, [ebx + 4]
inc esi
pop ecx
cmp esi, 0x10
jb 0x415c8f
push 0x30
lea ebx, [esp + 0x84]
pop ebp
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub ebp, 1
jne 0x415cae
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, ebp
rol eax, 7
mov dword [esp + 0x40], esi
mov esi, ebp
ror esi, 0xb
xor esi, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov eax, ebp
mov edx, dword [esp + 0x1c]
mov ecx, ebp
ror eax, 6
not ecx
and ecx, dword [esp + 0x10]
xor esi, eax
mov eax, edx
mov dword [esp + 0x1c], ebp
and eax, ebp
mov dword [esp + 0x3c], ebp
xor ecx, eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add esi, ecx
add esi, dword [ebx + 0x43be30]
add esi, dword [esp + ebx + 0x48]
add ebx, 4
add esi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add ebp, esi
mov dword [esp + 0x10], edx
mov eax, edi
rol eax, 0xa
mov edx, edi
ror edx, 0xd
xor edx, eax
mov dword [esp + 0x20], edi
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x18]
mov ecx, eax
and eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x14]
and ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea edi, [edx + esi]
mov esi, dword [esp + 0x1c]
mov edx, eax
cmp ebx, 0x100
jb 0x415d25
mov eax, dword [esp + 0x2c]
add eax, edi
mov edi, dword [esp + 0x30]
add dword [edi + 4], ecx
mov ecx, dword [esp + 0x34]
add dword [edi + 8], ecx
mov ecx, dword [esp + 0x38]
add dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x3c]
add dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x40]
add dword [edi + 0x18], ecx
add dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x44]
add dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x148]
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x13c
ret 4
Function at 0x416871
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448778]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4168d4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00424c44
leave
ret

Function at 0x4168e4
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x439a3c
call fcn.00424ce8
mov ebx, dword [ebp + 8]
push 0x208
call fcn.00424c06
mov edi, eax
pop ecx
mov dword [ebp - 0x6c], edi
lea esi, [edi + 0x208]
push esi
push edi
mov dword [ebp - 0x64], esi
call fcn.00401489
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x416931
xor ebx, ebx
jmp 0x4169e7
and dword [ebp - 0x28], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004014a7
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014a7
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00411851
lea ecx, [ebp - 0x40]
call fcn.00401a66
lea ecx, [ebp - 0x58]
call fcn.00401a66
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x416991
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
cmp ecx, 8
jb 0x4169d6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
cmp ecx, 0x1000
jb 0x4169cd
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004019a9
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
push ecx
push edx
call fcn.00424c36
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x4169f7
sub esi, edi
and esi, 0xfffffffe
push esi
push edi
call fcn.004012a7
mov eax, ebx
call fcn.00424c97
ret 4
Function at 0x4172ae
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x417329
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4173f0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x417305
push str.CreateThread_failed
push 0x44b0c8
call fcn.004092c1
pop ecx
pop ecx
mov ecx, 0x44b0c8
call fcn.004094d6
push 2
mov ecx, 0x44b0c8
call fcn.004092bc
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x452210]
test eax, eax
je 0x41731f
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4172be
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x41d835
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x3c]
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x42], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.0041d564
cmp dword [ebx + 0x20], 0
je 0x41d887
push dword [ebx + 0x20]
call fcn.0042c597
pop ecx
test edi, edi
jne 0x41d88f
xor eax, eax
jmp 0x41d896
push edi
call fcn.0042da53
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41d8a8
push eax
call fcn.0042da53
pop ecx
mov dword [ebx + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x41d8dd
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
push esi
push dword [esp + 0x30]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x43c84c
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebx + 0x1c], 0
mov dword [ebx + 4], eax
jne 0x41d963
cmp dword [ebx + 0x10], esi
jne 0x41d963
test ebp, ebp
je 0x41d979
cmp dword [ebx + 0x24], esi
jne 0x41d979
cmp dword [ebx + 0x20], esi
je 0x41d979
push dword [ebx + 0x20]
mov ecx, ebx
call fcn.0041d65e
mov esi, eax
test esi, esi
je 0x41d979
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042c597
pop ecx
jmp 0x41d979
test eax, eax
je 0x41d979
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x18
ret 0x14
Function at 0x41ef99
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x448778]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.0041f3c7
test al, al
je 0x41f059
push ebx
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], 0x11060000
xor edi, edi
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp], edi
inc ebx
mov dword [ebp - 0x10], 3
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41f057
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41f049
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x5c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x41f049
cmp dword [esi + 0x14], 8
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edi
jb 0x41f03e
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x14], edi
je 0x41f057
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.00424c44
add ebp, 0x74
leave
ret 4

Function at 0x41f254
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x448778]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x448724], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x41f2af
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x452854], ax
xor eax, eax
mov word [0x452856], ax
mov dword [0x448724], 0x452854
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041641e
push edi
push esi
xor eax, eax
push 0x448714
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424c44
leave
ret 0x10
Function at 0x4019f0
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 0x401a09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401a1d
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 0x401a3e
cmp esi, eax
jae 0x401a17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a30
cmp esi, eax
jae 0x401a17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ad0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x12b60
call fcn.00415de0
mov eax, dword [esp + 0x12b70]
test eax, eax
jbe 0x401bc9
xor eax, eax
jmp 0x401af0
mov byte [esp + eax + 8], al
inc eax
cmp eax, 0x12b57
jb 0x401af0
push ebx
push ebp
mov ebp, dword [esp + 0x12b6c]
push esi
push edi
mov edi, dword [esp + 0x12b78]
xor esi, esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [esp + ecx + 0x18]
movzx eax, bl
movzx edx, byte [edx + ebp]
add edx, esi
add eax, edx
xor edx, edx
mov esi, 0x12b57
div esi
inc ecx
cmp ecx, 0x12b57
mov esi, edx
mov al, byte [esp + esi + 0x18]
mov byte [esp + ecx + 0x17], al
mov byte [esp + esi + 0x18], bl
jb 0x401b12
mov ecx, dword [esp + 0x12b80]
mov ebp, dword [esp + 0x12b7c]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], ecx
lea ecx, [ecx]
xor edx, edx
mov ecx, 0x12b57
lea eax, [esi + 1]
div ecx
push 0
push 0
mov esi, edx
mov bl, byte [esp + esi + 0x20]
movzx eax, bl
add eax, edi
xor edx, edx
div ecx
mov al, byte [ebp]
mov byte [esp + 0x1b], al
mov edi, edx
mov dl, byte [esp + edi + 0x20]
mov byte [esp + esi + 0x20], dl
mov byte [esp + edi + 0x20], bl
call dword [sym.imp.USER32.dll_GetSystemMenu]
movzx eax, byte [esp + esi + 0x18]
movzx ecx, bl
add eax, ecx
cdq
mov ecx, 0x12b57
idiv ecx
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
mov dl, byte [esp + edx + 0x18]
xor dl, bl
mov byte [ebp], dl
inc ebp
dec eax
mov dword [esp + 0x14], eax
jne 0x401b60
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x12b60
ret
Function at 0x40c9b8
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 0x40ca0b
call fcn.004432f7
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40ca0b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ca01
xor eax, eax
jmp 0x40cb24
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 0x40ca3b
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 0x40ca3b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40cb21
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ca68
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d0f2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40cb21
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40cab1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40cab1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40caab
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d0f2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40cb11
and dword [ebp + 0xc], 0
jmp 0x40cb11
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40cb11
push 0xc
call fcn.0042d689
mov esi, eax
test esi, esi
pop ecx
je 0x40caf3
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 0x40caf5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40cb0c
push dword [ebp - 8]
call fcn.00427ede
jmp 0x40cb11
call fcn.00428431
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ca76
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4161a0
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.00415de0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41623b
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 [0x46489c]
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 0x41623b
cmp eax, 1
je 0x41625c
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 0x41623b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416208
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416237
xor eax, eax
inc eax
jmp 0x41627b
cmp edi, eax
jae 0x41623f
xor eax, eax
jmp 0x41627b
cmp eax, esi
jae 0x416246
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 [0x46489c]
jmp 0x41625f
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 0x4163f2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x453f70
call fcn.004174cc
mov edi, 0x94
mov eax, edi
call fcn.00415de0
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 [0x46489c], ecx
mov eax, dword [esi + 4]
mov dword [0x4648a8], eax
mov edx, dword [esi + 8]
mov dword [0x4648ac], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4648a0], esi
cmp ecx, 2
je 0x416452
or esi, 0x8000
mov dword [0x4648a0], esi
shl eax, 8
add eax, edx
mov dword [0x4648a4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41648d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41648d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4164a5
cmp eax, 0x20b
je 0x416492
mov dword [ebp - 0x1c], esi
jmp 0x4164b9
cmp dword [ecx + 0x84], 0xe
jbe 0x41648d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4164b3
cmp dword [ecx + 0x74], 0xe
jbe 0x41648d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041a353
pop ecx
test eax, eax
jne 0x4164cd
push 0x1c
call fcn.004163ce
pop ecx
call fcn.0041914c
test eax, eax
jne 0x4164de
push 0x10
call fcn.004163ce
pop ecx
call fcn.0041ba71
mov dword [ebp - 4], esi
call fcn.0041b873
test eax, eax
jge 0x4164f7
push 0x1b
call fcn.004163a9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x466310], eax
call fcn.0041b751
mov dword [0x464880], eax
call fcn.0041b6af
test eax, eax
jge 0x41651d
push 8
call fcn.004163a9
pop ecx
call fcn.0041b47c
test eax, eax
jge 0x41652e
push 9
call fcn.004163a9
pop ecx
push 1
call fcn.00417090
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x416544
push eax
call fcn.004163a9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041b41f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x416565
movzx eax, word [ebp - 0x40]
jmp 0x416568
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00425d9e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x416586
push edi
call fcn.004171bd
call fcn.004171df
jmp 0x4165b8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00417507
ret
Function at 0x4170fa
Capabilities:
Terminate process

Disassembly:
push 8
push 0x453fe0
call fcn.004174cc
push 8
call fcn.0041a308
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4648dc], esi
jne 0x41712e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4648d8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4648d4], al
cmp dword [ebp + 0xc], edi
jne 0x417178
cmp dword [0x466308], edi
je 0x417168
mov eax, dword [0x466304]
sub eax, 4
mov dword [0x466304], eax
cmp eax, dword [0x466308]
jb 0x417168
mov eax, dword [eax]
cmp eax, edi
je 0x417149
call eax
jmp 0x417149
push 0x4600c0
mov eax, 0x4600b8
call fcn.00417078
pop ecx
push 0x4600cc
mov eax, 0x4600c4
call fcn.00417078
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4171a9
cmp dword [ebp + 0x10], edi
jne 0x4171b7
mov dword [0x4648dc], esi
push dword [ebp + 8]
call fcn.00417036
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4171b6
push 8
call fcn.0041a253
pop ecx
ret
call fcn.00417507
ret