joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027420
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100274c5
cmp dword [ebp - 0x1c], 1
je 0x100274da
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100274c5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
nop
lea edx, [ebp - 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100274a0
cmp dword [ebp - 0x1c], 1
je 0x100274eb
push 0x3e8
call ebx
add esi, 0x3e8
mov eax, 0x7530
sub eax, esi
jne 0x10027470
mov eax, dword [ebp - 0x24]
jmp 0x100274a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 1
je 0x100274ee
test eax, eax
jne 0x100274ee
pop ebx
mov eax, 0x5b4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.10028eba
mov esp, ebp
pop ebp
ret

Function at 0x10027500
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1002759c
cmp dword [ebp - 0x1c], 4
je 0x100275b1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1002759c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10027577
cmp dword [ebp - 0x1c], 4
je 0x100275c2
push 0x3e8
call ebx
add esi, 0x3e8
mov edx, 0x7530
sub edx, esi
jne 0x10027547
mov eax, dword [ebp - 0x24]
jmp 0x1002757d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 4
je 0x100275c5
test eax, eax
jne 0x100275c5
pop ebx
mov eax, 0x5b4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.10028eba
mov esp, ebp
pop ebp
ret
Function at 0x100277b0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038720
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1004f450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [eax], edi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push edi
push edi
mov dword [ecx], edi
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10027856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10027858
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x14]
push edx
call fcn.10028ad6
mov esi, eax
add esp, 4
cmp esi, edi
je 0x10027895
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x10027870
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [ecx], esi
mov dword [eax], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.100298ea
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100285b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038db6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1004f450]
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 eax, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x25c], eax
xor ecx, ecx
push edi
mov eax, 0x1003e860
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
call fcn.10001a60
mov dword [ebp - 4], edi
xor edx, edx
push edi
mov eax, 0x1003e860
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.10001a60
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov byte [ebp - 4], 1
push ecx
mov word [ebp - 0x218], ax
call fcn.1002f900
add esp, 0xc
cmp ebx, edi
je 0x1002877c
cmp word [ebx], di
je 0x10028756
mov dword [ebp - 0x258], ebx
jmp 0x10028680
movzx ebx, word [ebx]
test edi, edi
jne 0x100286a4
cmp ebx, 0x25
jne 0x10028694
lea edi, [ebx - 0x24]
jmp 0x10028725
lea esi, [ebp - 0x234]
call fcn.10001780
jmp 0x10028725
cmp ebx, 0x25
je 0x100286b6
lea esi, [ebp - 0x250]
call fcn.10001780
jmp 0x10028725
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x100286cb
lea eax, [ebp - 0x250]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10028740
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x100286f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100286f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.10001930
push 0
mov eax, 0x1003e860
lea esi, [ebp - 0x250]
call fcn.10001a60
xor edi, edi
mov ebx, dword [ebp - 0x258]
add ebx, 2
cmp word [ebx], 0
mov dword [ebp - 0x258], ebx
jne 0x10028680
jmp 0x10028752
push 0
mov eax, 0x1003e860
lea esi, [ebp - 0x234]
call fcn.10001a60
test edi, edi
jne 0x10028773
mov ecx, dword [ebp - 0x25c]
push 0
lea eax, [ebp - 0x234]
push eax
or eax, 0xffffffff
call fcn.10001820
xor edi, edi
mov esi, edi
jmp 0x1002878c
mov esi, 0x57
xor edi, edi
jmp 0x1002878c
mov dword [ebp - 0x254], 0x57
mov esi, dword [ebp - 0x254]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jb 0x100287a8
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10029653
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], ebx
jb 0x100287d8
mov eax, dword [ebp - 0x250]
push eax
call fcn.10029653
add esp, 4
mov eax, esi
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.10028eba
mov esp, ebp
pop ebp
ret
Function at 0x10028990
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc]
cmp eax, 0x24a
ja 0x100289d9
je 0x100289d3
sub eax, 0x182
je 0x100289d3
sub eax, 0x64
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 0x898
je 0x100289f0
cmp eax, 0x21d8
jne 0x100289d3
mov eax, 0x20000000
mov esp, ebp
pop ebp
ret
mov eax, 0x10000000
mov esp, ebp
pop ebp
ret

Function at 0x10028eba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004f450]
jne 0x10028ec4
repz ret
jmp fcn.1002c0d7
Function at 0x10036574
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002d1d0
and dword [ebp - 0x14], 0
cmp dword [0x10052018], 0
mov dword [ebp - 0x18], eax
jne 0x10036627
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100366cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100366cf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10052018], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1005201c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10052020], eax
call edi
push eax
call esi
mov dword [0x10052028], eax
test eax, eax
je 0x10036627
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10052024], eax
mov eax, dword [0x10052024]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10036680
cmp dword [0x10052028], ecx
je 0x10036680
push eax
call esi
push dword [0x10052028]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10036680
test ebx, ebx
je 0x10036680
call edi
test eax, eax
je 0x10036677
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10036677
test byte [ebp - 8], 1
jne 0x10036680
or dword [ebp + 0x10], 0x200000
jmp 0x100366b3
mov eax, dword [0x1005201c]
cmp eax, dword [ebp - 0x18]
je 0x100366b3
push eax
call esi
test eax, eax
je 0x100366b3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100366b3
mov eax, dword [0x10052020]
cmp eax, dword [ebp - 0x18]
je 0x100366b3
push eax
call esi
test eax, eax
je 0x100366b3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10052018]
call esi
test eax, eax
je 0x100366cf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100366d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028eba
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x38b846ff
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x589325f0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x4059d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3000]
push edi
or ebp, 0xffffffff
jmp 0x4059f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4059f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4059e8
mov eax, 1
add ebx, ebx
jne 0x405a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405a00
jne 0x405a1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405a00
xor ecx, ecx
sub eax, 3
jb 0x405a30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x405aa2
mov ebp, eax
add ebx, ebx
jne 0x405a3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x405a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x405a6c
inc ecx
add ebx, ebx
jne 0x405a58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x405a4d
jne 0x405a69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405a4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x405a8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x405a7d
jmp 0x4059ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x405a8c
add edi, ecx
jmp 0x4059ee
pop esi
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x405aeb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x503c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x405aa9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5040]
or eax, eax
je 0x405ae5
mov dword [ebx], eax
add ebx, 4
jmp 0x405ac6
call dword [esi + 0x5048]
mov ebp, dword [esi + 0x5044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x405b1f
sub esp, 0xffffff80
jmp 0x402eff
Function at 0x43fb10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cfc1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x504a4c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x43fc48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43fb76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c42cb
xor eax, eax
jmp 0x43fcbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c4408
push esi
lea ecx, [esp + 0xc]
call fcn.004c4697
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4f7d84
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43fc9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0043faa0
test eax, eax
jne 0x43fc9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.0043faa0
test eax, eax
jne 0x43fc9d
lea eax, [esp + 0x14]
push 0x4f7d60
push eax
call fcn.004b4630
mov esi, eax
add esp, 8
test esi, esi
jne 0x43fc7c
lea ecx, [esp + 0x14]
push 0x4f7d5c
push ecx
call fcn.004b45b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43fc7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43fc7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c43b8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43fb8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c42cb
xor eax, eax
jmp 0x43fcbf
mov byte [esi], 0
push 0x4f7d58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004c42cb
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x4463e6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x44640e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x459760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4598f8
cmp ebp, ebx
jle 0x4598f8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4597be
dec eax
or eax, 0xfffffff8
inc eax
je 0x4597c5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4597d4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4597db
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004c400c
add esp, 4
cmp eax, ebx
je 0x4597fc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004c400c
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4598ee
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4598d5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4598c1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4598b6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4598c4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4598c4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x459860
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x459851
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4042d0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.0040ae40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [str.oW]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45859c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.004042c0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4585a0]
mov edx, dword [0x4585a4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x45fd1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40435c
mov dword [0x45fd18], 0xedeb2e40
jmp 0x404377
cmp eax, 0x3eb
jne 0x404377
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45f7a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45fd1c], 0x9e6
mov dword [0x45fd14], 0xf4ea3dee
jne 0x4043b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x45fd1c], 0x213
jne 0x40444b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x8c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0x403f58
push 0x403fa8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x45fd1c], 0xc
jne 0x40445f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4077f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4574f8]
jne 0x4077fa
repz ret
jmp fcn.0040ca2e

Function at 0x40c653
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.00409b26
and dword [ebp - 4], 0
cmp dword [0x45d798], 0
mov ebx, eax
jne 0x40c704
push 0x401d34
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c7b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d28
push edi
call esi
test eax, eax
je 0x40c7b5
push eax
call fcn.00409ab4
mov dword [esp], 0x401d18
push edi
mov dword [0x45d798], eax
call esi
push eax
call fcn.00409ab4
mov dword [esp], 0x401d04
push edi
mov dword [0x45d79c], eax
call esi
push eax
call fcn.00409ab4
mov dword [esp], 0x401ce8
push edi
mov dword [0x45d7a0], eax
call esi
push eax
call fcn.00409ab4
pop ecx
mov dword [0x45d7a8], eax
test eax, eax
je 0x40c704
push 0x401cd0
push edi
call esi
push eax
call fcn.00409ab4
pop ecx
mov dword [0x45d7a4], eax
mov eax, dword [0x45d7a4]
cmp eax, ebx
je 0x40c75c
cmp dword [0x45d7a8], ebx
je 0x40c75c
push eax
call fcn.00409b2f
push dword [0x45d7a8]
mov esi, eax
call fcn.00409b2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c75c
test edi, edi
je 0x40c75c
call esi
test eax, eax
je 0x40c753
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c753
test byte [ebp - 0xc], 1
jne 0x40c75c
or dword [ebp + 0x10], 0x200000
jmp 0x40c795
mov eax, dword [0x45d79c]
cmp eax, ebx
je 0x40c795
push eax
call fcn.00409b2f
pop ecx
test eax, eax
je 0x40c795
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c795
mov eax, dword [0x45d7a0]
cmp eax, ebx
je 0x40c795
push eax
call fcn.00409b2f
pop ecx
test eax, eax
je 0x40c795
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d798]
call fcn.00409b2f
pop ecx
test eax, eax
je 0x40c7b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c7b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret