joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58f730
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa27ab0]
xor edx, edx
cmp eax, edx
jne 0x58f756
xor eax, eax
mov byte [eax + 0xa279b0], al
inc eax
cmp eax, 0x100
jl 0x58f73e
mov dword [0xa27ab0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa279b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x58f7e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x58f7ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x58f788
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x58f860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x58f8b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x58f89a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x596230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c7f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00596b50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x9c1a5c
call fcn.005b68fe
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5962c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005b68fe
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5962bc
push 0
mov ecx, eax
call fcn.0058d360
mov dword [esi + 0xc], eax
jmp 0x5962c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5962c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x100052db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000531a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000531a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000531a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000531a
cmp dword [ecx + 0x74], 0xe
jbe 0x1000531a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000765e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010f10
push 0x10010f08
push str.FlsAlloc
push 0x1f
call fcn.1000757a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007692
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e10c]
call esi
jmp 0x10007698
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100076dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010f20
push 0x10010f18
push str.FlsGetValue
push 0x21
call fcn.1000757a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007713
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000771b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010f28
push 0x10010f20
push str.FlsSetValue
push 0x22
call fcn.1000757a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007755
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000958b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10009628
push ebx
push esi
call fcn.10009554
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10008425
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100095d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009627
push edi
push eax
call fcn.10006641
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100095f5
call fcn.10006607
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009626
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008425
add esp, 0x20
test eax, eax
jne 0x10009614
push edi
call fcn.10006607
jmp 0x1000961c
push ebx
call fcn.10006607
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1000d140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d16d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d16d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406c80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4126a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x406ceb
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x406d3f
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406d30
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x406d2e
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x406d3f
jmp 0x406ceb
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e17
mov esp, ebp
pop ebp
ret

Function at 0x409cc4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409d03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409d03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409d03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409d03
cmp dword [ecx + 0x74], 0xe
jbe 0x409d03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x43b64a
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
inc esi
call fcn.0043b674
mov esi, edi
xor dword [edx], ebx
inc edi
inc edi
inc edx
add esi, esi
inc edi
cmp edx, ecx
jne fcn.0043b64a
and edi, edi
add edi, 0xc64905e0
add esi, 0x162dbfc7
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x343b2e0c
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x40cc39c7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x408750
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44a6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cbcc]
mov eax, 0x5fa6246b
imul ecx
sar edx, 0xf
push esi
push edi
mov edi, ecx
mov esi, dword [0x45cbd4]
imul edi, edi, 0xdc65
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbe8]
sub edi, eax
imul edx, edx, 0xd60e
mov eax, dword [0x45cbdc]
imul eax, eax, 0x100de
add edi, edx
add edi, eax
mov eax, 0x2aa871e5
imul esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x2aa871e5
imul ecx
sar edx, 0xe
mov ecx, edx
add edi, edx
mov eax, 0x1006124d
imul esi
shr ecx, 0x1f
sar edx, 0xc
add ecx, edi
mov eax, edx
add ecx, edx
mov edx, dword [0x572f4c]
shr eax, 0x1f
add eax, ecx
mov ecx, 0x572f4c
mov dword [str._r_____r____], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45cbd0]
mov esi, dword [0x45cbe8]
mov eax, 0x1840c0e3
imul esi, esi, 0xd60e
imul ecx
mov ecx, dword [0x45cbd8]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0xc26c7c39
imul ecx
add edx, ecx
imul ecx, ecx, 0x18014
sar edx, 0xf
add esi, edx
mov edi, edx
mov edx, dword [0x45cbc8]
imul edx, edx, 0x100de
shr edi, 0x1f
add edi, esi
add edi, edx
add edi, ecx
mov ecx, dword [0x45cbdc]
mov eax, 0x2aa871e5
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x45cbe4]
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
sub edi, eax
push ecx
sub edi, 0xa88a
push edx
lea ecx, [esp + 0x10]
mov dword [0x45cbd0], edi
call fcn.004084c0
mov ecx, dword [0x45cbcc]
mov eax, dword [0x45cbd0]
mov edx, dword [0x45cbe0]
lea esi, [eax + ecx]
imul edx, edx, 0x15433
mov eax, dword [0x45cbdc]
imul esi, esi, 0x15696
imul eax, eax, 0xa88a
add esi, edx
add esi, eax
mov eax, 0x7f915fef
imul ecx
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x45cbe4]
mov eax, 0x2aa871e5
imul ecx
sar edx, 0xe
add esi, edx
mov edi, edx
mov eax, 0x1006124d
imul ecx
sar edx, 0xc
shr edi, 0x1f
add edi, esi
mov esi, dword [esp + 8]
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
push esi
mov dword [0x45cbdc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40893c
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 0x41b2b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45e540]
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 0x41b3b2
lea ecx, [esp + 0xc]
call fcn.0041b190
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41b3b6
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 0x41b38e
jmp 0x41b350
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b2b0
mov edi, eax
test edi, edi
jne 0x41b3dd
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 0x41b350
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b3a5
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 0x41b3c1
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.0042fa4d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b3ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b3c3
Function at 0x41b8d0
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 0x41b8e2
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 0x426b3a
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 0x426b8d
call fcn.00447b83
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426b8d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426b83
xor eax, eax
jmp 0x426ca6
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 0x426bbd
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 0x426bbd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x426ca3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x426bea
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004272cd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x426ca3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x426c33
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x426c33
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x426c2d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004272cd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x426c93
and dword [ebp + 0xc], 0
jmp 0x426c93
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x426c93
push 0xc
call fcn.00441789
mov esi, eax
test esi, esi
pop ecx
je 0x426c75
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 0x426c77
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x426c8e
push dword [ebp - 8]
call fcn.0043d1d4
jmp 0x426c93
call fcn.0043d1ab
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x426bf8
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ffdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043222c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430000
test byte [esp + 8], 2
je 0x430000
call fcn.0043221a
mov dword [eax], 0xd
call fcn.00432223
mov dword [eax], 5
jmp 0x42ffd9
xor eax, eax
ret
Function at 0x4300c7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4506d8
call fcn.0043209c
push 8
call fcn.004342b6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x572a3c], esi
jne 0x4300fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x572a38], esi
mov al, byte [ebp + 0x10]
mov byte [0x572a34], al
cmp dword [ebp + 0xc], edi
jne 0x430145
cmp dword [0x57432c], edi
je 0x430135
mov eax, dword [0x574328]
sub eax, 4
mov dword [0x574328], eax
cmp eax, dword [0x57432c]
jb 0x430135
mov eax, dword [eax]
cmp eax, edi
je 0x430116
call eax
jmp 0x430116
push 0x4590cc
mov eax, 0x4590c4
call fcn.00430045
pop ecx
push 0x4590d8
mov eax, 0x4590d0
call fcn.00430045
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430176
cmp dword [ebp + 0x10], edi
jne 0x430184
mov dword [0x572a3c], esi
push dword [ebp + 8]
call fcn.00430003
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430183
push 8
call fcn.00434201
pop ecx
ret
call fcn.004320d7
ret

Function at 0x4303f7
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.00430290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430492
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 [0x5729fc]
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 0x430492
cmp eax, 1
je 0x4304b3
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 0x430492
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43045f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43048e
xor eax, eax
inc eax
jmp 0x4304d2
cmp edi, eax
jae 0x430496
xor eax, eax
jmp 0x4304d2
cmp eax, esi
jae 0x43049d
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 [0x5729fc]
jmp 0x4304b6
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 0x430e42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x450790
call fcn.0043209c
mov edi, 0x94
mov eax, edi
call fcn.00430290
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 [0x5729fc], ecx
mov eax, dword [esi + 4]
mov dword [0x572a08], eax
mov edx, dword [esi + 8]
mov dword [0x572a0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x572a00], esi
cmp ecx, 2
je 0x430ea2
or esi, 0x8000
mov dword [0x572a00], esi
shl eax, 8
add eax, edx
mov dword [0x572a04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x430edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430edd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x430ef5
cmp eax, 0x20b
je 0x430ee2
mov dword [ebp - 0x1c], esi
jmp 0x430f09
cmp dword [ecx + 0x84], 0xe
jbe 0x430edd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x430f03
cmp dword [ecx + 0x74], 0xe
jbe 0x430edd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004343f2
pop ecx
test eax, eax
jne 0x430f1d
push 0x1c
call fcn.00430e1e
pop ecx
call fcn.00433269
test eax, eax
jne 0x430f2e
push 0x10
call fcn.00430e1e
pop ecx
call fcn.004342e7
mov dword [ebp - 4], esi
call fcn.00436f90
test eax, eax
jge 0x430f47
push 0x1b
call fcn.00430df9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x574320], eax
call fcn.00436e6e
mov dword [0x572a48], eax
call fcn.00436dcc
test eax, eax
jge 0x430f6d
push 8
call fcn.00430df9
pop ecx
call fcn.00436b99
test eax, eax
jge 0x430f7e
push 9
call fcn.00430df9
pop ecx
push 1
call fcn.0043005d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x430f94
push eax
call fcn.00430df9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00436b3c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x430fb5
movzx eax, word [ebp - 0x40]
jmp 0x430fb8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043c874
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x430fd6
push edi
call fcn.0043018a
call fcn.004301ac
jmp 0x431008
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004320d7
ret