joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1222
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x4b12c5
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x4b12a3
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x4b1281
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x4b1250
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x4b3826
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [0x32e9ee4]
test eax, eax
je 0x4b39bd
push dword [esp + 0x28]
call fcn.0043a57a
test eax, eax
je 0x4b3866
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [0x32e9f98]
jmp 0x4b39bd
push edi
push esi
call dword [0x32e9f80]
mov edi, eax
test edi, edi
je 0x4b39aa
push ebp
mov ebp, dword [0x32e9fb8]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4b39a2
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0041fa80
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [0x32e9fdc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4b39a2
mov esi, dword [0x32e9f88]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [0x32e9f74]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4b39a2
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4b39a2
mov eax, dword [0x32e9f94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x4b3999
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x4b3971
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4b3954
mov ebx, dword [esp + 0x1c]
push edi
call dword [0x32e9f90]
pop ebp
push dword [esp + 0x28]
mov esi, dword [0x32e9f98]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x4b5480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4b5605
cmp dword [esi + 0x20], 0
je 0x4b5605
cmp dword [esi + 0x24], 0
je 0x4b5605
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4b5605
cmp dword [eax], esi
jne 0x4b5605
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4b54e5
cmp eax, 0x39
je 0x4b54e5
cmp eax, 0x45
je 0x4b54e5
cmp eax, 0x49
je 0x4b54e5
cmp eax, 0x5b
je 0x4b54e5
cmp eax, 0x67
je 0x4b54e5
cmp eax, 0x71
je 0x4b54e5
cmp eax, 0x29a
jne 0x4b5605
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4b551e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x4b5540
call fcn.00442560
jmp 0x4b5545
call fcn.00442af0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.004b6670
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0041fa80
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4d06aa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4d06a8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4d06ac]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4d06ae]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [esp + eax*4 + 0x10], eax
inc eax
cmp eax, 0x100
jl 0x401010
xor ecx, ecx
lea esi, [ecx + 2]
xor edx, edx
mov eax, ecx
mov ebp, 0xf
div ebp
movzx eax, byte [edx + ebx]
add eax, edi
add eax, dword [esp + ecx*4 + 0x10]
mov edi, eax
and edi, 0x800000ff
jns 0x401048
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x10]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi - 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x14]
mov edi, edx
and edi, 0x800000ff
jns 0x40107e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x10]
movzx eax, al
mov dword [esp + ecx*4 + 0x14], edx
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
mov eax, esi
div ebp
movzx edx, byte [edx + ebx]
add edx, dword [esp + ecx*4 + 0x18]
add edi, edx
and edi, 0x800000ff
jns 0x4010b1
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x18]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x18], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi + 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x1c]
mov edi, edx
and edi, 0x800000ff
jns 0x4010e7
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x1c]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x1c], edx
movzx eax, al
add esi, 4
add ecx, 4
cmp esi, 0x102
mov dword [esp + edi*4 + 0x10], eax
jl 0x401021
mov eax, dword [esp + 0x418]
xor edx, edx
test eax, eax
jbe 0x40118a
mov ebp, dword [esp + 0x414]
inc ecx
and ecx, 0x800000ff
jns 0x401131
dec ecx
or ecx, 0xffffff00
inc ecx
mov esi, dword [esp + ecx*4 + 0x10]
add edi, esi
and edi, 0x800000ff
jns 0x401147
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + ecx*4 + 0x10]
mov esi, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], esi
movzx esi, bl
mov dword [esp + edi*4 + 0x10], esi
mov ebx, dword [esp + ecx*4 + 0x10]
add ebx, esi
and ebx, 0x800000ff
jns 0x401170
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [esp + ebx*4 + 0x10]
xor byte [edx + ebp], bl
inc edx
cmp edx, eax
jb 0x401120
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
mov eax, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df
Function at 0x401960
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 0x401979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40198d
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 0x4019ae
cmp esi, eax
jae 0x401987
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a0
cmp esi, eax
jae 0x401987
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408d00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44c6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov ecx, dword [0x45ebd4]
mov eax, 0x4be59407
imul ecx
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x2e45b009
imul ecx
sar edx, 0x1b
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ebe0]
imul edx, edx, 0x15c6babc
sub esi, ecx
mov ecx, dword [0x45ebd8]
sub esi, edx
mov eax, 0x9c5fe915
imul ecx
add edx, ecx
mov ecx, dword [0x45ebcc]
sar edx, 0x1d
mov edi, edx
add esi, edx
mov eax, 0x9c5fe915
imul ecx
add edx, ecx
mov ecx, dword [0x45ebdc]
imul ecx, ecx, 0x3e20adb7
sar edx, 0x1d
shr edi, 0x1f
mov eax, edx
add edi, esi
shr eax, 0x1f
add edi, edx
mov edx, dword [0x57504c]
add eax, edi
add eax, ecx
mov ecx, 0x57504c
mov dword [0x45ebc4], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [0x45ebd0]
mov ecx, dword [0x45ebe8]
mov eax, 0xc09944a7
imul esi
add edx, esi
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebe4]
mov edi, ecx
imul edx, edx, 0xd0d40b9
imul edi, edi, 0x31136cfe
sub edi, eax
add edi, edx
mov eax, 0x9c5fe915
imul ecx
add edx, ecx
mov ecx, dword [0x45ebc4]
sar edx, 0x1d
imul ecx, ecx, 0x346312ef
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
sub edi, ecx
mov ecx, dword [0x45ebd8]
mov eax, 0x56a9121b
imul ecx
sar edx, 0x1a
mov eax, edx
mov dword [esp + 0x14], 0
shr eax, 0x1f
mov ecx, dword [0x45ebe0]
add eax, edx
add edi, ecx
lea ecx, [eax + edi - 0xbd0f4c0]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov dword [0x45ebd0], ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00408a70
mov ecx, dword [0x45ebe4]
mov eax, 0x4be59407
imul ecx
mov ecx, dword [0x45ebcc]
mov eax, dword [0x45ebc8]
sar edx, 0x1c
imul eax, eax, 0x2d80f713
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, ecx
imul edx, edx, 0x5885071a
add esi, edx
add esi, eax
mov eax, 0x273a7861
imul ecx
sar edx, 0x19
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x45ebd0]
mov eax, 0x9c5fe915
imul ecx
add edx, ecx
mov ecx, dword [0x45ebc4]
imul ecx, ecx, 0xbd0f4c0
sar edx, 0x1d
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
mov esi, dword [esp + 8]
add eax, ecx
push esi
mov dword [0x45ebdc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x408ef5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41cc00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x460640]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41cd02
lea ecx, [esp + 0xc]
call fcn.0041cae0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41cd06
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41ccde
jmp 0x41cca0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041cc00
mov edi, eax
test edi, edi
jne 0x41cd2d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41cca0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41ccf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41cd11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00431a6d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41cd3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41cd13
Function at 0x41d220
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41d232
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x428b5a
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 0x428bad
call fcn.00449ba3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x428bad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x428ba3
xor eax, eax
jmp 0x428cc6
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 0x428bdd
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 0x428bdd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x428cc3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x428c0a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004292ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x428cc3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x428c53
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x428c53
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x428c4d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004292ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x428cb3
and dword [ebp + 0xc], 0
jmp 0x428cb3
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x428cb3
push 0xc
call fcn.004437a9
mov esi, eax
test esi, esi
pop ecx
je 0x428c95
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 0x428c97
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x428cae
push dword [ebp - 8]
call fcn.0043f1f4
jmp 0x428cb3
call fcn.0043f1cb
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x428c18
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043424c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x432020
test byte [esp + 8], 2
je 0x432020
call fcn.0043423a
mov dword [eax], 0xd
call fcn.00434243
mov dword [eax], 5
jmp 0x431ff9
xor eax, eax
ret
Function at 0x4320e7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x452630
call fcn.004340bc
push 8
call fcn.004362d6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x574b3c], esi
jne 0x43211b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x574b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x574b34], al
cmp dword [ebp + 0xc], edi
jne 0x432165
cmp dword [0x57642c], edi
je 0x432155
mov eax, dword [0x576428]
sub eax, 4
mov dword [0x576428], eax
cmp eax, dword [0x57642c]
jb 0x432155
mov eax, dword [eax]
cmp eax, edi
je 0x432136
call eax
jmp 0x432136
push 0x45b0cc
mov eax, 0x45b0c4
call fcn.00432065
pop ecx
push 0x45b0d8
mov eax, 0x45b0d0
call fcn.00432065
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x432196
cmp dword [ebp + 0x10], edi
jne 0x4321a4
mov dword [0x574b3c], esi
push dword [ebp + 8]
call fcn.00432023
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4321a3
push 8
call fcn.00436221
pop ecx
ret
call fcn.004340f7
ret

