joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4281b1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041daa0
mov eax, dword [0x439cb8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00423860
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4282e4
push 2
push esi
push dword [ebp + 8]
call fcn.00423860
add esp, 0xc
cmp eax, ebx
je 0x4282e4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x428284
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041c590
push 0x8000
push dword [ebp + 8]
call fcn.004285aa
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x42823a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042322a
add esp, 0xc
cmp eax, 0xffffffff
je 0x42825a
sub edi, eax
test edi, edi
jg 0x428232
jmp 0x428272
call fcn.0041d787
cmp dword [eax], 5
jne 0x42826f
call fcn.0041d77e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004285aa
pop ecx
pop ecx
jmp 0x4282cc
jge 0x4282cc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423860
push dword [ebp + 8]
call fcn.00426ceb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4282cc
call fcn.0041d77e
mov dword [eax], 0xd
call fcn.0041d787
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00423860
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4282e6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041f19a
leave
ret

Function at 0x4299b3
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push eax
mov ecx, esi
call fcn.00429962
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x429a42
Capabilities:
Check http status code
Create http request

Disassembly:
mov eax, 0x42bf27
call fcn.0041c1e4
sub esp, 0x88
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x58], ebx
jne 0x429b95
cmp dword [esi + 0x5c], ebx
jne 0x429b95
cmp dword [esi + 0x34], 0x10
mov dword [ebp - 0x10], ebx
jb 0x429a67
mov eax, dword [esi + 0x20]
jmp 0x429a6a
lea eax, [esi + 0x20]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x58], eax
je 0x429bb2
push edi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00401824
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
cmp edi, eax
mov dword [ebp - 4], ebx
je 0x429b17
push 0x42ecb8
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0040870f
lea ecx, [edi + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.00413b28
push 0x430314
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
call fcn.0040870f
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00403a93
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.00401ef6
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401ef6
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401ef6
add edi, 0x38
cmp edi, dword [esi + 0x40]
jne 0x429a9e
lea eax, [esi + 0x54]
push eax
mov ecx, esi
call fcn.004299dc
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
pop edi
jae 0x429b2f
lea ecx, [ebp - 0x2c]
cmp dword [esi + 0x18], 0x10
jb 0x429b3a
mov eax, dword [esi + 4]
jmp 0x429b3d
lea eax, [esi + 4]
push ebx
push 0x4400800
push dword [ebp - 0x1c]
push ecx
push eax
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [esi + 0x5c], eax
je 0x429ba3
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x429ba3
cmp dword [ebp - 0x10], 0xc8
je 0x429b8a
cmp dword [ebp - 0x10], 0xce
jne 0x429ba3
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00401ef6
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00401ef6
mov ecx, esi
call fcn.0042984d
mov eax, dword [ebp - 0x10]
sub eax, 0x191
je 0x429bde
sub eax, 6
je 0x429bde
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
push esi
call fcn.00429909
push 0x435f64
lea eax, [ebp - 0x78]
jmp 0x429bf0
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00429925
push 0x436e58
lea eax, [ebp - 0x54]
push eax
call fcn.0041c394
int3
Function at 0x10397649
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec ah
sub bp, di
mov ebp, esp
cwde
rcl ah, 7
movsx ax, cl
sub esp, 0x18
push edi
mov dword [esp], esi
rcl al, cl
cwde
push edi
setno al
push ebx
sal al, cl
push edx
rol eax, 0x12
mov eax, dword [ebp + 8]
stc
cmp edx, 0xdfadb45f
bt esi, esp
test eax, eax
pushal
lea esp, [esp + 0x20]
je 0x1028b927
bsr si, sp
sbb edx, eax
shr dh, cl
cmc
mov esi, dword [eax + 0x3c]
shr dl, 6
dec dh
cmp dh, 0x84
push ebp
add esi, eax
dec dh
pop edx
shrd edx, eax, 0x1a
mov edx, dword [esi + 0x78]
bt esi, edi
pushal
test edx, edx
mov byte [esp + 0xc], cl
pushal
lea esp, [esp + 0x40]
jno 0x10385c4e
pushfd
lea esp, [esp + 4]
je 0x1028b927
shrd cx, bx, 0xc
pushfd
adc cx, 0x850a
add edx, eax
bt di, bp
clc
cmp sp, 0x82ed
cmp dl, 0xa5
mov ecx, dword [esi + 0x7c]
mov byte [esp], 0x19
add ecx, edx
cmp bl, bl
mov dword [ebp - 0x10], ecx
bsr cx, cx
mov ecx, dword [ebp + 0xc]
pushal
pushfd
cmp ecx, 0xffff
pushfd
jmp 0x1029011f
call fcn.10394a6f
push esi
das
push cs
dec esi
arpl word [ecx - 9], di
push es
out dx, al
ror ch, 0xd0
mov edi, 0xa09de994
mov byte [0x8957b35b], al
jmp 0xc6eb7d9a
sub ah, 0x6d
push ebp
movzx ax, cl
adc ah, dl
jbe 0x1028f71f
mov ebp, esp
cwde
adc ah, 0xc
sub esp, 0x18
shrd ax, bx, 0xd
jmp 0x10389d1b

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402925
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00402c22
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x402954
push 4
push dword [esp + 0x18]
call fcn.0040d0ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x4024db
push ebp
push ebp
call fcn.0041580b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x402976
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00409b67
int3

Function at 0x406dac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x406e2c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x406e2b
push ebx
mov ebx, 0x485d20
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42c5b8
mov byte [edi + esi], al
call fcn.0041296e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x406dce
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00406861
pop edi
pop ebp
ret 0x14

Function at 0x40b5eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40b60c
jl 0x40b603
test edi, edi
jne 0x40b60c
xor eax, eax
xor edx, edx
jmp 0x40b6cd
cmp dword [ebx + 0x38], 0
je 0x40b621
push eax
push edi
push dword [ebp + 8]
call fcn.0040b6d3
jmp 0x40b6cd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b668
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b668
cmp eax, edi
jb 0x40b642
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e040
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40b66e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b6c2
mov ecx, ebx
call fcn.0040ae85
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b6ad
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00416ce3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40b6c2
jmp 0x40b680
test edx, edx
je 0x40b6c2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416ce3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40db9f
Capabilities:
Parse pe header

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

Function at 0x41d51d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4309a4
push 0x43099c
push str.FlsAlloc
push 0x1e
call fcn.0041d34a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d551
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c184]
call esi
jmp 0x41d557
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d59b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4309b4
push 0x4309ac
push str.FlsGetValue
push 0x20
call fcn.0041d34a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d5d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420e8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420b30

Function at 0x420e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420cbf

Function at 0x421293
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040dff0
mov eax, dword [0x483dc0]
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.0041ea5f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4212d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421431
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042aa20
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 + 0x486770]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422032
mov ecx, dword [esi*4 + 0x486770]
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 0x42142a
cmp eax, dword [edi + ecx + 0x24]
jne 0x42142a
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 0x42142a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422032
add esp, 0x14
test edx, edx
jl 0x42142a
jg 0x4213a0
test eax, eax
jb 0x42142a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42142a
jl 0x4213ba
cmp dword [ebp - 0x1008], eax
ja 0x42142a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4213d8
test ebx, ebx
je 0x421411
cmp ecx, edi
jae 0x421411
mov al, byte [ecx]
cmp al, 0xd
jne 0x4213f2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4213fe
cmp byte [ecx + 1], 0xa
jne 0x4213fe
inc ecx
jmp 0x4213fe
movzx eax, al
movsx eax, byte [eax + 0x484088]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4213d8
cmp edx, ebx
jne 0x4213d8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42142f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d408
leave
ret
Function at 0x4214d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486770]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421510
cmp byte [ebx], 0xa
jne 0x421510
or byte [eax + edi + 0x28], 4
jmp 0x421515
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421613
mov al, byte [edx]
cmp al, 0x1a
je 0x4215f5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421544
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421569
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421573
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421526
jmp 0x421613
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4215f0
cmp dword [ebp - 0xc], 0
je 0x4215f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486770]
test byte [eax + edi + 0x28], 0x48
je 0x4215ca
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4215b5
mov byte [esi], dl
jmp 0x4215c6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486770]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421613
cmp byte [ebp - 1], 0xa
jne 0x4215d9
cmp esi, ebx
jne 0x4215d9
mov byte [esi], 0xa
jmp 0x421612
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421613
mov byte [esi], 0xd
jmp 0x421612
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42160f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421613
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42161c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486770]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42165f
cmp word [esi], dx
jne 0x42165f
or byte [edi + eax + 0x28], 4
jmp 0x421664
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4217b7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x421797
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4216a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4216dc
cmp eax, edx
jae 0x4216e8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42167e
jmp 0x4217b7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421793
cmp dword [ebp - 0x14], 0
je 0x421793
mov eax, dword [ebx*4 + 0x486770]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42176b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421734
mov word [esi], cx
jmp 0x421767
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486770]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486770]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486770]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4217b7
pop ebx
cmp word [ebp - 4], bx
jne 0x42177c
cmp esi, dword [ebp + 0xc]
jne 0x42177c
mov word [esi], bx
jmp 0x4217b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4217b7
push 0xd
jmp 0x4217b0
mov ecx, dword [ebx*4 + 0x486770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4217ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4217b7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423452
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 0x4234ef
push ebx
push esi
call fcn.0042341b
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.004221fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42349c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4234ee
push edi
push eax
call fcn.0041dbb9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4234bc
call fcn.0041cb79
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4234ed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004221fc
add esp, 0x20
test eax, eax
jne 0x4234db
push edi
call fcn.0041cb79
jmp 0x4234e3
push ebx
call fcn.0041cb79
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 0x42a820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a84d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a84d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x240b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x240b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x240b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x240b06a
add dl, dl
jne 0x240b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x240b0dc
xor eax, eax
add dl, dl
jne 0x240b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x240b17d
add dl, dl
jne 0x240b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x240b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x240b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x240b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x240b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x240b075
mov eax, 1
add dl, dl
jne 0x240b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x240b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x240b0e1
sub eax, ebx
mov ebx, 1
jne 0x240b128
mov ecx, 1
add dl, dl
jne 0x240b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x240b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x240b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x240b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x240b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x240b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x240b136
cmp eax, 0x7d00
jae 0x240b16d
cmp eax, 0x500
jb 0x240b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x240b075
cmp eax, 0x7f
ja 0x240b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x240b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x240b19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x240b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405846
Capabilities:
Parse pe header

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