joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100454bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1007ada8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10045505
cmp word [ebx], dx
jne 0x10045505
or byte [eax + edi + 0x28], 4
jmp 0x1004550a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1004566d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1004564d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004554b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10045581
cmp eax, edx
jae 0x1004558f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10045526
jmp 0x1004566d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10045648
cmp dword [ebp - 0x18], 0
je 0x10045648
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007ada8]
test byte [eax + edi + 0x28], 0x48
je 0x1004561e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100455e2
mov word [esi], cx
jmp 0x10045619
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007ada8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1007ada8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007ada8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004566d
pop eax
cmp word [ebp - 4], ax
jne 0x1004562e
cmp esi, ebx
jne 0x1004562e
mov word [esi], ax
jmp 0x1004566a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10045dc1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004566d
push 0xd
pop eax
jmp 0x10045629
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007ada8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10045667
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004566d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004801b
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 0x100480b8
push ebx
push esi
call fcn.10047fe4
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.10046de0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10048065
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100480b7
push edi
push eax
call fcn.10043971
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10048085
call fcn.100421ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100480b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10046de0
add esp, 0x20
test eax, eax
jne 0x100480a4
push edi
call fcn.100421ab
jmp 0x100480ac
push ebx
call fcn.100421ab
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 0x1004b3b1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10040177
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004b420
cmp esi, dword [ebp - 4]
je 0x1004b41b
cmp dword [ebp + 0xc], 0
je 0x1004b41b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004b3f8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004af03
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004b422
xor eax, eax
inc eax
jmp 0x1004b422
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1004b487
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10040177
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10040177
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004b4fe
cmp word [ecx], dx
je 0x1004b4fe
mov eax, dword [0x100569cc]
push edi
dec eax
push eax
push 0x100568b8
call fcn.1004b426
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004b571
cmp word [eax], dx
je 0x1004b571
mov eax, dword [edi]
test eax, eax
je 0x1004b522
cmp word [eax], dx
je 0x1004b522
lea eax, [ebp - 0x10]
push eax
call fcn.1004ae09
jmp 0x1004b52b
lea eax, [ebp - 0x10]
push eax
call fcn.1004aea4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004b59b
mov eax, dword [0x100568b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100565a8
call fcn.1004b426
add esp, 0xc
test al, al
je 0x1004b59b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1004b566
cmp word [eax], di
je 0x1004b566
lea eax, [ebp - 0x10]
push eax
call fcn.1004ae09
pop ecx
jmp 0x1004b59d
lea eax, [ebp - 0x10]
push eax
call fcn.1004aea4
jmp 0x1004b563
mov eax, dword [edi]
test eax, eax
je 0x1004b588
cmp word [eax], dx
je 0x1004b588
lea eax, [ebp - 0x10]
push eax
call fcn.1004adbe
pop ecx
jmp 0x1004b59b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1004b666
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004b2ab
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1004b666
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1004b666
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1004b666
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004b5f3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100427ff
test ebx, ebx
je 0x1004b661
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100427ff
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004b666
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004b666
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004e4fc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1004b668
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cddc
leave
ret
Function at 0x1004e231
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004e1ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004e3a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004e3a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004e355
jg 0x1004e28d
test eax, eax
je 0x1004e34b
push 1
push 0x1000
call fcn.10041d19
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004e2b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004e342
push 0x8000
push ebx
call fcn.1004e0de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004e2d9
jg 0x1004e2d4
cmp ecx, 0x1000
jb 0x1004e2d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100434b5
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004e31e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004e2d4
jl 0x1004e305
test ecx, ecx
jne 0x1004e2c6
push dword [ebp - 0xc]
push ebx
call fcn.1004e0de
push esi
call fcn.100421ab
add esp, 0xc
xor ebx, ebx
jmp 0x1004e3ae
cmp byte [edi + 0x24], 0
je 0x1004e335
cmp dword [edi + 0x20], 5
jne 0x1004e335
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004e340
mov ebx, dword [edi + 0x18]
jmp 0x1004e342
xor ebx, ebx
push esi
call fcn.100421ab
pop ecx
jmp 0x1004e3ae
test ecx, ecx
jg 0x1004e317
jl 0x1004e355
test eax, eax
jae 0x1004e317
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10045dc1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004e375
cmp byte [edi + 0x1c], 0
je 0x1004e317
jmp 0x1004e3a6
push ebx
call fcn.10049250
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004e317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004e3ae
cmp byte [edi + 0x1c], 0
je 0x1004e3ab
mov ebx, dword [edi + 0x18]
jmp 0x1004e3ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10045dc1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10050150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005017d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005017d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401628
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40165a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401656
cmp esi, eax
jae 0x40165a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401648
cmp esi, eax
jb 0x401660
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4019a0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468710
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004534e0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov edi, dword [edx - 0xc]
add esp, 0xc
lea eax, [ebp - 0x10]
add edi, 8
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00424e90
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00424e90
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov edx, dword [eax - 0xc]
push ebx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp esi, ebx
je 0x401a65
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401a54
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.00401320
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x401a7a
xor eax, eax
jmp 0x401a8f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a80
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 0x10]
push edi
push ecx
mov ebx, eax
call fcn.00401320
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
test edi, edi
je 0x401ab0
push edi
call fcn.0044ee8c
add esp, 4
test esi, esi
je 0x401abd
push esi
call fcn.0044ee8c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401ae0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4686cb
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
mov dword [ebp - 0x414], ebx
push ebx
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], 0x400
mov byte [ebp - 0x410], bl
call fcn.004534e0
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
push ebx
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], ebx
test eax, 0xffff0000
jne 0x401b93
mov ecx, eax
movzx edi, cx
call fcn.004014c0
cmp eax, ebx
je 0x401ba0
push eax
mov eax, edi
mov edi, esi
call fcn.00401280
jmp 0x401ba0
lea ebx, [ebp - 0x410]
mov eax, esi
call fcn.004216b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b3cf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x10]
push esi
mov dword [edi], vtable.FCHttpRequest.0
call fcn.004017b0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x64], eax
mov byte [ebp - 4], 1
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x68], eax
mov byte [ebp - 4], 2
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x74], eax
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x78], eax
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x80], ebx
lea eax, [edi + 0x88]
push eax
mov dword [edi + 0x84], vtable.inner::FCAutoCSec.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x84], vtable.inner::CReceiveBuffer.0
mov dword [edi + 0xb4], 0xf
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xa0], bl
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd0], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 9
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
call fcn.00402e20
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x68]
push eax
lea eax, [edi + 0x64]
push eax
push esi
call fcn.004019a0
mov ecx, edi
call fcn.00402b20
push ebx
push ebx
push edi
mov dword [edi + 0xc0], eax
push 0x4026a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x5c], ebx
cmp eax, ebx
je 0x402490
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
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 0x10
Function at 0x402b20
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467718
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x402bc2
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ecx
push edx
push str._s:_d
lea edi, [ebp - 0x10]
call fcn.00428bb0
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x38]
add esp, 0xc
push 0
push 0
push ebx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402bd6
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x402bf1
mov eax, ecx
mov edx, dword [eax - 0xc]
push edx
push eax
push 0x2b
push edi
call ebx
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], 0
je 0x402c06
mov esi, eax
mov ecx, dword [esi - 0xc]
push ecx
push esi
push 0x2c
push edi
call ebx
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

Function at 0x402c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x402c35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xcc], 0
cmp dword [edi + 0x60], 4
jne 0x402c4c
or dword [edi + 0x40], 0x800000
or dword [edi + 0x40], 0x4000000
push esi
lea eax, [edi + 0x10]
lea esi, [ebp - 4]
call fcn.00401940
mov esi, dword [edi + 0x40]
mov ecx, dword [edi + 0x68]
mov eax, dword [eax]
mov edx, dword [edi + 0xc4]
push 0
push esi
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x402ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push edi
push 0x402960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xd0], eax
mov esp, ebp
pop ebp
ret
Function at 0x4046d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467208
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
jne 0x404763
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
sub eax, ecx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x404759
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [edi], ecx
lea eax, [ebp - 0x24]
lea ecx, [edi + 4]
call fcn.00422a30
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
mov ecx, edi
call fcn.00404520
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebx + 4]
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x10]
cmp eax, 0xea
je 0x404799
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
cmp edx, ecx
jae 0x4047bb
mov eax, ecx
mov ecx, edi
call fcn.00404520
mov esi, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404890
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46854b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
xor ecx, ecx
lea ebx, [edi + 8]
lea esi, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x10], ebx
mov word [esi], dx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
lea edx, [ebp + 0xc]
push edx
push ecx
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 0xc], 0
jne 0x40491b
mov dword [edi], 0
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 8
mov ecx, dword [ebx]
inc ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x404931
or eax, 0xffffffff
call fcn.004300b0
jmp 0x404942
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx]
mov dword [ebp + 0xc], ecx
jb 0x404951
mov eax, dword [esi]
jmp 0x404953
mov eax, esi
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404996
or eax, 0xffffffff
call fcn.004300b0
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 8
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov eax, dword [ebp + 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 8