joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd10
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4a78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0040fa70
test eax, eax
jne 0x40fda5
lea ecx, [ebp - 0x28]
call fcn.004095a0
lea ecx, [ebp - 0x40]
call fcn.004095a0
lea ecx, [ebp - 0x58]
call fcn.004095a0
xor eax, eax
jmp 0x40ff19
cmp dword [esi + 0x7c], 0
jne 0x40fdb2
mov eax, 0x509aac
jmp 0x40fdc0
cmp dword [esi + 0x80], 8
lea eax, [esi + 0x6c]
jb 0x40fdc0
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x40fd86
mov eax, dword [esi + 0xc]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x40fd86
cmp dword [esi + 0x34], 0
je 0x40fe14
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0xaa0
push eax
push 0x54
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fd86
mov eax, dword [esi + 0x34]
xor ecx, ecx
test eax, eax
je 0x40fe2d
cmp dword [esi + 0x38], ecx
jne 0x40fe29
mov ecx, 0x1bb
jmp 0x40fe42
test eax, eax
jne 0x40fe39
cmp dword [esi + 0x38], ecx
jne 0x40fe3e
mov ecx, 0x50
jmp 0x40fe42
cmp dword [esi + 0x38], ecx
je 0x40fe42
movzx ecx, word [esi + 0x38]
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x40fe4d
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 8], 0
je 0x40fd86
mov eax, dword [esi + 0x34]
neg eax
sbb eax, eax
and eax, 0x800000
cmp dword [esi + 0xac], 0
jne 0x40fe89
mov edx, str.HTTP_1.1
jmp 0x40fe9a
cmp dword [esi + 0xb0], 8
lea edx, [esi + 0x9c]
jb 0x40fe9a
mov edx, dword [edx]
cmp dword [esi + 0x94], 0
jne 0x40feaa
mov ecx, 0x509ad8
jmp 0x40febb
cmp dword [esi + 0x98], 8
lea ecx, [esi + 0x84]
jb 0x40febb
mov ecx, dword [ecx]
cmp dword [esi + 0x68], 8
lea edi, [esi + 0x54]
jb 0x40fec6
mov edi, dword [edi]
push eax
push 0
push 0
push edx
push edi
push ecx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi], eax
test eax, eax
je 0x40fd86
cmp dword [esi + 0x34], 0
je 0x40ff05
push 4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3300
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40fd86
mov ecx, esi
call fcn.00410190
test eax, eax
je 0x40fd86
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x40ff40
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x40ff6d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1845
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0xb4]
mov dword [ebp - 0x20], 1
mov esi, dword [edi]
cmp esi, edi
je 0x410012
xor ecx, ecx
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x1c], cx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
call fcn.00403ab0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0x20000000
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x40fff6
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x40ffdc
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00403f90
mov esi, dword [esi]
cmp esi, edi
jne 0x40ff84
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1845
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], 0
cmp ecx, 8
jb 0x410012
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00403f90
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x410030
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
jne 0x410069
xor eax, eax
jmp 0x410174
mov edi, dword [ebx + 0xbc]
mov dword [ebp - 0x44], 1
mov esi, dword [edi]
cmp esi, edi
je 0x410171
xor ecx, ecx
mov dword [ebp - 0x2c], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
call fcn.00403ab0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov edx, str.Cookie:
lea ecx, [ebp - 0x28]
call fcn.00410b80
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0x20000000
push dword [ebp - 0x18]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x41012f
cmp eax, 8
jb 0x4100f3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403f90
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x410123
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403f90
mov esi, dword [esi]
cmp esi, edi
jne 0x410080
jmp 0x410171
mov dword [ebp - 0x44], 0
cmp eax, 8
jb 0x410148
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403f90
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x410171
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00403f90
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x417810
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x2c], 0x520042
mov word [ebp - 0x1c], ax
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x580036
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2e]
xor eax, ecx
mov dword [ebp - 0x28], 0x5a005a
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x24], 0x520018
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2a]
xor eax, ecx
mov dword [ebp - 0x20], 0x5a005a
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x28]
xor eax, ecx
mov dword [esi], 0
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x26]
xor eax, ecx
mov dword [esi + 4], 0
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x24]
xor eax, ecx
mov dword [esi + 8], 0
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x22]
xor eax, ecx
mov dword [esi + 0xc], 0
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x20]
xor eax, ecx
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x1e]
xor eax, ecx
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x1a]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x4179db
movaps xmm0, xmmword [str.3_t_]
xor eax, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x10183011
mov dword [ebp - 0x20], 0x40f12
mov cl, byte [ebp + eax - 0x33]
xor cl, byte [ebp - 0x34]
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 0x16
jb 0x4178f2
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1c]
push eax
push edx
mov byte [ebp - 6], 0
call edi
mov dword [esi + 4], eax
mov cl, 0x3e
mov al, 0x16
mov dword [ebp - 0x1c], 0x283e165a
mov bl, al
mov dword [ebp - 0x18], 0x3e3b3516
xor al, byte [ebp - 0x1c]
mov dh, cl
xor cl, byte [ebp - 0x1c]
mov bh, 0x1e
mov byte [ebp - 0x35], bh
mov ah, 0x35
mov byte [ebp - 0x10], al
mov bh, 0x36
mov byte [ebp - 0x36], bh
mov dl, 0x28
mov al, byte [ebp - 0x36]
mov ch, 0x3b
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x1c]
xor al, cl
mov byte [ebp - 0x37], bh
mov bh, byte [ebp - 0x35]
xor ah, cl
mov byte [ebp - 8], al
xor dl, cl
mov al, byte [ebp - 0x37]
xor bl, cl
xor al, cl
mov byte [ebp - 0xc], ah
mov byte [ebp - 7], al
xor ch, cl
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x36361e
push eax
push dword [esi]
xor dh, cl
mov byte [ebp - 0xe], dl
xor bh, cl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xb], ch
mov byte [ebp - 0xa], dh
mov byte [ebp - 9], bh
mov byte [ebp - 6], 0
call edi
mov dword [esi + 8], eax
mov dl, 0x35
mov dword [ebp - 0x20], 0x61426f35
xor ecx, ecx
mov dword [ebp - 0x1c], 0x74414650
mov dword [ebp - 0x18], 0x41475059
mov byte [ebp - 0x14], 0
mov al, byte [ebp + ecx - 0x1f]
xor al, dl
mov byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xb
jae 0x4179ca
mov dl, byte [ebp - 0x20]
jmp 0x4179b5
lea eax, [ebp - 0x13]
mov byte [ebp - 8], 0
push eax
push dword [esi]
call edi
pop edi
mov dword [esi + 0xc], eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x418570
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 6]
add ecx, 0x18
cdq
add ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
test edx, edx
jb 0x4185d2
ja 0x4185a4
test eax, eax
je 0x4185d2
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 0xc]
nop word [eax + eax]
mov ecx, dword [esi]
cmp edi, ecx
jb 0x4185bf
mov eax, dword [esi + 4]
add eax, ecx
cmp edi, eax
jbe 0x4185de
inc ebx
add esi, 0x28
mov eax, ebx
cdq
cmp edx, dword [ebp + 8]
ja 0x4185d2
jb 0x4185b0
cmp eax, dword [ebp - 4]
jb 0x4185b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 8]
lea eax, [ebx + ebx*4]
mov ecx, dword [edx + eax*8 + 0x14]
sub ecx, dword [edx + eax*8 + 0xc]
lea eax, [edi + ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x418600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41873a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.004a1d88
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x10]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41873a
mov eax, dword [edi + 0x3c]
mov ecx, 0x20b
cmp word [eax + edi + 0x18], cx
jne 0x41873a
push dword [eax + edi + 0x88]
push edi
call fcn.00418570
push dword [edi + eax + 0x1c]
push edi
lea ebx, [edi + eax]
call fcn.00418570
push dword [ebx + 0x24]
add eax, edi
push edi
mov dword [esp + 0x2c], eax
call fcn.00418570
push dword [ebx + 0x20]
push edi
lea esi, [edi + eax]
mov dword [esp + 0x20], esi
call fcn.00418570
lea edx, [edi + eax]
mov eax, dword [ebx + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
test eax, eax
je 0x41873a
mov ebx, dword [ebx + 0x18]
xor eax, eax
test ebx, ebx
je 0x418733
nop dword [eax]
movzx ecx, word [esi + eax*2]
cmp edi, ecx
je 0x4186ef
inc eax
cmp eax, ebx
jb 0x4186e0
jmp 0x418733
push dword [edx + eax*8]
mov esi, dword [ebp + 0xc]
push dword [esp + 0x14]
call fcn.00418570
add eax, dword [esp + 0x10]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x418722
test cl, cl
je 0x41871e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x418722
add eax, 2
add esi, 2
test cl, cl
jne 0x418702
xor eax, eax
jmp 0x418727
sbb eax, eax
or eax, 1
test eax, eax
je 0x418745
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x20]
jb 0x4186d7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edi*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418850
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4188d5
cmp dword [edi + 8], 0
jne 0x41888e
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4188d5
cmp dword [edi + 8], 0
jne 0x41888e
push edi
mov ecx, ebx
call fcn.00418820
test eax, eax
je 0x4188d5
lea eax, [edi + 0x24]
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x4188cc
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4188cc
cmp dword [edi + 8], esi
jne 0x4188c5
push edi
mov ecx, ebx
call fcn.00418820
test eax, eax
lea eax, [edi + 0x24]
jne 0x418896
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x418ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2050
call fcn.004a2fb0
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1002
lea eax, [ebp - 0x200c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004bac20
push 0x1002
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004bac20
add esp, 0x14
mov edx, 0x800
push esi
push ecx
lea ecx, [ebp - 0x200c]
call fcn.00419470
push ecx
push esi
push ecx
mov edx, 0x800
lea ecx, [ebp - 0x1008]
call fcn.00419470
cmp word [ebp - 0x1008], 0x22
jne 0x418c43
lea eax, [ebp - 0x1006]
push 0x22
push eax
call fcn.004b9ad4
xor ecx, ecx
add esp, 4
mov edx, 0x800
mov word [eax], cx
lea eax, [ebp - 0x1006]
push eax
push ecx
lea ecx, [ebp - 0x1008]
call fcn.00419470
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x40
lea eax, [ebp - 0x204c]
mov dword [ebp - 0x2050], 0x44
push 0
push eax
call fcn.004bac20
add esp, 0xc
lea eax, [ebp - 0x2050]
push edi
push eax
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x200c]
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x4195e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e56c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
call fcn.00409af0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push str..pipe_
push eax
call fcn.0040e8a0
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x4196ab
cmp eax, 0xe7
jne 0x41969f
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x419657
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x4196e4
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
test esi, esi
jne 0x4196dc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x4196e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4196f9
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004099a0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x419720
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.004099a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a1845
mov esp, ebp
pop ebp
ret 0x14
Function at 0x421210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e68cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52910c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0
push dword [esi]
mov edx, dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi]
call fcn.00421730
add esp, 0x10
test al, al
mov eax, esi
jne 0x4212d2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x421d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x421d91
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x421d80
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x427f90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ecx + 0x3c]
add esi, ecx
push edi
mov edi, edx
movzx eax, word [esi + 6]
movzx ecx, word [esi + 0x14]
add esi, 0x18
cdq
add ecx, esi
mov ebx, eax
mov dword [ebp - 8], ecx
mov eax, edx
xor esi, esi
mov dword [ebp - 4], eax
test eax, eax
jb 0x427fe8
ja 0x427fc4
test ebx, ebx
je 0x427fe8
add ecx, 0xc
mov edx, dword [ecx]
cmp edi, edx
jb 0x427fd6
mov eax, dword [ecx + 4]
add eax, edx
cmp edi, eax
jbe 0x427ff2
inc esi
add ecx, 0x28
mov eax, esi
cdq
cmp edx, dword [ebp - 4]
ja 0x427fe8
jb 0x427fc7
cmp eax, ebx
jb 0x427fc7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea eax, [esi + esi*4]
mov ecx, dword [edx + eax*8 + 0x14]
sub ecx, dword [edx + eax*8 + 0xc]
lea eax, [edi + ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42833a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42833a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call ebx
test eax, eax
je 0x428339
nop dword [eax + eax]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004c8d20
add esp, 8
test eax, eax
je 0x428333
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call ebx
test eax, eax
jne 0x428300
jmp 0x428339
mov edi, dword [ebp - 0x228]
pop ebx
test esi, esi
je 0x42834a
cmp esi, 0xffffffff
je 0x42834a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a1845
mov esp, ebp
pop ebp
ret
Function at 0x428c20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x51a038
push 0x4bb320
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52910c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
je 0x428dd0
mov dword [ebp - 0x20], 0
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x428c70
sub esi, ecx
sar esi, 1
mov dword [ebp - 4], 0
lea eax, [esi*2 + 2]
push eax
call fcn.004c2c67
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x428dc9
push ebx
lea edx, [esi + 1]
mov ecx, edi
call fcn.004194c0
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x428d15
cmp word [edi + 2], 0x5c
jne 0x428d15
lea esi, [edi + 4]
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x428ce7
cmp eax, 0x5c
je 0x428ce7
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x428cd0
cmp word [esi], 0
je 0x428cf3
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x428d07
cmp eax, 0x5c
je 0x428d07
push esi
call ebx
mov esi, eax
jmp 0x428cf0
cmp word [esi], 0
je 0x428d40
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x428d40
cmp word [edi + 2], 0x3a
jne 0x428d35
lea esi, [edi + 4]
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x428d35
cmp eax, 0x5c
jne 0x428d35
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax + eax]
movzx eax, word [esi]
test ax, ax
je 0x428d91
cmp eax, 0x5c
jne 0x428d87
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x428d7b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x428d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x428d7f
push edi
jmp 0x428dc1
test al, 0x10
je 0x428d78
mov eax, 0x5c
mov word [esi], ax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x428d40
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.004c2c72
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004c2c72
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret