joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4163d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00413f90
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41640c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0041a5a0
jmp 0x416539
call fcn.0040d160
cmp eax, dword [ebp - 0x10]
je 0x41641e
mov ecx, dword [ebp - 0x10]
call fcn.0042ccb8
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x264]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x416513
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x188]
call edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0041a5a0
mov ecx, dword [ebp - 0x10]
call fcn.0040fe80
cmp eax, dword [ebp - 8]
je 0x4164a1
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x188]
call eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.0040e080
and eax, 0x20
jne 0x4164fd
mov ecx, dword [ebp - 0x10]
call fcn.00413cf0
cmp dword [ebp - 0xc], eax
je 0x4164fd
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413d10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x4164fd
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x4164fd
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00413d60
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413d60
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x188]
call eax
cmp dword [ebp - 4], 0
je 0x416539
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x18c]
call edx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417d90
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ebfd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x479d28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x1c]
call fcn.00408d60
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x214]
call eax
movzx ecx, al
test ecx, ecx
jne 0x417df8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
lea ecx, [ebp - 0x1c]
call fcn.00408ff0
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x417e2f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417e56
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00411200
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00445060
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x417e91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
mov ecx, dword [ebp - 0x20]
call fcn.0041a560
test eax, eax
jne 0x417eb8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x417ee3
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
mov eax, dword [ebp - 0x10]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x417f14
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
jmp 0x417f29
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004014d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x425749
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42576d
cmp dword [edi + 0x54], 0
jne 0x42576d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042f77d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042570a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42624d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x426295
call fcn.0042f77d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x426295
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4262d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4262c1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4262c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4262d5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42c9bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42ca02
call fcn.0042f77d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42ca02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42ca1e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042c535
mov esi, eax
test edi, edi
je 0x42ca1c
test ebx, ebx
je 0x42ca1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42d212
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x460aa1
call fcn.00445e6b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42d237
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42d27d
lea ecx, [ebp - 0x10]
call fcn.00408d60
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ca25
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401510
mov eax, esi
call fcn.00445f43
ret 8
Function at 0x442a34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479d28]
jne 0x442a3e
repz ret
jmp fcn.0044a4ac

Function at 0x4554e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449e96
and dword [ebp - 4], 0
cmp dword [0x47de18], 0
mov ebx, eax
jne 0x455599
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45564a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b03c
push edi
call esi
test eax, eax
je 0x45564a
push eax
call fcn.00449e24
mov dword [esp], 0x46b02c
push edi
mov dword [0x47de18], eax
call esi
push eax
call fcn.00449e24
mov dword [esp], 0x46b018
push edi
mov dword [0x47de1c], eax
call esi
push eax
call fcn.00449e24
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47de20], eax
call esi
push eax
call fcn.00449e24
pop ecx
mov dword [0x47de28], eax
test eax, eax
je 0x455599
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00449e24
pop ecx
mov dword [0x47de24], eax
mov eax, dword [0x47de24]
cmp eax, ebx
je 0x4555f1
cmp dword [0x47de28], ebx
je 0x4555f1
push eax
call fcn.00449e9f
push dword [0x47de28]
mov esi, eax
call fcn.00449e9f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4555f1
test edi, edi
je 0x4555f1
call esi
test eax, eax
je 0x4555e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4555e8
test byte [ebp - 0xc], 1
jne 0x4555f1
or dword [ebp + 0x10], 0x200000
jmp 0x45562a
mov eax, dword [0x47de1c]
cmp eax, ebx
je 0x45562a
push eax
call fcn.00449e9f
pop ecx
test eax, eax
je 0x45562a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45562a
mov eax, dword [0x47de20]
cmp eax, ebx
je 0x45562a
push eax
call fcn.00449e9f
pop ecx
test eax, eax
je 0x45562a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47de18]
call fcn.00449e9f
pop ecx
test eax, eax
je 0x45564a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45564c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb3e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b3e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb3e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3e06a
add dl, dl
jne 0xb3e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3e0dc
xor eax, eax
add dl, dl
jne 0xb3e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3e17d
add dl, dl
jne 0xb3e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb3e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb3e075
mov eax, 1
add dl, dl
jne 0xb3e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3e0e1
sub eax, ebx
mov ebx, 1
jne 0xb3e128
mov ecx, 1
add dl, dl
jne 0xb3e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb3e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3e136
cmp eax, 0x7d00
jae 0xb3e16d
cmp eax, 0x500
jb 0xb3e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3e075
cmp eax, 0x7f
ja 0xb3e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb3e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb3e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4041e0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.00409fa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x45b368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45b36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.004041d0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x45b370]
mov edx, dword [0x45b374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x462afc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40426c
mov dword [0x462af8], 0xedeb2e40
jmp 0x404287
cmp eax, 0x3eb
jne 0x404287
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x462588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x462afc], 0x9e6
mov dword [0x462af4], 0xf4ea3dee
jne 0x4042c0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x462afc], 0x213
jne 0x404370
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ec8
push 0x403f14
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x462afc], 0xc
jne 0x404384
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404240
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4043d0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00409fa0
mov eax, dword [0x462afc]
mov ecx, dword [0x46258c]
shr eax, 3
test eax, eax
jbe 0x4044ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x462afc], 0x959
jne 0x4044d2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004041e0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a5f8]
jne 0x406f1a
repz ret
jmp fcn.0040bbae

Function at 0x40b7d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408b84
and dword [ebp - 4], 0
cmp dword [0x460578], 0
mov ebx, eax
jne 0x40b886
push 0x401c3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b937
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c30
push edi
call esi
test eax, eax
je 0x40b937
push eax
call fcn.00408b12
mov dword [esp], 0x401c20
push edi
mov dword [0x460578], eax
call esi
push eax
call fcn.00408b12
mov dword [esp], 0x401c0c
push edi
mov dword [0x46057c], eax
call esi
push eax
call fcn.00408b12
mov dword [esp], 0x401bf0
push edi
mov dword [0x460580], eax
call esi
push eax
call fcn.00408b12
pop ecx
mov dword [0x460588], eax
test eax, eax
je 0x40b886
push 0x401bd8
push edi
call esi
push eax
call fcn.00408b12
pop ecx
mov dword [0x460584], eax
mov eax, dword [0x460584]
cmp eax, ebx
je 0x40b8de
cmp dword [0x460588], ebx
je 0x40b8de
push eax
call fcn.00408b8d
push dword [0x460588]
mov esi, eax
call fcn.00408b8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b8de
test edi, edi
je 0x40b8de
call esi
test eax, eax
je 0x40b8d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b8d5
test byte [ebp - 0xc], 1
jne 0x40b8de
or dword [ebp + 0x10], 0x200000
jmp 0x40b917
mov eax, dword [0x46057c]
cmp eax, ebx
je 0x40b917
push eax
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b917
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b917
mov eax, dword [0x460580]
cmp eax, ebx
je 0x40b917
push eax
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b917
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460578]
call fcn.00408b8d
pop ecx
test eax, eax
je 0x40b937
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b939
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401140
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [0x407d18]
test ecx, ecx
jne 0x401161
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
test ecx, ecx
mov dword [0x407d18], ecx
je 0x401198
cmp word [ecx], 0x5a4d
jne 0x401198
xor eax, eax
mov ax, word [ecx + 0x3c]
add eax, ecx
cmp word [eax], 0x4550
jne 0x401198
mov eax, dword [eax + 0x78]
mov edx, dword [esp + 4]
add eax, ecx
push esi
mov esi, dword [eax + 0x14]
dec edx
cmp edx, esi
pop esi
jae 0x401198
mov eax, dword [eax + 0x1c]
lea edx, [eax + edx*4]
mov eax, dword [edx + ecx]
add eax, ecx
ret 4
xor eax, eax
ret 4

Function at 0x402b75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407208
cmp edx, dword [eax]
je 0x402b97
add eax, 8
inc ecx
cmp eax, 0x407298
jl 0x402b88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407208]
jne 0x402cc5
mov eax, dword [0x407d68]
cmp eax, 1
je 0x402c9f
test eax, eax
jne 0x402bc8
cmp dword [0x407070], 1
je 0x402c9f
cmp edx, 0xfc
je 0x402cc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402bff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004035b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402c42
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063d0
push edi
call fcn.00404340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004035b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004035c0
lea eax, [ebp - 0xa0]
push 0x4063b0
push eax
call fcn.004035c0
push dword [esi + 0x40720c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004035c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004042ab
add esp, 0x2c
pop edi
jmp 0x402cc5
lea eax, [ebp + 8]
lea esi, [esi + 0x40720c]
push 0
push eax
push dword [esi]
call fcn.00402020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret