joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4026c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402758
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402738
xor eax, eax
push ebp
push 0x402731
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402774
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402738
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402da0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402e01
cmp word [0x40a208], 0xd7b2
jne 0x402dc9
cmp dword [0x40a210], 0
jbe 0x402dc9
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40904c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402e28
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x402e1d
push 0
push 0x40906c
push 0x40904c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x403db8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx eax, word [0x40abd8]
cmp eax, dword [0x40abdc]
jb 0x403e34
mov eax, dword [0x409290]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.00405024
mov edx, eax
mov eax, dword [0x40abd0]
call fcn.0040514c
mov dword [0x40abdc], eax
mov eax, dword [0x4092fc]
mov ax, word [eax + 8]
and ax, 1
cmp ax, 1
jne 0x403e2b
mov esi, dword [0x40abdc]
dec esi
test esi, esi
jl 0x403e2b
inc esi
xor ebx, ebx
call fcn.00406970
mov edx, dword [0x40abd0]
xor byte [edx + ebx], al
mov eax, dword [0x40abd0]
mov al, byte [eax + ebx]
call fcn.00406898
inc ebx
dec esi
jne 0x403e0c
mov word [0x40abd8], 0
cmp dword [0x40abdc], 0
jne 0x403e55
mov eax, dword [0x409290]
xor edx, edx
mov dword [eax], edx
mov word [0x40abd8], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x40abd8]
mov edx, dword [0x40abd0]
movzx eax, byte [edx + eax]
inc word [0x40abd8]
pop esi
pop ebx
ret
Function at 0x403ebc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, esp
mov ebp, 0x40abd4
mov eax, dword [0x40abc8]
mov dword [edi], eax
mov ax, word [0x40abcc]
mov word [esp + 4], ax
mov bx, word [0x40abe0]
mov si, word [esp + 4]
and si, 7
lea ecx, [esp + 4]
mov edx, edi
mov eax, esi
call fcn.00403eb0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403e8c
mov si, word [edi]
and si, 0xffff
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403eb0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403e8c
mov ax, word [edi]
not ax
and ax, 0xffff
cmp si, ax
je 0x403f46
mov word [0x40abe0], 0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00403eb0
test si, si
je 0x403fc0
dec esi
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00403e8c
movzx eax, bx
mov edx, dword [ebp]
mov cl, byte [edi]
mov byte [edx + eax], cl
inc ebx
cmp bx, 0x8000
jne 0x403fac
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, bx
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [0x4092bc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_WriteFile_1
mov ecx, dword [0x409284]
movzx edx, bx
mov eax, dword [ebp]
call fcn.00405000
xor ebx, ebx
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00403eb0
test si, si
jne 0x403f5a
mov word [0x40abe0], bx
mov eax, dword [edi]
mov dword [0x40abc8], eax
mov ax, word [esp + 4]
mov word [0x40abcc], ax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x40abc4
mov word [0x40abd8], 0
xor eax, eax
mov dword [0x40abdc], eax
mov word [0x40abe0], 0
mov word [0x40abcc], 0
xor eax, eax
mov dword [0x40abc8], eax
xor ebx, ebx
xor eax, eax
mov dword [0x40abd0], eax
xor eax, eax
mov dword [0x40abd4], eax
mov eax, 0x8002
call fcn.00402424
mov dword [0x40abd0], eax
mov eax, 0x8002
call fcn.00402424
mov dword [0x40abd4], eax
xor eax, eax
push ebp
push 0x404f1d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x404ef1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 0
lea eax, [ebp - 4]
call fcn.00404d60
cmp bx, word [esi]
jae 0x404e96
mov bx, word [esi]
cmp dword [ebp - 4], 0
je 0x404e81
cmp word [0x40abe0], 0
jbe 0x404ee7
push 0
lea eax, [ebp - 8]
push eax
movzx eax, word [0x40abe0]
push eax
mov eax, dword [0x40abd4]
push eax
mov eax, dword [0x4092bc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_WriteFile_1
mov ecx, dword [0x409284]
movzx edx, word [0x40abe0]
mov eax, dword [0x40abd4]
call fcn.00405000
mov word [0x40abe0], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x404efb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f24
mov eax, dword [0x40abd0]
call fcn.00402444
mov eax, dword [0x40abd4]
call fcn.00402444
ret

Function at 0x40502c
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [0x409290]
mov eax, dword [edi]
mov edx, 0x8000
call fcn.00405024
add eax, 2
call fcn.00402424
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x405112
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x4050fc
mov eax, dword [edi]
mov edx, 0x8000
call fcn.00405024
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040514c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov eax, dword [0x4092fc]
mov ax, word [eax + 8]
and ax, 1
cmp ax, 1
jne 0x4050c7
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jb 0x4050c7
inc esi
xor ebx, ebx
call fcn.00406970
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx]
xor al, dl
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
call fcn.00406898
inc ebx
dec esi
jne 0x4050a5
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4092bc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_WriteFile_1
mov ecx, dword [0x409284]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00405000
cmp dword [edi], 0
jg 0x405069
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405119
mov eax, dword [ebp - 8]
call fcn.00402444
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403298
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40524d
test al, 0x10
jne 0x405251
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x405258
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403298
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
setne al
pop ebx
ret

Function at 0x40550c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40564b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0xd], 0
push 0
mov eax, dword [0x4092dc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
mov eax, dword [0x4092b0]
sub ebx, dword [eax]
cmp ebx, 0x10016
jbe 0x405558
mov ebx, 0x10016
cmp ebx, 0x16
jbe 0x40561a
mov eax, ebx
call fcn.00402424
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x405613
push dword fs:[eax]
mov dword fs:[eax], esp
mov dx, 1
xor eax, eax
call fcn.00405120
mov edi, eax
mov eax, ebx
neg eax
mov dx, 2
call fcn.00405120
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.0040514c
mov esi, eax
xor edx, edx
mov eax, edi
call fcn.00405120
cmp ebx, esi
jne 0x4055fd
mov edi, ebx
sub edi, 0x16
test edi, edi
jb 0x4055fd
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0xc]
add esi, ebx
mov eax, dword [esi]
mov edx, dword [0x4092c4]
cmp eax, dword [edx]
jne 0x4055f9
push 0
mov eax, dword [0x4092dc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize
movzx edx, word [esi + 0x14]
add edx, dword [ebp - 8]
add edx, ebx
add edx, 0x16
cmp eax, edx
jne 0x4055f9
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 4], eax
jmp 0x4055fd
inc ebx
dec edi
jne 0x4055bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40561a
mov eax, dword [ebp - 0xc]
call fcn.00402444
ret
cmp byte [ebp - 0xd], 0
jne 0x405635
lea edx, [ebp - 0x14]
mov eax, 0x3ee
call fcn.00404fa8
mov eax, dword [ebp - 0x14]
call fcn.00407608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405652
lea eax, [ebp - 0x14]
call fcn.00402f1c
ret
Function at 0x4062f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x40644d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4092a0]
cmp byte [eax + 0xb], 0
jbe 0x4063d4
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.0040653c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00406090
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.0040653c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.00406090
lea eax, [ebp - 0xc]
call fcn.00407730
mov eax, dword [0x4092b8]
mov eax, dword [eax]
call fcn.004030a0
test eax, eax
je 0x406375
mov eax, dword [0x4092b8]
mov eax, dword [eax]
call fcn.00402534
mov eax, dword [ebp - 4]
call fcn.004030a0
cmp eax, 4
jle 0x4063cc
mov eax, dword [ebp - 4]
call fcn.00406650
test al, al
je 0x40639d
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405f68
mov ebx, eax
jmp 0x4063cc
push 5
mov eax, dword [0x4092b8]
mov eax, dword [eax]
call fcn.00403298
push eax
mov eax, dword [ebp - 8]
call fcn.00403298
push eax
mov eax, dword [ebp - 4]
call fcn.00403298
push eax
push 0x40645c
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00402534
cmp ebx, 0x20
jb 0x406432
mov eax, dword [0x4092b4]
cmp byte [eax], 0
je 0x406432
lea edx, [ebp - 0x18]
mov eax, dword [0x4092b8]
mov eax, dword [eax]
call fcn.0040537c
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4092c0]
mov eax, dword [eax]
call fcn.0040537c
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.004054cc
test al, al
je 0x406432
lea edx, [ebp - 0x20]
mov eax, dword [0x4092c0]
mov eax, dword [eax]
call fcn.0040537c
mov eax, dword [ebp - 0x20]
call fcn.00405234
test al, al
je 0x406432
call fcn.0040611c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406454
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00402f40
ret