Function at 0x432417
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.004322b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4324b2
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 [0x574afc]
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 0x4324b2
cmp eax, 1
je 0x4324d3
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 0x4324b2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43247f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4324ae
xor eax, eax
inc eax
jmp 0x4324f2
cmp edi, eax
jae 0x4324b6
xor eax, eax
jmp 0x4324f2
cmp eax, esi
jae 0x4324bd
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 [0x574afc]
jmp 0x4324d6
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 0x432e62
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4526e8
call fcn.004340bc
mov edi, 0x94
mov eax, edi
call fcn.004322b0
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 [0x574afc], ecx
mov eax, dword [esi + 4]
mov dword [0x574b08], eax
mov edx, dword [esi + 8]
mov dword [0x574b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x574b00], esi
cmp ecx, 2
je 0x432ec2
or esi, 0x8000
mov dword [0x574b00], esi
shl eax, 8
add eax, edx
mov dword [0x574b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x432efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432efd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x432f15
cmp eax, 0x20b
je 0x432f02
mov dword [ebp - 0x1c], esi
jmp 0x432f29
cmp dword [ecx + 0x84], 0xe
jbe 0x432efd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x432f23
cmp dword [ecx + 0x74], 0xe
jbe 0x432efd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00436412
pop ecx
test eax, eax
jne 0x432f3d
push 0x1c
call fcn.00432e3e
pop ecx
call fcn.00435289
test eax, eax
jne 0x432f4e
push 0x10
call fcn.00432e3e
pop ecx
call fcn.00436307
mov dword [ebp - 4], esi
call fcn.00438fb0
test eax, eax
jge 0x432f67
push 0x1b
call fcn.00432e19
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x576420], eax
call fcn.00438e8e
mov dword [0x574b48], eax
call fcn.00438dec
test eax, eax
jge 0x432f8d
push 8
call fcn.00432e19
pop ecx
call fcn.00438bb9
test eax, eax
jge 0x432f9e
push 9
call fcn.00432e19
pop ecx
push 1
call fcn.0043207d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x432fb4
push eax
call fcn.00432e19
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00438b5c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x432fd5
movzx eax, word [ebp - 0x40]
jmp 0x432fd8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043e894
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x432ff6
push edi
call fcn.004321aa
call fcn.004321cc
jmp 0x433028
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004340f7
ret