joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d8660
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4d8693
push esi
call fcn.004e6a00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d868c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4d8719
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d8702
mov eax, dword [esi + 8]
test eax, eax
je 0x4d86b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d86fe
cmp eax, 2
je 0x4d8702
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d86aa
cmp eax, 3
je 0x4d86dd
cmp eax, 1
jne 0x4d86aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4d86aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d86aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d8740
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d8728
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004d8740
add esp, 4
pop esi
ret

Function at 0x4d8fb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4d8fd1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4d8fd1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4d8fd1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4f3490
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4f3533
test eax, eax
jbe 0x4f3533
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4f3533
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4f34de
xor esi, esi
jmp 0x4f34e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4f350f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00495df0
add esi, eax
push esi
mov ebx, esi
call fcn.00495df0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4f34f0
pop ebp
test edi, edi
pop edi
jne 0x4f3533
test ebx, ebx
je 0x4f3533
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005125c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4f3695
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4f37ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f37ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00526e39
mov esi, eax
test esi, esi
je 0x4f37ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4f37ad
mov ecx, esi
call fcn.004f3620
cmp edi, eax
jge 0x4f37ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4f3733
mov dword [esp + 0x34], 1
jmp 0x4f378e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4f37ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004f2be0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4fbd80
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00511a68
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.0052554c
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.00511a68
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.0052554c
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.0052554c
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.0052554c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x4fbe84
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.0052554c
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x4fbebf
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x6e2ad0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.0052554c
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x4fde50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4fde99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4fe310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5346d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004fdec0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004fdf40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004fdf40
lea ecx, [esi + 0xc]
call fcn.0052539a
lea ecx, [esi + 0x10]
call fcn.0052539a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ff4d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ff4d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ff4d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0052540f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0052540f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ff6c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ff726
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ff726
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ff707
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x500960
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6e2f1c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x500973
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5009b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6e2fc4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5009e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5009ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5009db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x500a08
mov bl, byte [esp + ecx + 0x4c]
jmp 0x500a0c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5009fd
xor ecx, ecx
mov eax, 0x6e2f2c
xor ebx, ebx
mov bl, byte [ecx + 0x6e2fd4]
cmp byte [esp + ebx + 0x14], 0
je 0x500a37
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6e2fec]
cmp byte [esp + ebx + 0x14], 0
je 0x500a4e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x500a1e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5009a7
lea edx, [esp + 0x84]
push edx
call fcn.00500a90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5277dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x527815
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0052586a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00525842
jmp 0x527821
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x528ed3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x528f15
call fcn.0052ea47
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x528f15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x528f0c
xor eax, eax
jmp 0x528f1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00528f23
pop edi
pop esi
pop ebx
ret 4

Function at 0x52ef77
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x52efa5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x52efc3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052eedd
jmp 0x52efc3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52efc3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052eedd
test edi, edi
mov eax, edi
jne 0x52efad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047d6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047c0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047dd
lea eax, [ebp - 0x10]
call fcn.004038b0
ret

Function at 0x405e46
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x405e81
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x405e68
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x405e79
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x405e83
inc edi
add eax, 0x28
cmp edi, esi
jb 0x405e5e
Function at 0x404200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c070]
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 + 0x38], 0
je 0x4043e4
cmp byte [ebx + 0x3d], 0
je 0x4043e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x404259
xor al, al
jmp 0x4043e6
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403ce0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4042ca
sub eax, 1
je 0x4042ce
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x404396
xor bl, bl
jmp 0x404398
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x404306
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0040c2c7
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x4042c3
cmp byte [ebx + 0x3d], 0
je 0x404396
test esi, esi
jne 0x404284
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
sub ecx, edi
cmp ecx, 8
jbe 0x40438c
lea esi, [edi + 8]
cmp esi, 0xfffffffe
ja 0x40438c
cmp edx, esi
jae 0x404374
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00404cc0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x404284
cmp edx, 0x10
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x40427e
test esi, esi
jne 0x404349
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
cmovae ecx, eax
mov byte [ecx], 0
jmp 0x40427e
push str.string_too_long
call fcn.004059fd
mov bl, 1
cmp edx, 0x10
jb 0x4043e0
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x4043d7
test byte [ebp - 0x28], 0x1f
je 0x4043b3
call fcn.0040beaa
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4043bf
call fcn.0040beaa
sub eax, ecx
cmp eax, 4
jae 0x4043cb
call fcn.0040beaa
cmp eax, 0x23
jbe 0x4043d5
call fcn.0040beaa
mov eax, ecx
push eax
call fcn.00406b4d
add esp, 4
mov al, bl
jmp 0x4043e6
mov al, 1
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.00406660
mov esp, ebp
pop ebp
ret
Function at 0x404b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d686
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004068b2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004056e3
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411b2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004119a9
Function at 0x10015e0
Capabilities:
Get hostname
Get networking parameters

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], ebx
cmp dword [ebp + 8], ebx
je 0x1001907
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
mov edi, 0xff
push 1
mov dword [ebp - 0x208], edi
call esi
test eax, eax
je 0x1002c98
lea eax, [ebp - 0x204]
push eax
push 0x2711
call fcn.01001708
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
mov dword [ebp - 0x208], edi
call esi
test eax, eax
je 0x1002ca4
lea eax, [ebp - 0x204]
push eax
push 0x2712
call fcn.01001708
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x1001905
push dword [ebp - 0x208]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1001905
lea eax, [ebp - 0x208]
push eax
push esi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x100184d
push dword [esi + 0x134]
call fcn.01001f19
push eax
call fcn.01001708
mov eax, dword [esi + 0x23c]
add eax, 0x272e
push eax
call fcn.01001708
pop ecx
pop ecx
cmp dword [esi + 0x240], ebx
jne 0x1002cb0
jmp 0x1001842
call fcn.01001708
pop ecx
pop ecx
jmp 0x10018a1
push 0x2738
call fcn.01001708
pop ecx
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push ebx
push 0x10003
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
mov esi, eax
cmp esi, ebx
je 0x1001905
xor edi, edi
cmp dword [esi + 4], ebx
jbe 0x10018a7
push 0xff
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push dword [esi + edi*4 + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x208], eax
cmp eax, ebx
jne 0x1002cba
inc edi
cmp edi, dword [esi + 4]
jb 0x1001875
push 0x10003
push esi
call sub.DNSAPI.dll_DnsFreeConfigStructure
cmp dword [ebp - 0x210], ebx
je 0x10018f1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.010014f5
test eax, eax
jl 0x10018f1
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x1001905
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
push 0x29cd
push 0x4268
call fcn.0100191b
cmp dword [ebp - 0x20c], ebx
je 0x1001905
push dword [ebp - 0x20c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01002713
leave
ret 8
mov word [ebp - 0x204], ax
jmp 0x100163d
mov word [ebp - 0x204], ax
jmp 0x1001670
push 0x2739
jmp 0x1001847
lea eax, [ebp - 0x204]
push eax
cmp edi, ebx
jne 0x1002ccf
push 0x2742
jmp 0x1001839
push 0x274c
jmp 0x1001839
Function at 0x100175f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1001770
push dword [ebp + 8]
sub eax, ecx
sar eax, 1
mov esi, eax
call fcn.01005048
test al, al
je 0x1002ef7
test esi, esi
jl 0x1002ec2
jle 0x10017d9
mov edi, 0x400
cmp esi, edi
mov eax, esi
jge 0x1002eca
jmp 0x1002ecc
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1002f2b
test eax, eax
je 0x1002ee4
add dword [ebp + 0xc], 0x800
sub esi, edi
test esi, esi
jg 0x100179f
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
push 8
pop ebx
jmp 0x10017d9
mov eax, edi
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10017c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 6
jne 0x10017d9
jmp 0x1002f3b
lea edi, [esi + esi]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x1002f3b
push eax
push eax
push edi
push ebx
push esi
push dword [ebp + 0xc]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10017ae
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10017db
Function at 0x1001f47
Capabilities:
Terminate process

Disassembly:
call fcn.01002133
push 0x10
push 0x1002038
call fcn.010029f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1007014
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1002054
xor esi, esi
inc esi
mov eax, dword [0x1007010]
cmp eax, esi
je 0x1002073
mov eax, dword [0x1007010]
test eax, eax
jne 0x1002010
mov dword [0x1007010], esi
push 0x1002030
push 0x1002024
call fcn.01001ef0
pop ecx
pop ecx
test eax, eax
jne 0x1002080
mov eax, dword [0x1007010]
cmp eax, esi
jne 0x1001fdb
push 0x1002020
push 0x1002018
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1007010], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001fe8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10070d0], ebx
jne 0x1002091
push dword [0x10070a8]
push dword [0x10070ac]
push dword [0x10070a4]
call fcn.010023a6
jmp 0x10020b3
mov dword [0x10073ac], esi
jmp 0x1001fb7
cmp eax, esi
jne 0x1002063
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001f82
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001f6e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001fb7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002114
push 0x10070d0
call fcn.010052c3
pop ecx
test eax, eax
je 0x1001ff4
push ebx
push 2
push ebx
call dword [0x10070d0]
jmp 0x1001ff4
add esp, 0xc
mov dword [0x10070bc], eax
cmp dword [0x10070b0], ebx
jne 0x10020fa
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10073ac], ebx
jne 0x1002108
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10070bc]
call fcn.0100211a
ret