joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a0ba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100f0c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.100a0fa0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x104d816c
call fcn.100c1418
mov ecx, dword [0x1049194c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.1009b700
mov esi, 0x104919ac
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x100a0c47
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100a0c3e
cmp al, 0xff
je 0x100a0c3e
dec al
mov byte [ecx], al
jmp 0x100a0c47
push ecx
call fcn.100e240f
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.100deb30
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x100a0c8d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100a0c84
cmp al, 0xff
je 0x100a0c84
dec al
mov byte [ecx], al
jmp 0x100a0c8d
push ecx
call fcn.100e240f
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.100c149f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x100a4be0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x100a4c46
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x100a4c46
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x100a4c27
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x100a4fd0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100a5008
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x100a5c80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x100a5cc9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x100a6140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f0fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.100a5cf0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100a5d70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100a5d70
lea ecx, [esi + 0xc]
call fcn.100e2630
lea ecx, [esi + 0x10]
call fcn.100e2630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100a7300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100a7300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100a7300
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100e26a5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100e26a5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100aa680
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x104f0898]
xor edx, edx
cmp eax, edx
jne 0x100aa6a6
xor eax, eax
mov byte [eax + 0x104f0798], al
inc eax
cmp eax, 0x100
jl 0x100aa68e
mov dword [0x104f0898], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x104f0798
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100aa737
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 0x100aa70a
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 0x100aa6d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100aa7b0
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 0x100aa803
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 0x100aa7ea
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 0x100b11c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f13ae
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.100b1ae0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x10491c24
call fcn.100e23e6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100b1253
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100e23e6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100b124c
push 0
mov ecx, eax
call fcn.100a82c0
mov dword [esi + 0xc], eax
jmp 0x100b1255
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100b1255
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 0x100d91c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100f2350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.100ce091
mov eax, dword [0x10495288]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.100cdfc3
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.100d9c70
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x100d9267
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100d925e
cmp al, 0xff
je 0x100d925e
dec al
mov byte [ecx], al
jmp 0x100d9267
push ecx
call fcn.100e240f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x100d9298
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100d928f
cmp al, 0xff
je 0x100d928f
dec al
mov byte [ecx], al
jmp 0x100d9298
push ecx
call fcn.100e240f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x100e4a5c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100e4a94
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100e2b00
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100e2ad8
jmp 0x100e4aa0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100e614e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100e6190
call fcn.100ebda7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100e6190
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100e6187
xor eax, eax
jmp 0x100e6198
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100e619e
pop edi
pop esi
pop ebx
ret 4
Function at 0x10036b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x10056ac]
mov ecx, dword [0x10056a8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, dword [0x1005334]
mov dword [0x1005164], edi
jne 0x10036a4
cmp ecx, dword [0x1005338]
jne 0x10036a4
push 4
jmp 0x10036a6
push 6
pop ebx
mov dword [0x1005334], eax
mov dword [0x1005338], ecx
call fcn.01002ed5
mov eax, dword [0x10056a4]
mov dword [0x1005160], edi
mov dword [0x1005330], eax
push dword [0x1005334]
call fcn.01003940
push dword [0x1005338]
mov esi, eax
inc esi
call fcn.01003940
inc eax
mov ecx, eax
shl ecx, 5
test byte [ecx + esi + 0x1005340], 0x80
jne 0x10036c7
shl eax, 5
lea eax, [eax + esi + 0x1005340]
or byte [eax], 0x80
dec dword [0x1005330]
jne 0x10036c7
mov ecx, dword [0x1005338]
imul ecx, dword [0x1005334]
mov eax, dword [0x10056a4]
sub ecx, eax
push edi
mov dword [0x100579c], edi
mov dword [0x1005330], eax
mov dword [0x1005194], eax
mov dword [0x10057a4], edi
mov dword [0x10057a0], ecx
mov dword [0x1005000], 1
call fcn.0100346a
push ebx
call fcn.01001950
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401270
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 0x401289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40129d
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 0x4012be
cmp esi, eax
jae 0x401297
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012b0
cmp esi, eax
jae 0x401297
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4013b0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x1034
call fcn.0040c420
mov eax, dword [0x4334d0]
push esi
mov dword [esp + 0x1034], eax
push edi
lea eax, [esp + 0x838]
push eax
push 0x800
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x838]
push ecx
lea edx, [esp + 0xc]
push str.netsh_firewall_add_allowedprogram_program__sSetup.exe__name_ATI_Lab__modeENABLE_scopeALL
push edx
call fcn.0040c3bd
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
call edi
mov ecx, esi
call fcn.00401350
push 0x4278a4
push str.C:_CCC.exe
call fcn.0040c3aa
add esp, 8
test eax, eax
je 0x40142c
push eax
call fcn.0040c2fd
add esp, 4
lea ecx, [esp + 8]
push str.netsh_firewall_add_allowedprogram_program_C:_CCC.exe__name_ATI_Lab__modeENABLE_scopeALL
push ecx
call fcn.0040c3bd
add esp, 8
push 0
lea edx, [esp + 0xc]
push edx
call edi
mov ecx, esi
call fcn.00401350
lea eax, [esp + 8]
push str.netsh_firewall_add_portopening_TCP_220__ATI_Lab_A_
push eax
call fcn.0040c3bd
add esp, 8
push 0
lea ecx, [esp + 0xc]
push ecx
call edi
mov ecx, esi
call fcn.00401350
lea edx, [esp + 8]
push str.netsh_firewall_add_portopening_TCP_156__ATI_Lab_B_
push edx
call fcn.0040c3bd
add esp, 8
push 0
lea eax, [esp + 0xc]
push eax
call edi
mov ecx, esi
call fcn.00401350
mov ecx, dword [esp + 0x1038]
pop edi
pop esi
call fcn.0040c0b0
add esp, 0x1034
ret

Function at 0x4014b0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x404
mov eax, dword [0x4334d0]
mov dword [esp + 0x400], eax
push esi
lea eax, [esp + 4]
push eax
push 0x400
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
call fcn.004013b0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x404]
pop esi
call fcn.0040c0b0
add esp, 0x404
ret
Function at 0x401550
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x4334d0]
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x1bc], eax
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4016c5
mov eax, dword [esp + 0x1bc]
push eax
lea ecx, [esp + 0x50]
push 0x4278a8
push ecx
mov dword [esp + 0x98], 0x128
call fcn.0040c3bd
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00401510
lea eax, [esp + 0x8c]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4016be
push ebx
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x14]
push 0x4278a8
push edx
call fcn.0040c3bd
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015e5
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x40160d
mov al, byte [esp + ecx + 0x10]
cmp al, 0x41
jl 0x401608
cmp al, 0x5a
jg 0x401608
add al, 0x20
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, edx
jl 0x4015f6
lea esi, [esp + 0x50]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40163d
test cl, cl
je 0x401639
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40163d
add eax, 2
add esi, 2
test cl, cl
jne 0x401615
xor eax, eax
jmp 0x401642
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40167e
lea eax, [esp + 0x90]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4015c4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1a8]
call fcn.0040c0b0
add esp, 0x1ac
ret 8
mov edi, dword [esp + 0x1c4]
test edi, edi
je 0x401697
mov ecx, 0x4a
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
push ebp
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1a8]
call fcn.0040c0b0
add esp, 0x1ac
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
xor eax, eax
pop ebp
call fcn.0040c0b0
add esp, 0x1ac
ret 8
Function at 0x401b20
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x425e9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov eax, dword [0x4334d0]
push esi
mov dword [esp + 0x288], eax
mov eax, dword [esp + 0x29c]
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0xc], esi
call fcn.0041a24c
lea ecx, [esp + 0x188]
push 0x427ad0
push ecx
mov dword [esp + 0x29c], 0
mov dword [esi], method.CDialog.virtual_0
call fcn.0040c3bd
add esp, 8
call fcn.00422b61
call fcn.00422b61
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0xd4], eax
call fcn.00422b61
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push 0x100
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x88]
push 0x427970
push ecx
call fcn.0040c3aa
lea edx, [esp + 0x10]
push str.fdsa
push edx
mov dword [esi + 0x70], eax
call fcn.0040c3bd
mov eax, dword [esi + 0x70]
add esp, 0x10
test eax, eax
je 0x401bff
push 0
push 0x41eb0
push eax
call fcn.0040c774
add esp, 0xc
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x288]
mov eax, esi
pop esi
call fcn.0040c0b0
add esp, 0x294
ret 4
Function at 0x402a42
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 0x402a95
call fcn.00422b61
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402a95
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402a8b
xor eax, eax
jmp 0x402bae
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 0x402ac5
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 0x402ac5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402bab
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x402af2
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040403a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402bab
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402b3b
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402b3b
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402b35
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040403a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402b9b
and dword [ebp + 0xc], 0
jmp 0x402b9b
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402b9b
push 0xc
call fcn.0041ab3f
mov esi, eax
test esi, esi
pop ecx
je 0x402b7d
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 0x402b7f
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402b96
push dword [ebp - 8]
call fcn.00418fab
jmp 0x402b9b
call fcn.00418f82
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x402b00
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c8e7
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.0040c420
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c982
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 [0x436410]
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 0x40c982
cmp eax, 1
je 0x40c9a3
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 0x40c982
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c94f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c97e
xor eax, eax
inc eax
jmp 0x40c9c2
cmp edi, eax
jae 0x40c986
xor eax, eax
jmp 0x40c9c2
cmp eax, esi
jae 0x40c98d
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 [0x436410]
jmp 0x40c9a6
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 0x40cb3a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a480
call fcn.0040e258
mov edi, 0x94
mov eax, edi
call fcn.0040c420
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 [0x436410], ecx
mov eax, dword [esi + 4]
mov dword [0x43641c], eax
mov edx, dword [esi + 8]
mov dword [0x436420], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x436414], esi
cmp ecx, 2
je 0x40cb9a
or esi, 0x8000
mov dword [0x436414], esi
shl eax, 8
add eax, edx
mov dword [0x436418], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40cbd5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cbd5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40cbed
cmp eax, 0x20b
je 0x40cbda
mov dword [ebp - 0x1c], esi
jmp 0x40cc01
cmp dword [ecx + 0x84], 0xe
jbe 0x40cbd5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40cbfb
cmp dword [ecx + 0x74], 0xe
jbe 0x40cbd5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004115d7
pop ecx
test eax, eax
jne 0x40cc15
push 0x1c
call fcn.0040cb16
pop ecx
call fcn.0040f84d
test eax, eax
jne 0x40cc26
push 0x10
call fcn.0040cb16
pop ecx
call fcn.00412cf5
mov dword [ebp - 4], esi
call fcn.00412af7
test eax, eax
jge 0x40cc3f
push 0x1b
call fcn.0040caf1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437cf0], eax
call fcn.004129d5
mov dword [0x436400], eax
call fcn.00412933
test eax, eax
jge 0x40cc65
push 8
call fcn.0040caf1
pop ecx
call fcn.00412700
test eax, eax
jge 0x40cc76
push 9
call fcn.0040caf1
pop ecx
push 1
call fcn.0040ce15
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40cc8c
push eax
call fcn.0040caf1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004126a3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40ccad
movzx eax, word [ebp - 0x40]
jmp 0x40ccb0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00418b38
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ccce
push edi
call fcn.0040cf42
call fcn.0040cf64
jmp 0x40cd00
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040e293
ret