joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40472c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4048e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40478d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404900
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047fa
xor eax, eax
push ebp
push 0x4047f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4047dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404920
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047fa
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4048db
cmp byte [ebp - 0xd], 0
jne 0x40483c
cmp byte [ebp - 0x12], 0
je 0x4048db
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404855
dec ebx
cmp byte [ebx], 0x2e
je 0x404864
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404854
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048db
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404891
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048db
cmp byte [ebp - 0xd], 0
je 0x4048db
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048db
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4073cc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4074d6
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40741f
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403424
jmp 0x4074bd
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00407380
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004073a0
mov ebx, eax
test esi, esi
je 0x407447
dec esi
test esi, esi
jl 0x407447
cmp edi, ebx
jne 0x407426
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004034f4
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403788
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
cmp eax, 2
jl 0x4074bd
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x4074bd
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x4074bd
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074dd
lea eax, [ebp - 0x110]
call fcn.00403340
ret

Function at 0x407518
Capabilities:
Get file attributes

Disassembly:
call fcn.00405c80
push eax
call sub.kernel32.dll_GetFileAttributesA
and al, 0x10
sete al
ret

Function at 0x407570
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40757f
dec eax
and al, 0x10
setne al
ret

Function at 0x40781c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407886
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40788d
lea eax, [ebp - 0x10c]
call fcn.00403340
ret

Function at 0x407894
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4078fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407905
lea eax, [ebp - 0x10c]
call fcn.00403340
ret
Function at 0x40790c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407976
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40797d
lea eax, [ebp - 0x10c]
call fcn.00403340
ret

Function at 0x407984
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0
mov eax, esi
call fcn.00403748
push eax
mov eax, ebx
call fcn.00403748
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
mov edx, esp
mov ecx, 0x105
call fcn.0040356c
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4079c4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
mov eax, dword [ebp - 8]
call fcn.00403738
xor eax, eax
push ebp
push 0x407b14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403340
cmp dword [ebp - 4], 0
je 0x407a2c
mov eax, dword [ebp - 4]
call fcn.00403584
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x407a2c
lea eax, [ebp - 4]
mov edx, 0x407b2c
call fcn.0040358c
cmp dword [ebp - 8], 0
je 0x407a5b
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407a5b
lea ecx, [ebp - 0x150]
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00407128
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.004033d8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004035d0
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403748
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
test esi, esi
setne al
jmp 0x407ae4
test dword [ebp - 0x14c], 0x10
ja 0x407ad1
cmp dword [ebx], 0
je 0x407aa4
mov eax, ebx
mov edx, 0x407b38
call fcn.0040358c
push dword [ebx]
push dword [ebp - 4]
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040356c
push dword [ebp - 0x150]
mov eax, ebx
mov edx, 3
call fcn.00403644
lea eax, [ebp - 0x14c]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x407a87
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b1b
lea eax, [ebp - 0x150]
call fcn.00403340
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403364
ret
Function at 0x407f4c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, eax
pushal
call fcn.00407c48
call fcn.00405ee8
mov dword [ebx + 0x18], eax
popal
pushal
lea eax, [ebx + 0x1c]
call fcn.00403394
popal
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40804b
pushal
lea edx, [ebx + 0x1c]
mov eax, dword [edx]
call fcn.00407630
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x407fc1
call fcn.0040c660
mov dword [ebx + 0x20], eax
popal
pushal
push ecx
xchg ecx, eax
mov edx, 0x407fb3
call fcn.00407318
test al, al
pop edx
jne 0x407fa9
mov edx, 0x407fbf
mov eax, dword [ebx + 0x20]
call fcn.0040c68c
jmp 0x407fc1
popal
add esp, 0xfffffec0
xor edx, edx
push edx
push edx
xchg ecx, eax
mov edx, esp
call fcn.00407c70
lea eax, [esp + 4]
mov edx, dword [ebx + 0x1c]
pop ecx
push ecx
call fcn.004035d0
call fcn.00405ca4
pop eax
mov edx, esp
push eax
push edx
push eax
call sub.kernel32.dll_FindFirstFileA
mov edi, eax
inc eax
mov eax, esp
pushfd
call fcn.00403340
popfd
pop ecx
je 0x408045
mov ecx, dword [esp]
push dword [ebp + 8]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00407ca8
test al, al
je 0x408034
mov eax, 0x140
push eax
call fcn.00402600
push eax
xchg edx, eax
mov eax, dword [ebx + 0x18]
call fcn.00405f64
pop edx
pop ecx
mov eax, esp
call fcn.004026d4
push esp
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x408001
push edi
call sub.kernel32.dll_FindClose
add esp, 0x140
xor eax, eax
xchg dword [ebx + 0x20], eax
call fcn.00405e6c
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40808c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403748
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4082b8
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x4689ac]
mov byte [eax], 1
mov edx, dword [0x405ae4]
xor eax, eax
call fcn.00405e24
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4082a8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x408348
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x408363
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x408372
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x408374
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x408714
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4087ac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x408761
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
push esi
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x408796
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00406fb8
mov eax, dword [ebp - 8]
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087b3
lea eax, [ebp - 8]
call fcn.00403340
ret

Function at 0x4087c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4087c9
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [ebx + 0x18], 0
jne 0x408837
mov byte [ebp - 0x8000], 0
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
push 0x8000
lea eax, [ebp - 0x8000]
push eax
mov eax, esi
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x8000]
mov ecx, 0x8000
call fcn.0040356c
jmp 0x408868
mov eax, dword [ebp + 8]
mov edx, esi
call fcn.004033d8
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
mov eax, esi
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b100
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40b10f
mov edx, dword [edx + 0x36]
jmp fcn.004034f4
mov ecx, dword [edx + 0x18]
jecxz 0x40b107
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004038b4
pop edx
mov ecx, dword [ebx]
jecxz 0x40b137
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40b1a8
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b1b4
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x40b1d0
push eax
je 0x40b1d1
call dword [0x466164]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x466164]
ret

Function at 0x40dc3c
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040d5bc
je 0x40dc81
mov eax, ebx
push edx
call fcn.0040e014
pop edx
cmp eax, edx
je 0x40dc81
test edx, edx
mov eax, ebx
jne 0x40dc60
pop ebx
inc edx
jmp fcn.0040e004
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x40dc69
dec edx
push edx
xor edx, edx
call fcn.0040e004
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.0040d04c
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040dd1c
ret
Function at 0x40e9d8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x4664e0], 0xff
je 0x40e9ee
mov al, byte [0x4664e0]
jmp 0x40ea4e
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40ea27
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40ea13
mov al, 6
jmp 0x40ea49
cmp edx, 5
jb 0x40ea49
cmp dword [esp + 8], 1
jb 0x40ea23
mov al, 5
jmp 0x40ea49
mov al, 4
jmp 0x40ea49
cmp eax, 1
jne 0x40ea47
mov al, 1
cmp dword [esp + 4], 4
ja 0x40ea43
cmp dword [esp + 4], 4
jne 0x40ea49
cmp dword [esp + 8], 0xa
jb 0x40ea49
mov al, 2
jmp 0x40ea49
xor eax, eax
mov byte [0x4664e0], al
add esp, 0x94
ret
Function at 0x418f00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [0x4689b8]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_OpenClipboard
xor eax, eax
push ebp
push 0x418f99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x418f41
call fcn.00402ef8
jmp 0x418fa0
mov dword [ebx + 0x1c8], esi
mov ax, word [0x469620]
mov word [ebp - 0x18], ax
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00418d18
test eax, eax
jne 0x418f82
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x469620]
push eax
call sub.user32.dll_SetClipboardData
jmp 0x418f86
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418fa0
call sub.user32.dll_CloseClipboard
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a64c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a71a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor eax, eax
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402808
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
push edi
push 0x41a734
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00403644
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.004070f0
mov eax, dword [ebp - 0x5c]
call fcn.00403748
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41a6ff
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x2c], eax
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a721
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403364
ret
Function at 0x41a918
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, eax
cmp dword [esi + 8], 0
je 0x41a92d
mov bl, 1
jmp 0x41a9d7
mov dword [esp], 0xc
mov dword [esp + 8], 0xffffffff
xor eax, eax
mov dword [esp + 4], eax
push 0
lea eax, [esp + 4]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x41a990
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x41a990
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x41a994
xor ebx, ebx
jmp 0x41a996
mov bl, 1
test bl, bl
je 0x41a9c3
push 0
push 1
mov eax, dword [esi + 0x10]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_SetHandleInformation
jmp 0x41a9d7
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov eax, esi
call fcn.0041a9e0
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x41ac94
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41ae0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x41adf1
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x28], eax
mov eax, ebx
call fcn.0041a918
test al, al
jne 0x41acef
call sub.kernel32.dll_GetLastError_1
mov edx, eax
lea eax, [ebx + 0xa0]
call fcn.0040fd48
jmp 0x41adf1
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00402808
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 0x101
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x14], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x10
push 0xffffffffffffffff
push 0
push 0
push esi
push 0x41ae24
push edi
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00403644
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.004070f0
mov eax, dword [ebp - 0x58]
call fcn.00403748
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41add4
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebx + 0x39], 1
jne 0x41adc0
cmp dword [ebx + 0x20], 0
jne 0x41ada1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x94]
call fcn.0040ff50
mov eax, ebx
call fcn.0041aa3c
push 0xffffffffffffffff
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x41adf1
lea eax, [ebx + 0x94]
call fcn.0040ff50
mov eax, ebx
call fcn.0041aa3c
jmp 0x41adf1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
mov eax, ebx
call fcn.0041a9e0
lea eax, [ebx + 0xa0]
mov edx, dword [ebp - 0x44]
call fcn.0040fd48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ae13
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403364
ret
Function at 0x41c27c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
mov eax, dword [ebx + 0x6c]
sub edi, eax
mov edx, dword [ebx + 0x64]
sub edi, edx
test edi, edi
jne 0x41c2ac
mov ecx, dword [ebx + 0x64]
test ecx, ecx
jne 0x41c2ac
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x41c2ac
mov edi, esi
jmp 0x41c340
cmp edi, 0xffffffff
jne 0x41c2b7
dec edi
jmp 0x41c340
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
mov edx, dword [ebx + 0x64]
cmp eax, edx
ja 0x41c340
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0041b38c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x3c]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x41c30a
mov cx, word [esp]
sub cx, si
jmp 0x41c30c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x41c2f1
mov eax, esi
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x38]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x41c336
mov cx, word [esp]
sub cx, si
jmp 0x41c338
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x41c31d
add edi, esi
mov ebp, dword [ebx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x41c3a8
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
add edx, ecx
mov eax, dword [ebx + 0x6c]
add edx, eax
mov ecx, edi
mov eax, ebp
call fcn.0041c00c
add dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x6c]
cmp edx, 3
jb 0x41c391
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
mov edx, dword [ebx + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
cmp eax, 0x106
jae 0x41c3a8
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x41c286
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret