joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50fb50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d3f93
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], ecx
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0x1e00]
call fcn.00532aa0
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x104]
cmp dword [ecx + 0x1e00], 0
jne 0x50fbac
jmp 0x50fdb9
mov dword [ebp - 0xfc], 0
xor edx, edx
mov dword [ebp - 0xf8], edx
lea ecx, [ebp - 0xf4]
call fcn.00405380
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.00405380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00405380
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x74]
call fcn.00405380
mov byte [ebp - 4], 4
xor ecx, ecx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0x56]
call fcn.00405380
mov byte [ebp - 4], 5
xor edx, edx
mov dword [ebp - 0x3a], edx
mov dword [ebp - 0x36], edx
lea ecx, [ebp - 0x32]
call fcn.0042b810
mov dword [ebp - 4], 6
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 0x1dd4]
push edx
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0x1cb8]
call fcn.0049b4d0
cmp eax, 1
jne 0x50fd0b
lea ecx, [ebp - 0xfc]
call fcn.0040d200
cmp eax, 3
je 0x50fc91
lea ecx, [ebp - 0xfc]
call fcn.0040d200
cmp eax, 4
jne 0x50fd0b
push 2
mov ecx, dword [ebp - 0x104]
mov ecx, dword [ecx + 0x1dd0]
call fcn.0053a6c0
push 0
mov edx, dword [ebp - 0x104]
mov ecx, dword [edx + 0x1dd0]
call fcn.0053a840
push 0
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0x104]
mov dword [ecx + 0x1e20], 0
mov ecx, dword [ebp - 0x104]
call fcn.0050fa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00426bf0
jmp 0x50fdb9
mov edx, 1
test edx, edx
je 0x50fd3e
cmp dword [ebp + 8], 0
je 0x50fd3e
push 0
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, dword [ebp - 0x104]
mov ecx, dword [ecx + 0x1dd0]
call fcn.0053a840
jmp 0x50fd8d
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x104]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x104]
mov eax, dword [edx + 0x18]
call eax
push 2
mov ecx, dword [ebp - 0x104]
mov ecx, dword [ecx + 0x1dd0]
call fcn.0053a6c0
push 0
mov edx, dword [ebp - 0x104]
mov ecx, dword [edx + 0x1dd0]
call fcn.0053a840
push 1
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x1e20], edx
mov ecx, dword [ebp - 0x104]
call fcn.0050fa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00426bf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret 4
Function at 0x511f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x52e4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1388
jae 0x511fb6
jmp 0x512023
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1e00], 0
je 0x512023
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x52e4], eax
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004590b0
cmp eax, 4
jne 0x511ff1
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x1e00]
call fcn.005329b0
jmp 0x512023
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x48]
call eax
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00515430
push 2
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x1e00]
call fcn.00532940
push 0
mov ecx, dword [ebp - 8]
call fcn.00511c50
mov esp, ebp
pop ebp
ret
Function at 0x5172c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4c57
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x9c], 0
jne 0x517306
cmp dword [ebp + 8], 0
je 0x517306
cmp dword [ebp + 0xc], 0
je 0x517306
cmp dword [ebp + 0x10], 0
jne 0x51730d
xor eax, eax
jmp 0x517466
mov ecx, dword [ebp - 0x34]
call fcn.00517480
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x9c], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x9c], 0
jne 0x51733b
xor eax, eax
jmp 0x517466
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x517363
xor eax, eax
jmp 0x517466
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0xa0], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0xa0], 0
jne 0x517393
xor eax, eax
jmp 0x517466
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5173b3
xor eax, eax
jmp 0x517466
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5173d7
xor eax, eax
jmp 0x517466
lea ecx, [ebp - 0x20]
call fcn.004877f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00487990
movzx edx, al
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x51741d
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00487820
mov eax, dword [ebp - 0x28]
jmp 0x517466
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00517510
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x51744d
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00487820
mov eax, dword [ebp - 0x2c]
jmp 0x517466
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00487820
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5336b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x10], 0xe9
mov byte [ebp - 0xf], 0x90
mov byte [ebp - 0xe], 0x90
mov byte [ebp - 0xd], 0x90
mov byte [ebp - 0xc], 0x90
mov byte [ebp - 0xb], 0xc3
push 6
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 6
add ecx, 0x765854
push ecx
call fcn.005a7f00
add esp, 0xc
mov edx, dword [ebp + 8]
sub edx, dword [ebp + 0xc]
sub edx, 5
mov dword [ebp - 4], edx
push 0x7657d8
push 0x40
push 6
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
imul edx, edx, 6
add edx, 0x765818
push edx
call fcn.005a7f00
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
imul ecx, ecx, 6
add ecx, 0x765855
push ecx
call fcn.005a7f00
add esp, 0xc
push 6
mov edx, dword [ebp + 0x10]
imul edx, edx, 6
add edx, 0x765854
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a7f00
add esp, 0xc
push 0
mov ecx, dword [0x7657d8]
push ecx
push 6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret

Function at 0x538f80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push 0
push 0x100
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 0x64
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedStateExW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x538fcd
mov eax, 0x100005
jmp 0x538ff7
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x64]
and eax, 0x20
je 0x538fe2
mov eax, 0x100006
jmp 0x538ff7
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x538ff5
mov eax, 0x100005
jmp 0x538ff7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret
Function at 0x539830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x40000000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xea60
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x100000
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x36ee80
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0xea60
push 0x100
push 0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call fcn.005a7100
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0x130], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x134], 0x3c
push 0x100
push 0
mov edx, dword [ebp - 4]
add edx, 0x138
push edx
call fcn.005a7100
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, 0x138
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x114], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x118], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x11c], 5
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x120], 5
mov edx, dword [ebp - 4]
mov dword [edx + 0x124], 0
mov dword [edx + 0x128], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x12c], 0x3200000
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x53b74b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
jne 0x53b753
or eax, 0xffffffff
jmp 0x53b80f
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x8c]
test eax, eax
jne 0x53b79c
cmp dword [ebp + 8], 0
je 0x53b78d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x90], 0
je 0x53b781
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90]
mov dword [ebp - 8], eax
jmp 0x53b787
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0
jmp 0x53b7c6
cmp dword [ebp + 8], 0
je 0x53b7c6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x88], 0
je 0x53b7c6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x88]
cmp eax, dword [ebp + 8]
jb 0x53b7c6
xor eax, eax
jmp 0x53b80f
mov ecx, dword [ebp - 4]
call fcn.0053b6d0
cmp dword [ebp + 8], 0
jne 0x53b7eb
mov ecx, dword [ebp - 4]
call fcn.0053b820
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], 0
jmp 0x53b80d
push 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00458f50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x53fba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x53fcc0
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x53fbd8
or eax, 0xffffffff
jmp 0x53fbe4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x546bc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jle 0x546bd5
cmp dword [ebp + 0x10], 0
jg 0x546bda
jmp 0x546cb7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], 0
je 0x546c1c
cmp dword [ebp + 0xc], 0x1e
jle 0x546bfb
mov dword [ebp - 0xc], 0x1e
jmp 0x546c01
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
push ecx
push 0x17
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x2c], 0
je 0x546c5f
cmp dword [ebp + 8], 1
jne 0x546c5f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
jne 0x546c5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x1c]
add eax, 0x1f4
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], edx
jmp 0x546cb7
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x2c], 0
jne 0x546cb7
cmp dword [ebp + 8], 1
jne 0x546c78
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2048], 0
jle 0x546ca7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x2048]
jge 0x546cb7
push 1
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.00546ad0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x547400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xb388]
test ecx, ecx
je 0x54752c
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0xb391]
test eax, eax
jne 0x54752c
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xb390]
test edx, edx
jne 0x54752c
mov eax, dword [ebp - 8]
mov byte [eax + 0xb38a], 0
mov ecx, dword [ebp - 8]
mov byte [ecx + 0xb389], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xb3ac], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xb38c], 0
push 8
push 0
mov ecx, dword [ebp - 8]
add ecx, 0xb394
push ecx
call fcn.005a7100
add esp, 0xc
mov edx, dword [ebp - 8]
mov byte [edx + 0xb390], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0xb391], 1
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x547600
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xb39c], eax
push 0x1388
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb3a4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x547840
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xb3a0], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xb39c], 0
jne 0x54750a
mov eax, dword [ebp - 8]
mov byte [eax + 0xb391], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xb3a0], 0
jne 0x547520
mov edx, dword [ebp - 8]
mov byte [edx + 0xb390], 0
push 0
push 3
mov ecx, dword [ebp - 8]
call fcn.00547a30
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x55bfe0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9323
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00420100
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00420100
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.00420100
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.00420100
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00420100
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.00420100
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00420100
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00420100
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00420100
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00420100
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00420100
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00420100
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00420100
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00420100
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00420100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00420100
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00420100
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00420100
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.00420100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x58de70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dacdb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push 0x20
call fcn.005a7c1e
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x58dec6
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0058df70
mov dword [ebp - 0x28], eax
jmp 0x58decd
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x58deef
or eax, 0xffffffff
jmp 0x58df52
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x58dfd0
push 0
push 0
call fcn.005aa391
add esp, 0x18
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], 0
jne 0x58df50
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x58df42
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.0058e050
mov dword [ebp - 0x2c], eax
jmp 0x58df49
mov dword [ebp - 0x2c], 0
mov eax, 0xfffffffe
jmp 0x58df52
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x58e080
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58e0c4
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x59c8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6db89b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0059cac0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0059cbf0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5a418e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x765d64], 0
push esi
jne 0x5a40fc
call fcn.005a4010
test eax, eax
je 0x5a413f
mov eax, dword [0x765d64]
cmp eax, 1
jne 0x5a411d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5a413f
pop esi
ret
push eax
call dword [0x765d6c]
test eax, eax
jne 0x5a4187
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5a4143
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x765d64]
call dword [0x765d6c]
mov edi, eax
test edi, edi
je 0x5a4168
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x5a4184
mov edi, esi
add esi, 0xff0
push edi
push dword [0x765d64]
call dword [0x765d68]
add edi, 0x10
cmp edi, esi
jb 0x5a4170
mov eax, edi
pop edi
pop esi
ret
jmp 0x5a40e9

Function at 0x5a5d30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x138c
call fcn.005aa450
mov eax, dword [0x75aa5c]
push ebx
mov ebx, dword [esp + 0x1394]
push ebp
mov ebp, dword [reloc.OLEAUT32.dll_SafeArrayGetDim]
push esi
push edi
mov edi, dword [esp + 0x13a4]
mov dword [esp + 0x1398], eax
mov edi, edi
push edi
push 0x1388
lea eax, [esp + 0x18]
push 1
push eax
call fcn.005b218b
mov ecx, dword [edi + 0xc]
add esp, 0x10
test cl, 0x20
jne 0x5a5db5
mov edx, dword [ebx]
and ecx, 0x10
mov esi, ecx
push esi
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
add esp, 0x10
test eax, eax
je 0x5a5dd8
test esi, esi
je 0x5a5d60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1388]
call fcn.005a6f18
add esp, 0x138c
ret
push 2
call fcn.005a6210
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1388]
call fcn.005a6f18
add esp, 0x138c
ret
push 4
call fcn.005a6210
mov ecx, dword [esp + 0x139c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.005a6f18
add esp, 0x138c
ret

Function at 0x5a6f18
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x75aa5c]
jne 0x5a6f22
repz ret
jmp fcn.005b72ac

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5b2499
call fcn.005b5104
mov dword [eax], esi
call fcn.005b50f1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005a7823
add esp, 0x14
push 0x16
pop eax
jmp 0x5b24ee
test dword [ebp + 0xc], 0xfffffff9
jne 0x5b2475
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b24c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005b5117
pop ecx
call fcn.005b50f1
mov eax, dword [eax]
jmp 0x5b24ee
test al, 0x10
jne 0x5b24ec
test al, 1
je 0x5b24ec
test byte [ebp + 0xc], 2
je 0x5b24ec
call fcn.005b5104
mov dword [eax], 5
call fcn.005b50f1
mov dword [eax], 0xd
jmp 0x5b24bd
xor eax, eax
pop esi
pop ebp
ret