joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59c2d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ba090]
jne 0x59c2de
repz ret
jmp fcn.005a382c

Function at 0x5a777b
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.0059aa78
and dword [ebp - 4], 0
cmp dword [0x5bbe48], 0
mov ebx, eax
jne 0x5a782c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a78dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5a78dd
push eax
call fcn.0059aa06
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5bbe48], eax
call esi
push eax
call fcn.0059aa06
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5bbe4c], eax
call esi
push eax
call fcn.0059aa06
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5bbe50], eax
call esi
push eax
call fcn.0059aa06
pop ecx
mov dword [0x5bbe58], eax
test eax, eax
je 0x5a782c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0059aa06
pop ecx
mov dword [0x5bbe54], eax
mov eax, dword [0x5bbe54]
cmp eax, ebx
je 0x5a7884
cmp dword [0x5bbe58], ebx
je 0x5a7884
push eax
call fcn.0059aa81
push dword [0x5bbe58]
mov esi, eax
call fcn.0059aa81
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a7884
test edi, edi
je 0x5a7884
call esi
test eax, eax
je 0x5a787b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a787b
test byte [ebp - 0xc], 1
jne 0x5a7884
or dword [ebp + 0x10], 0x200000
jmp 0x5a78bd
mov eax, dword [0x5bbe4c]
cmp eax, ebx
je 0x5a78bd
push eax
call fcn.0059aa81
pop ecx
test eax, eax
je 0x5a78bd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a78bd
mov eax, dword [0x5bbe50]
cmp eax, ebx
je 0x5a78bd
push eax
call fcn.0059aa81
pop ecx
test eax, eax
je 0x5a78bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5bbe48]
call fcn.0059aa81
pop ecx
test eax, eax
je 0x5a78dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a78df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ab490
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5b9620], 0x1b77
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x5b9620], 0x2042
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5ab53a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
jne 0x5ab5d1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x5ab5bf
jmp 0x5ab5d1
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
je 0x5ab569
jmp 0x5ab5d1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
je 0x5ab4d0
jmp 0x5ab5d1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x5ab505
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x5ab53a
jmp 0x5ab505
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x5ab5d1
xor eax, eax
mov dword [0x5b9624], 0x2099
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x5ab5d1
xor eax, eax
mov dword [0x5b9620], 0xe2e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
je 0x5ab521
jmp 0x5ab5d1
mov eax, 1
mov dword [0x5b9624], 0xffffe8fd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret

Function at 0x5ab730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.005ab730]
mov dword [ebp - 4], eax
jmp 0x5ab741
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x5ab765
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x5ab765
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x5ab741
Function at 0x5ab780
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x5b962c], 0
mov byte [0x5b9630], 0
mov dword [0x5b9628], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x5ab7ca
mov dword [0x5b9620], 0x2f7
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x5b9620], 0x2469
mov eax, dword [0x5b9628]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5b9628]
add eax, 1
mov dword [0x5b9628], eax
cmp eax, 0x100
jl 0x5ab7ca
mov eax, dword [0x5b9620]
add eax, 0xffffdfaa
mov dword [0x5b9620], eax
mov dword [0x5b9628], 0
mov eax, 0x100
mov dword [0x5b9634], 0
mov dword [0x5b9624], 0x1383
mov ecx, dword [0x5b962c]
mov edx, dword [0x5b9628]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x5b9634], edi
mov dword [0x5b9620], 0x126c
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x5b962c], edx
mov ecx, dword [0x5b9628]
mov bl, byte [esi + ecx]
mov byte [0x5b9630], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x5b9630]
mov ecx, dword [0x5b962c]
mov byte [esi + ecx], bl
mov ecx, dword [0x5b9628]
add ecx, 1
mov dword [0x5b9628], ecx
cmp ecx, 0x100
jl 0x5ab812
jmp 0x5ab7b8
Function at 0x5ab990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [0x5b9620], 0x13ff
mov dword [ebp - 0x30], eax
call fcn.005ab5e0
xor ecx, ecx
mov dword [0x5b9620], 0x1376
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
jmp 0x5aba19
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.005aaea0
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x25418
mov edx, dword [ebp - 0x40]
add edx, 0x2d884
mov esi, dword [ebp - 0x30]
mov dword [esi], edx
mov dword [esi + 4], 0x152000
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0x20c0
mov dword [0x5b9620], 0x7f9
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x5c
mov ebx, edx
add ebx, edi
add ebx, 0x28
imul ecx, ecx, 0x5c
add edx, ecx
add edx, 0x58
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, ecx
add edx, eax
cmp esi, 0x175
mov eax, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
jne 0x5aba19
lea eax, [0x5ad4f9]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x5b9620]
add esi, 0xffffed1e
mov dword [0x5b9624], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
call fcn.005aaf30
mov dword [0x5b9620], 0x1bce
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.005abe70
mov ecx, eax
mov dword [0x5b963c], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x5b9620], 0x15ce
mov edx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
imul esi, eax, 0x5c
mov edi, edx
add edi, esi
add edi, 0x18
imul esi, eax, 0x5c
mov ebx, edx
add ebx, esi
add ebx, 0x28
mov esi, eax
add esi, 1
imul eax, eax, 0x5c
add edx, eax
add edx, 0x58
mov eax, dword [ebp - 0x40]
add eax, ecx
mov edx, dword [edx]
mov edi, dword [edi]
movzx ebx, word [ebx]
xor ebx, edx
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ebx
call fcn.005abda0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
cmp edx, 0x175
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
je 0x5ab9c7
jmp 0x5abaf5
Function at 0x5abea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x5b9628], 0
mov dword [0x5b962c], 0
mov dword [0x5b9638], 0
mov dword [0x5b9624], 0x109b
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x5abfd8
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, eax
add edx, 1
mov esi, dword [0x5b9628]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x5b9628], edx
mov esi, dword [0x5b962c]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x5b962c], edx
mov ecx, dword [0x5b9628]
mov bl, byte [edi + ecx]
mov byte [0x5b9630], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x5b9630]
mov ecx, dword [0x5b962c]
mov byte [edi + ecx], bl
mov dword [0x5b9624], 0x122e
mov ecx, dword [0x5b9628]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x5b962c]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x5b9638], edx
mov ecx, dword [0x5b9624]
add ecx, 0x1024
mov dword [0x5b9624], ecx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x5abef9
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b7a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4b7a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7a90
mov eax, 1
add ebx, ebx
jne 0x4b7ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7ac4
jne 0x4b7ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ae3
dec eax
add ebx, ebx
jne 0x4b7ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7aa8
add ebx, ebx
jne 0x4b7adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b7b35
xor ecx, ecx
sub eax, 3
jb 0x4b7afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b7b6a
sar eax, 1
mov ebp, eax
jmp 0x4b7b06
add ebx, ebx
jne 0x4b7b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
inc ecx
add ebx, ebx
jne 0x4b7b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
add ebx, ebx
jne 0x4b7b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7b16
jne 0x4b7b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b7b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b7b46
jmp 0x4b7a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b7b54
add edi, ecx
jmp 0x4b7a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b7b72
cmp byte [edi], 0x11
jne 0x4b7b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b7b77
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b7bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbe064]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbe1b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b7ba4
mov ecx, edi
jns 0x4b7bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbe1bc]
or eax, eax
je 0x4b7be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b7bc1
call dword [esi + 0xbe1cc]
mov ebp, dword [esi + 0xbe1c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b7c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x404db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404dd4
xor eax, eax
jmp 0x404e54
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404deb
xor eax, eax
jmp 0x404e54
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x404e37
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x404e37
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x404e0e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x404e43
xor eax, eax
jmp 0x404e54
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x404e51
xor eax, eax
jmp 0x404e54
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40de3d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x465148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040af2d
mov dword [ebp - 0x14], eax
cmp dword [0x467154], edi
jne 0x40df2e
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40debb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e00e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e00e
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e00e
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x467154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x467158], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46715c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x467164], eax
test eax, eax
je 0x40df2b
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x467160], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40df53
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40df46
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40df68
push 4
pop eax
jmp 0x40e010
cmp dword [ebp - 0x14], edi
je 0x40df68
push dword [0x467154]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40df4d
mov eax, dword [0x467160]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40dfc6
cmp dword [0x467164], esi
je 0x40dfc6
push eax
call ebx
push dword [0x467164]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40dfc6
test eax, eax
je 0x40dfc6
call ecx
test eax, eax
je 0x40dfbb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40dfbb
test byte [ebp - 8], 1
jne 0x40dfc6
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40dff6
mov eax, dword [0x467158]
cmp eax, esi
je 0x40dff3
push eax
call ebx
test eax, eax
je 0x40dff3
call eax
mov edi, eax
test edi, edi
je 0x40dff3
mov eax, dword [0x46715c]
cmp eax, esi
je 0x40dff3
push eax
call ebx
test eax, eax
je 0x40dff3
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x467154]
call ebx
test eax, eax
je 0x40e00e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40e010
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098de
leave
ret
Function at 0x405950
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4157c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 3
push 0
push 0
push accept
push 0x4159f8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x405a75
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405a6b
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405a61
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x405a57
cmp dword [ebp - 0x10], 0x100
jae 0x4059ee
jmp 0x405a57
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040c520
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405a05
jmp 0x405a57
mov edx, dword [ebp - 0x10]
sub edx, 0x100
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405a2a
mov edx, dword [ebp - 0x18]
push edx
call fcn.00409f40
add esp, 4
jmp 0x405a57
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
add ecx, 0x100
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00405a80
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
jmp 0x4059dd
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x416248], 0
jne 0x40a924
jmp 0x40a9fc
mov eax, dword [0x416248]
shl eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00409d30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a9fc
mov dword [ebp - 0x10], 0
jmp 0x40a95a
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x416248]
jae 0x40a994
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x416250]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x416250]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*8 + 4], ecx
jmp 0x40a951
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x416018
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a9e3
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3d
push 0x414bf0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 4]
push edx
call fcn.00409f40
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40ab70
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov byte [ebp - 0x101], 0
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40ac07
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x40ac07
mov dword [ebp - 0x10c], 0
jmp 0x40abce
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
cmp dword [ecx + edx*4], 0
je 0x40ac07
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 8]
jne 0x40ac05
mov byte [ebp - 0x101], 1
jmp 0x40ac07
jmp 0x40abbf
mov al, byte [ebp - 0x101]
mov esp, ebp
pop ebp
ret