joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43db20
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8498
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fe280]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, 0x5030e3
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ebx
call fcn.004b99c5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43db76
mov dword [eax], 0
mov dword [ebx], 0
cmp dword [edi], 0xffffffff
je 0x43dccb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
nop dword [eax]
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x43dc96
test eax, eax
je 0x43dc96
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x43dc99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
cmp ecx, 0xffffffff
je 0x43dc1b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43dc0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43dc1b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x43dc29
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x28]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00408570
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x43dc96
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x43dbd4
jmp 0x43dc99
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add dword [ecx], edx
test eax, eax
jne 0x43dcc2
test edx, edx
je 0x43dcbe
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x43db90
mov al, 1
jmp 0x43dccd
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x43dccb
mov dword [ecx], eax
xor al, al
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.00448da0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x440cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov ecx, 0x5030e9
call fcn.004b99c5
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x501ba8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x5018a8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x501aa8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x5019a8], al
inc esi
cmp esi, 0x100
jl 0x440dc6
pop esi
add esp, 0x80
ret

Function at 0x442bb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x442bc9
jmp 0x442c58
mov edx, dword [ebp - 4]
mov byte [edx + 4], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.00442590
movzx eax, al
test eax, eax
je 0x442c58
mov ecx, dword [ebp - 4]
call fcn.004425c0
mov ecx, eax
call fcn.0042d260
movzx ecx, al
test ecx, ecx
je 0x442c4e
push 0x7d0
mov ecx, dword [ebp - 4]
call fcn.004425c0
mov ecx, eax
call fcn.0042d060
movzx edx, al
test edx, edx
jne 0x442c4e
mov ecx, dword [ebp - 4]
call fcn.004425c0
mov ecx, eax
call fcn.0042d190
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x442c4e
push 0xfffffffffffffffe
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 4]
call fcn.0042d320
mov esp, ebp
pop ebp
ret
Function at 0x445780
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041dbd0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4457d4
mov eax, dword [ebp + 0x18]
mov dword [eax], 3
xor al, al
jmp 0x445982
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call fcn.0042dda0
mov ecx, eax
call fcn.0042ded0
movzx ecx, al
test ecx, ecx
jne 0x445800
mov edx, dword [ebp + 0x18]
mov dword [edx], 4
xor al, al
jmp 0x445982
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408570
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x445907
lea ecx, [ebp - 0x44]
call fcn.004045e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push ecx
call fcn.00448020
add esp, 4
movzx edx, al
test edx, edx
jne 0x44586c
mov eax, dword [ebp + 0x18]
mov dword [eax], 5
mov byte [ebp - 0x46], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404440
mov al, byte [ebp - 0x46]
jmp 0x445982
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00448310
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x4458b7
mov edx, dword [ebp + 0x18]
mov dword [edx], 5
mov byte [ebp - 0x47], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404440
mov al, byte [ebp - 0x47]
jmp 0x445982
cmp dword [ebp + 0x14], 2
jne 0x4458d5
lea eax, [ebp - 0x2c]
push eax
call fcn.00447d60
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004477f0
add esp, 4
push 4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [ebp - 0x44]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404440
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x45], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], 6
cmp dword [ebp + 0x10], 0
jne 0x44593a
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0041f200
add esp, 0xc
mov byte [ebp - 0x45], al
jmp 0x445951
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0041f1a0
add esp, 0xc
mov byte [ebp - 0x45], al
movzx eax, byte [ebp - 0x45]
test eax, eax
je 0x44596a
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov cl, byte [ebp - 0x45]
mov byte [ebp - 0x48], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404440
mov al, byte [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret
Function at 0x448460
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jbe 0x4484ae
cmp dword [ebp + 0xc], 0xffffffff
jbe 0x448481
mov dword [ebp - 0xc], 0xffffffff
jmp 0x448487
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_SystemFunction036
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x44846c
mov esp, ebp
pop ebp
ret
Function at 0x482dd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004829de

Function at 0x482de4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482b5f

Function at 0x4880ef
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004878c9

Function at 0x4880fa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00487b04

Function at 0x4886ec
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488473
Function at 0x4013fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401431
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40142e
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40143a
add edx, 0x28
cmp edx, esi
jne 0x40141c
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401437

Function at 0x401879
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018b8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018b8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018b8
cmp dword [ecx + 0x74], 0xe
jbe 0x4018b8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b3cd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b46a
push ebx
push esi
call fcn.0040b396
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b32c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b417
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b469
push edi
push eax
call fcn.004081f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b437
call fcn.00407810
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b468
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b32c
add esp, 0x20
test eax, eax
jne 0x40b456
push edi
call fcn.00407810
jmp 0x40b45e
push ebx
call fcn.00407810
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40fa4b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40fa65
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40fa7c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40fad4
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040bb06
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40fad4
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40fad4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40fad4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40face
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40fad0
xor bl, bl
mov al, bl
jmp 0x40fad6
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x413830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41385d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41385d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100017a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x100017d2
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000421f
mov esi, eax
cmp esi, ebx
je 0x10001859
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
jne 0x10001859
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
cmp dword [ebp + 8], ebx
je 0x1000184b
push dword [ebp + 8]
call fcn.10001f62
mov edi, eax
cmp edi, ebx
je 0x10001846
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, ebx
jne 0x1000183e
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x10001850
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10001850
push edi
call fcn.10002d67
jmp 0x10001850
push 8
pop esi
jmp 0x10001850
mov esi, 0xe8
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18

Function at 0x10001db8
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10002187
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.10004926
mov esi, eax
test esi, esi
je 0x10002205
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [0x1000a300]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x10], esi
je 0x100021cd
lea eax, [eax + 0x1000b9e8]
jmp 0x100021d3
lea eax, [eax + 0x1000b6e0]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
call fcn.100023d4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100021fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 1
call fcn.100023d4
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10002ed8
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.100039d5
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10003025
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x10002f0b
jne 0x10002f06
shr eax, 8
cmp al, 2
ja 0x10002f0b
mov dword [ebp + 8], ebx
jmp 0x10002f12
mov dword [ebp + 8], 4
push ebx
push ebx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push edi
mov dword [esi + 0x10], eax
call fcn.10002d67
cmp dword [esi + 0x10], ebx
je 0x10003025
push dword [esi]
call fcn.100039d5
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10003025
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp + 0xc], ebx
je 0x10002f63
push 4
lea eax, [ebp + 0xc]
push eax
push 3
push dword [esi + 0x10]
call edi
test eax, eax
je 0x10003025
push ebx
push 0x50
push dword [ebp - 4]
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push dword [ebp - 4]
mov dword [esi + 0x14], eax
call fcn.10002d67
cmp dword [esi + 0x14], ebx
je 0x10003025
push dword [esi + 4]
mov ebx, 0x100
mov dword [ebp + 8], ebx
call fcn.100039d5
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x10003025
push dword [ebp + 8]
mov eax, dword [0x1000a300]
push ecx
push ecx
push ecx
push dword [ebp - 4]
lea eax, [eax + 0x1000b838]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push dword [ebp - 4]
mov dword [esi + 0x18], eax
call fcn.10002d67
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10003025
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x10002fff
or dword [ebp + 8], ebx
push 4
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push 4
lea eax, [ebp + 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10003025
push 4
lea eax, [ebp + 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10003025
xor eax, eax
jmp 0x1000302b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 8
Function at 0x10003a27
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003af4
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003af4
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 2]
mov dword [ebp - 8], eax
push edi
shl eax, 2
push eax
call fcn.10001f62
mov edi, eax
cmp edi, ebx
je 0x10003af3
mov eax, dword [ebp - 8]
push esi
lea esi, [edi + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10003aec
mov ecx, dword [ebp - 4]
push 0x40
pop eax
mov word [esi + ecx*2 - 2], ax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10003aec
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push ebx
push ebx
lea ecx, [eax + eax + 2]
push ecx
push edi
push eax
push esi
push ebx
push 0xfde9
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10003aec
mov byte [edi + eax], bl
mov dword [ebp - 0xc], edi
jmp 0x10003af2
push edi
call fcn.10002d67
pop esi
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x10003e22
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x10003e40
mov eax, dword [0x1000a2c8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.10002381
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x10003ea6
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10003eb5
add eax, eax
push eax
push ebx
push dword [0x1000a290]
call edi
mov ebx, eax
test ebx, ebx
je 0x10003eb5
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10003e95
mov eax, dword [ebp - 4]
add eax, eax
mov edx, ebx
call fcn.1000538d
xor dword [esi], eax
push ebx
push 0
push dword [0x1000a290]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10003eb5
mov eax, dword [esi]
xor eax, dword [0x1000a2fc]
xor eax, 0x3b0760a5
mov dword [esi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003f0a
add eax, eax
push eax
push 0
push dword [0x1000a290]
call edi
mov edi, eax
test edi, edi
je 0x10003f0a
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
je 0x10003efb
mov eax, dword [ebp - 4]
add eax, eax
mov edx, edi
call fcn.1000538d
xor dword [esi + 0xc], eax
push edi
push 0
push dword [0x1000a290]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret

Function at 0x10004634
Capabilities:
Receive http response

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x10004646
call fcn.10005dea
test eax, eax
jne 0x1000464e
mov eax, esi
pop esi
jmp fcn.100073d1
pop esi
ret