Function at 0x406860
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, dword [0x409304]
movzx eax, bx
mov dx, 0xfff8
test eax, 1
jbe 0x406881
shr eax, 1
xor eax, 0xedb88320
jmp 0x406883
shr eax, 1
inc dx
jne 0x406870
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp bx, 0x100
jne 0x406869
pop ebx
ret

Function at 0x406898
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, dword [0x40929c]
mov edx, dword [esi]
mov eax, ebx
call fcn.00404fe4
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00403b70
call fcn.00403b74
mov edx, dword [esi + 8]
call fcn.00404fe4
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x406998
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 2], 0
test ebx, ebx
je 0x406a35
mov eax, ebx
call fcn.004068e0
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x4069f8
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.00406970
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.00406898
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x4069ca
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x406a22
mov eax, dword [ebp + 0x10]
call fcn.00403b70
call fcn.00403b74
cmp bl, al
jne 0x406a35
mov byte [ebp - 2], 1
jmp 0x406a35
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x406a35
mov byte [ebp - 2], 1
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x406b80
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
lea edi, [ebp - 0x30]
xor edx, edx
push ebp
push 0x406cc2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x191
push eax
call sub.user32.dll_GetDlgItem
mov esi, eax
push 0x4011
push 0x160
lea eax, [ebp - 0x190]
push eax
push 0x80
lea edx, [ebp - 0x194]
mov eax, ebx
call fcn.004051f8
mov eax, dword [ebp - 0x194]
call fcn.00403298
push eax
call sub.shell32.dll_SHGetFileInfoA
mov dword [edi], 0xf
mov dword [edi + 4], 0x7fffffff
xor eax, eax
mov dword [edi + 8], eax
mov eax, dword [0x4092a0]
test byte [eax + 6], 2
jne 0x406c12
xor eax, eax
mov dword [edi + 0xc], eax
jmp 0x406c19
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], 2
mov eax, ebx
call fcn.00403298
mov dword [edi + 0x14], eax
mov eax, ebx
call fcn.004030a0
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x18c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x20], eax
push edi
push 0
push 0x1007
push esi
call sub.user32.dll_SendMessageA
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], 1
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 4]
call fcn.0040267c
lea edx, [ebp - 0x294]
lea eax, [ebp - 8]
call fcn.0040307c
mov eax, dword [ebp - 8]
call fcn.00403298
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 8]
call fcn.004030a0
mov dword [edi + 0x18], eax
push edi
push 0
push 0x1006
push esi
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc9
lea eax, [ebp - 0x194]
call fcn.00402f1c
lea eax, [ebp - 8]
call fcn.00402f1c
ret

