joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40735a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407350
mov eax, 1
add ebx, ebx
jne 0x407373
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407384
jne 0x407394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407394
dec eax
add ebx, ebx
jne 0x407390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x407368
xor ecx, ecx
sub eax, 3
jb 0x4073ac
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40741e
sar eax, 1
mov ebp, eax
jmp 0x4073b7
add ebx, ebx
jne 0x4073b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4073c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4073e8
inc ecx
add ebx, ebx
jne 0x4073d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4073c9
jne 0x4073e5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4073c9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407408
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4073f9
jmp 0x407356
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407408
add edi, ecx
jmp 0x407356
pop esi
mov edi, esi
mov ecx, 0x10f9
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x40743c
mov eax, dword [edi]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x407426
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407484
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x710c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407442
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7114]
or eax, eax
je 0x40747e
mov dword [ebx], eax
add ebx, 4
jmp 0x40745f
call dword [esi + 0x7110]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4074b5
cmp al, 0xef
ja 0x4074a8
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40748a
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x407497
mov ebp, dword [esi + 0x7118]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x15f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4074e9
sub esp, 0xffffff80
jmp 0x401655
Function at 0x4014d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x451944]
mov ecx, dword [0x44d0f0]
mov dword [esp + 0x14], eax
mov eax, dword [0x44d0f4]
sub eax, ecx
mov ecx, dword [0x44d10c]
push ebx
push ebp
lea edx, [eax + ecx + 0xa1]
mov eax, dword [esp + 0x2c]
test eax, eax
push esi
push edi
mov dword [0x44d0f8], edx
mov dword [esp + 0x10], 0
jle 0x401628
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401537
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x44d0f0]
mov eax, dword [str._r_____r____]
mov edx, dword [0x44d0fc]
add eax, ecx
mov ecx, dword [0x44d0ec]
lea eax, [edx + eax + 0xca]
sub ecx, dword [0x44d0f4]
mov edx, dword [0x44d100]
mov dword [0x44d0fc], eax
lea eax, [edx + ecx + 0xa7]
push edi
mov word [esp + 0x18], 2
mov dword [0x44d100], eax
call ebx
push 0
mov word [esp + 0x1a], ax
call ebp
mov ecx, dword [0x44d0f0]
mov edx, dword [0x44d100]
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [0x44d10c]
add edx, ecx
push 1
lea ecx, [edx + eax + 0x1d]
push 2
mov dword [0x44d104], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x401644
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40163e
mov eax, dword [0x44d0f0]
mov ecx, dword [0x44d104]
mov edx, dword [0x44d0ec]
sub eax, ecx
sub eax, edx
add eax, 0x78
push esi
mov dword [0x44d108], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x44d100]
mov esi, dword [0x44d0fc]
mov edx, dword [0x44d0f4]
sub ecx, esi
lea eax, [ecx + edx - 0x18]
mov ecx, dword [esp + 0x34]
mov dword [0x44d10c], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401524
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.00424061
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov dword [ecx], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00424061
add esp, 0x18
ret