Function at 0x407730
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040300c
add esp, 0x108
pop ebx
ret
Function at 0x408544
Capabilities:
Get file system object information
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
mov eax, 0x4084d4
call fcn.004038dc
xor eax, eax
push ebp
push 0x4086b8
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x110]
call fcn.0040362c
lea edx, [ebp - 0x110]
mov eax, 0x40af8c
call fcn.0040307c
mov eax, dword [0x40af8c]
call fcn.00403298
push eax
push 0x4086c4
call sub.KERNEL32.DLL_SetEnvironmentVariableA
call sub.comctl32.dll_InitCommonControls
push 0x105
push 0x40ae84
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, 0x40ae84
mov eax, dword [0x4092f8]
call fcn.0040300c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x4092f8]
mov eax, dword [eax]
call fcn.00403298
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edx, dword [0x4092dc]
mov dword [edx], eax
mov eax, dword [0x4092dc]
cmp dword [eax], 0xffffffff
jne 0x40863e
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
mov eax, 0x3ea
call fcn.00404fa8
mov eax, dword [ebp - 0x118]
mov edx, dword [0x4092f8]
xor ecx, ecx
call fcn.00406464
mov eax, dword [ebp - 0x114]
call fcn.00407608
call fcn.00406860
call fcn.00405bf0
mov eax, 0x40ad24
xor ecx, ecx
mov edx, 0x160
call fcn.004025fc
push 0x4001
push 0x160
push 0x40ad24
push 0
mov eax, dword [0x4092f8]
mov eax, dword [eax]
call fcn.00403298
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [0x4092f0]
mov dword [edx], eax
push 0x407c54
mov edx, 0x4086cc
xor ecx, ecx
mov eax, dword [0x40a700]
call fcn.00403b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086bf
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00402f40
ret
Function at 0x4030d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
cmp dword [0x8fb080], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0xc], eax
jne 0x403109
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov ecx, dword [0x4dbef8]
mov ebx, dword [0x4dbefc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0x9e3779b9
mov dword [ebp - 0x28], ecx
call fcn.004030c0
mov edx, dword [0x4dbf00]
mov eax, dword [0x4dbf04]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov edi, 0x20
jmp 0x403150
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x8fb080]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4031b8
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0x402590
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
xor edx, edx
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], ax
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8fb080]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x4031d2
mov dword [0x8fa61c], 0xedeb2e40
jmp 0x4031e4
cmp ecx, 0x3eb
jne 0x4031e4
mov dword [0x8f9fd0], 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add edx, esi
mov dword [ebp - 0x14], edx
mov edx, esi
shr edx, cl
mov dword [0x8fa618], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x8fb080], 0xc
jne 0x403242
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov edx, dword [ebp - 0xc]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, ebx
xor eax, edx
xor ecx, eax
mov dword [ebp - 4], ecx
sub esi, ecx
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
sub edi, 1
jne 0x403150
cmp dword [0x8fb080], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], esi
jne 0x4032a9
push 0
push 0x4025c4
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4032c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8fb080]
mov ecx, dword [0x8f9fd4]
shr eax, 3
sub esp, 0x408
test eax, eax
jbe 0x40339a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x8fb080], 0x959
jne 0x403380
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x4025f8
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004030d0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x403300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9a28
push eax
mov dword fs:[0], esp
sub esp, 0x448
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x4036cb
lea eax, [ebp - 0x454]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4036b8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ebx, dword [ebp - 0x10]
xor esi, esi
call edi
cmp esi, 0x2b259d
jle 0x4036f2
cmp ebx, 0x785074d5
jne 0x4036fb
inc esi
cmp esi, 0x1c1b
jl 0x4036e0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x40372d
inc esi
cmp esi, 0x4f6a4
jl 0x403710
cmp dword [0x8fb080], 0x400
jne 0x403767
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
lea eax, [ebp - 0x30]
call fcn.00403800
push 0
mov dword [ebp - 4], 0
call fcn.00403b34
add esp, 4
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00403820
mov ecx, dword [0x4dc13c]
mov edx, dword [0x4dc110]
mov dword [0x8fb080], ecx
mov dword [0x8fb084], edx
call fcn.004033c0
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
nop
push 0
call edi
cmp esi, 0x2b259d
jle 0x4037a4
cmp ebx, 0x785074d5
jne 0x4037ad
inc esi
cmp esi, 0x11915
jl 0x403790
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
lea esp, [esp]
cmp dword [0x8fb080], 0x51f
jne 0x4037d2
lea eax, [ebp - 0x54]
push eax
call esi
sub edi, 1
jne 0x4037c0
mov eax, dword [0x8f9fd4]
mov dword [0x8fa614], eax
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4044a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db0c8]
jne 0x4044aa
repz ret
jmp fcn.00406c0e