Function at 0x401680
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 0x401699
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4016ad
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 0x4016ce
cmp esi, eax
jae 0x4016a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016c0
cmp esi, eax
jae 0x4016a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403a70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x451944]
push ebx
push 0
push 2
mov dword [esp + 0x9b8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x88]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x90], 0x128
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x403ac6
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x9ac]
call fcn.00424061
add esp, 0x9b0
ret
xor eax, eax
jmp 0x403ad0
mov cl, byte [esp + eax + 0xac]
mov byte [esp + eax + 0x1b0], cl
inc eax
test cl, cl
jne 0x403ad0
push esi
mov esi, dword [esp + 0x9bc]
lea eax, [esp + 0x1b4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403b16
test cl, cl
je 0x403b12
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403b16
add eax, 2
add esi, 2
test cl, cl
jne 0x403af2
xor eax, eax
jmp 0x403b1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403b24
mov ebx, 1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x8c]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403bd7
mov eax, ebx
shl eax, 6
push ebp
lea edx, [esp + 0xb4]
lea ebp, [esp + eax + 0x1b8]
sub eax, edx
push edi
lea edi, [esp + eax + 0x1bc]
lea esp, [esp]
lea eax, [esp + 0xb8]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x403b67
mov esi, dword [esp + 0x9c4]
mov eax, ebp
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403ba4
test cl, cl
je 0x403ba0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403ba4
add eax, 2
add esi, 2
test cl, cl
jne 0x403b80
xor eax, eax
jmp 0x403ba9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403bbf
mov eax, dword [esp + 0x9c]
mov dword [esp + ebx*4 + 0x14], eax
inc ebx
add ebp, 0x40
add edi, 0x40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x94]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403b60
pop edi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9b4]
pop esi
mov eax, ebx
pop ebx
call fcn.00424061
add esp, 0x9b0
ret
Function at 0x40db00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x451944]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40dc22
lea ecx, [esp + 8]
call fcn.0040d9e0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40dc26
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40dbd0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040db00
mov edi, eax
test edi, edi
jne 0x40dc4a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40db92
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40dbe9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40dc08
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424061
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40dc31
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424061
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40dc59
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.00424061
add esp, 0x118
ret 4
Function at 0x40e130
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 0x40e142
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 0x411590
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4508e8]
mov eax, 0xa61fcc17
imul ecx
push ebx
mov ebx, dword [0x4508f4]
add edx, ecx
imul ebx, ebx, 0x185
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push esi
mov esi, dword [0x4508d8]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [0x4508dc]
sub edx, esi
cmp eax, 0x132b600
lea ebp, [edx + edi + 0xd7]
mov dword [str._r_____r_____n], ebp
je 0x411601
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
mov edi, edi
push 0x3e8
call edi
dec esi
jne 0x4115f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x4508f0]
mov eax, 0x49e28fbb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x73d0e82d
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
mov esi, dword [0x4508ec]
mov edx, esi
imul edx, edx, 0x315
sub eax, edx
mov edx, dword [0x4508d4]
add eax, ebp
lea eax, [edx + eax - 0x30e]
mov dword [0x4508d4], eax
mov eax, dword [0x562c5c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x562c5c], eax
jle 0x41169d
mov eax, 0x97012e03
imul esi, esi, 0x1a8
imul edi
add edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add esi, edx
mov edx, dword [0x4508e0]
add eax, esi
sub eax, ebx
pop edi
sub eax, edx
pop esi
add eax, 0x4f2
pop ebp
mov dword [0x4508d8], eax
mov eax, 1
pop ebx
ret
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x21d814d3
imul edi
sub edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x4508f4]
sub eax, esi
lea edx, [eax + ecx - 0x30e]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x411160
push 0
push 0
mov dword [0x562970], 0
mov dword [0x4508dc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4508e8]
mov esi, dword [0x4508e4]
mov eax, 0x60f25deb
imul esi, esi, 0x377
imul ecx
mov eax, dword [0x4508f0]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508d8]
imul edx, edx, 0x1a8
sub esi, ecx
add esi, eax
pop edi
lea eax, [edx + esi - 0x15c]
pop esi
pop ebp
mov dword [0x4508e0], eax
mov eax, 1
pop ebx
ret
Function at 0x4147f0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4508e0]
mov eax, 0x68fed1fd
imul ecx
push esi
mov esi, dword [0x4508f4]
sub edx, ecx
imul esi, esi, 0x30f
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
sub edi, esi
mov esi, dword [0x4508e4]
mov eax, 0xa8791709
imul esi
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edi, edx
lea edx, [eax + edi + 0x456]
cmp dword [esp + 0xc], 0x132b600
mov dword [0x4508e4], edx
je 0x414865
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x414856
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [0x4508d8]
imul ecx, ecx, 0x30f
mov esi, edx
mov eax, 0xb61d7045
imul esi, esi, 0x3a7
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508dc]
imul edx, edx, 0x315
sub eax, esi
add eax, edx
add eax, ecx
mov dword [0x4508e8], eax
mov eax, dword [0x562964]
test eax, eax
jne 0x414915
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4136b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4508e8]
mov esi, dword [0x4508e4]
mov dword [0x562958], eax
imul esi, esi, 0x377
mov eax, 0x60f25deb
imul ecx
mov eax, dword [0x4508f0]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508d8]
imul edx, edx, 0x1a8
sub esi, ecx
add esi, eax
lea eax, [edx + esi - 0x15c]
mov dword [0x562964], 1
mov dword [0x4508e0], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x416d70
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43eee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x4508e8]
mov eax, 0xa61fcc17
imul ecx
add edx, ecx
mov ecx, dword [0x4508f4]
imul ecx, ecx, 0x185
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d8]
sub ecx, eax
sub ecx, edx
mov edx, dword [0x4508dc]
lea eax, [ecx + edx + 0xd7]
mov edx, dword [0x56634c]
push esi
mov ecx, 0x56634c
mov dword [str._r_____r_____n], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [0x4508e8]
mov eax, 0x197b05f9
imul ecx
mov ecx, dword [0x4508dc]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508f4]
sub ecx, esi
sub ecx, dword [0x4508ec]
lea eax, [ecx + edx - 0x30e]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov dword [0x4508dc], eax
call fcn.00416ae0
mov ecx, dword [0x4508d8]
mov eax, 0xb61d7045
imul ecx
sar edx, 8
mov eax, edx
mov esi, ecx
mov ecx, dword [0x4508e0]
imul esi, esi, 0x3a7
shr eax, 0x1f
imul ecx, ecx, 0x30f
add eax, edx
mov edx, dword [0x4508dc]
imul edx, edx, 0x315
sub eax, esi
mov esi, dword [esp + 4]
add eax, ecx
add eax, edx
push esi
mov dword [0x4508e8], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x416eb4
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 0x41b22c
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 0x41b27f
call fcn.0043bdd2
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41b27f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41b275
xor eax, eax
jmp 0x41b398
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 0x41b2af
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 0x41b2af
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41b395
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41b2dc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041a4a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41b395
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41b325
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41b325
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41b31f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041a4a1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41b385
and dword [ebp + 0xc], 0
jmp 0x41b385
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41b385
push 0xc
call fcn.00435cd4
mov esi, eax
test esi, esi
pop ecx
je 0x41b367
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 0x41b369
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41b380
push dword [ebp - 8]
call fcn.00431727
jmp 0x41b385
call fcn.004316fe
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41b2ea
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42459d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042680c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4245c0
test byte [esp + 8], 2
je 0x4245c0
call fcn.004267fa
mov dword [eax], 0xd
call fcn.00426803
mov dword [eax], 5
jmp 0x424599
xor eax, eax
ret
Function at 0x424687
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444500
call fcn.00426678
push 8
call fcn.00427f10
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x565e3c], esi
jne 0x4246bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x565e38], esi
mov al, byte [ebp + 0x10]
mov byte [0x565e34], al
cmp dword [ebp + 0xc], edi
jne 0x424705
cmp dword [0x56772c], edi
je 0x4246f5
mov eax, dword [0x567728]
sub eax, 4
mov dword [0x567728], eax
cmp eax, dword [0x56772c]
jb 0x4246f5
mov eax, dword [eax]
cmp eax, edi
je 0x4246d6
call eax
jmp 0x4246d6
push 0x44d0cc
mov eax, 0x44d0c4
call fcn.00424605
pop ecx
push 0x44d0d8
mov eax, 0x44d0d0
call fcn.00424605
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x424736
cmp dword [ebp + 0x10], edi
jne 0x424744
mov dword [0x565e3c], esi
push dword [ebp + 8]
call fcn.004245c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x424743
push 8
call fcn.00427e5b
pop ecx
ret
call fcn.004266b3
ret

Function at 0x424a17
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.004248b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424ab2
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 [0x565dfc]
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 0x424ab2
cmp eax, 1
je 0x424ad3
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 0x424ab2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x424a7f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x424aae
xor eax, eax
inc eax
jmp 0x424af2
cmp edi, eax
jae 0x424ab6
xor eax, eax
jmp 0x424af2
cmp eax, esi
jae 0x424abd
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 [0x565dfc]
jmp 0x424ad6
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 0x424c6a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444530
call fcn.00426678
mov edi, 0x94
mov eax, edi
call fcn.004248b0
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 [0x565dfc], ecx
mov eax, dword [esi + 4]
mov dword [0x565e08], eax
mov edx, dword [esi + 8]
mov dword [0x565e0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x565e00], esi
cmp ecx, 2
je 0x424cca
or esi, 0x8000
mov dword [0x565e00], esi
shl eax, 8
add eax, edx
mov dword [0x565e04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x424d05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424d05
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x424d1d
cmp eax, 0x20b
je 0x424d0a
mov dword [ebp - 0x1c], esi
jmp 0x424d31
cmp dword [ecx + 0x84], 0xe
jbe 0x424d05
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x424d2b
cmp dword [ecx + 0x74], 0xe
jbe 0x424d05
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004289f2
pop ecx
test eax, eax
jne 0x424d45
push 0x1c
call fcn.00424c46
pop ecx
call fcn.0042782d
test eax, eax
jne 0x424d56
push 0x10
call fcn.00424c46
pop ecx
call fcn.00427f41
mov dword [ebp - 4], esi
call fcn.00429f12
test eax, eax
jge 0x424d6f
push 0x1b
call fcn.00424c21
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x567720], eax
call fcn.00429df0
mov dword [0x565e40], eax
call fcn.00429d4e
test eax, eax
jge 0x424d95
push 8
call fcn.00424c21
pop ecx
call fcn.00429b1b
test eax, eax
jge 0x424da6
push 9
call fcn.00424c21
pop ecx
push 1
call fcn.0042461d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x424dbc
push eax
call fcn.00424c21
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00429abe
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x424ddd
movzx eax, word [ebp - 0x40]
jmp 0x424de0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00430dde
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x424dfe
push edi
call fcn.0042474a
call fcn.0042476c
jmp 0x424e30
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004266b3
ret