joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c496
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x416ec0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x40c4e2
call esi
mov edi, eax
cmp edi, ebx
je 0x40c4c8
mov dword [0x416ec0], 1
jmp 0x40c4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40c4dd
push 2
pop eax
mov dword [0x416ec0], eax
jmp 0x40c4e2
mov eax, dword [0x416ec0]
cmp eax, 1
jne 0x40c55f
cmp edi, ebx
jne 0x40c4f3
call esi
mov edi, eax
cmp edi, ebx
je 0x40c568
cmp word [edi], bx
mov eax, edi
je 0x40c508
inc eax
inc eax
cmp word [eax], bx
jne 0x40c4fa
inc eax
inc eax
cmp word [eax], bx
jne 0x40c4fa
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40c556
push eax
call fcn.0040a86a
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x40c556
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x40c553
push dword [ebp - 4]
call fcn.0040a6f5
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x40c5b7
cmp eax, 2
je 0x40c56c
cmp eax, ebx
je 0x40c56c
xor eax, eax
jmp 0x40c5b9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40c568
cmp byte [esi], bl
je 0x40c589
inc eax
cmp byte [eax], bl
jne 0x40c57f
inc eax
cmp byte [eax], bl
jne 0x40c57f
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0040a86a
cmp eax, ebx
pop ecx
je 0x40c5b0
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f960
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416f14], ebx
push esi
push edi
jne 0x40f9e2
push 0x4028e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40fa1d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4028d4
push edi
call esi
test eax, eax
mov dword [0x416f14], eax
je 0x40fa1d
push 0x4028c4
push edi
call esi
push 0x4028b0
push edi
mov dword [0x416f18], eax
call esi
cmp dword [0x416d60], 2
mov dword [0x416f1c], eax
jne 0x40f9e2
push 0x402894
push edi
call esi
test eax, eax
mov dword [0x416f24], eax
je 0x40f9e2
push 0x40287c
push edi
call esi
mov dword [0x416f20], eax
mov eax, dword [0x416f20]
test eax, eax
je 0x40fa27
call eax
test eax, eax
je 0x40fa0e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416f24]
test eax, eax
je 0x40fa0e
test byte [ebp - 8], 1
jne 0x40fa27
cmp dword [0x416d6c], 4
jb 0x40fa21
or byte [ebp + 0x12], 0x20
jmp 0x40fa46
xor eax, eax
jmp 0x40fa56
or byte [ebp + 0x12], 4
jmp 0x40fa46
mov eax, dword [0x416f18]
test eax, eax
je 0x40fa46
call eax
mov ebx, eax
test ebx, ebx
je 0x40fa46
mov eax, dword [0x416f1c]
test eax, eax
je 0x40fa46
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416f14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ffc7
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40fff8
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40ffff
cmp ebx, dword [ebp + 8]
jae 0x40ffff
xor eax, eax
jmp 0x4101ef
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410010
xor eax, eax
inc eax
jmp 0x4101ee
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410026
cmp ecx, edx
jae 0x41016b
cmp dword [eax + 4], 0
je 0x41002f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410017
cmp dword [ebp + 8], 0
je 0x410051
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41016b
cmp eax, esi
jae 0x41016b
mov eax, dword [0x416f30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410076
cmp dword [esi*4 + 0x416f38], edi
je 0x41016f
inc esi
cmp esi, eax
jl 0x410064
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4101eb
cmp dword [ebp - 8], 0x1000000
jne 0x4101eb
test byte [ebp - 0xc], 0xcc
je 0x4100f4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4101eb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4101eb
cmp word [eax + 0x18], 0x10b
jne 0x4101eb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4101eb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4100f4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4100f4
test byte [ecx + 0x27], 0x80
jne 0x41016b
push 1
push 0x416f78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410008
mov ecx, dword [0x416f30]
test ecx, ecx
mov edx, ecx
jle 0x410128
lea eax, [ecx*4 + 0x416f34]
cmp dword [eax], edi
je 0x410128
dec edx
sub eax, 4
test edx, edx
jg 0x41011c
test edx, edx
jne 0x410159
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410135
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41014d
lea eax, [edx*4 + 0x416f38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41013b
cmp ecx, 0x10
jge 0x410159
inc ecx
mov dword [0x416f30], ecx
push 0
push 0x416f78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410008
xor eax, eax
jmp 0x4101ee
test esi, esi
jle 0x410008
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x416f78
call ebx
test eax, eax
jne 0x410008
cmp dword [esi*4 + 0x416f38], edi
je 0x4101c5
mov eax, dword [0x416f30]
lea esi, [eax - 1]
test esi, esi
jl 0x4101b3
cmp dword [esi*4 + 0x416f38], edi
je 0x4101af
dec esi
jns 0x4101a3
test esi, esi
jge 0x4101c3
cmp eax, 0x10
jge 0x4101be
inc eax
mov dword [0x416f30], eax
lea esi, [eax - 1]
jmp 0x4101c5
je 0x4101dd
xor ecx, ecx
test esi, esi
jl 0x4101dd
lea eax, [ecx*4 + 0x416f38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4101cb
push 0
push 0x416f78
call ebx
jmp 0x410008
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411608
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c7a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41166e
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x416d60]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x411672
xor eax, eax
jmp 0x41167f
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4127a7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x417224]
jae 0x412902
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x417240]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x412902
push 1
push esi
push ebx
call fcn.0040b72a
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x41290c
push 2
push esi
push ebx
call fcn.0040b72a
add esp, 0xc
cmp eax, 0xffffffff
je 0x41290c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4128af
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x412845
mov dword [0x416d54], 0xc
or esi, 0xffffffff
jmp 0x4128ef
push 0x8000
push ebx
call fcn.00412d50
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0x412860
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.0040b96f
add esp, 0xc
cmp eax, 0xffffffff
je 0x41287a
sub edi, eax
test edi, edi
jg 0x412855
jmp 0x412890
cmp dword [0x416d58], 5
jne 0x41288d
mov dword [0x416d54], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.00412d50
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4128ef
jge 0x4128ef
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040b72a
push ebx
call fcn.0040f873
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, 0xffffffff
jne 0x4128ef
mov dword [0x416d54], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x416d58], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0040b72a
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41290f
mov dword [0x416d54], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x100587a5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
jb 0x10055d2e
jmp 0x10054dc9
cmc
pushal
jmp 0x1007981d
enter 0x15ee, 8
popal
cld
or byte [ebp - 9], 0x4a
xchg esi, eax
js 0x10055925
pop es
fcomp st(4)
ja 0x100558fa
push ss
pop edx
jmp 0xa0d4d2a5
call fcn.100547e6
mov dh, byte [esi]
js 0x100558ed
pop edi
mov edx, 0x2a9b45f2
jle 0x100558b7
adc byte [ecx], bh
test byte [ebx + 0x64], cl
ret
fidiv dword [edi - 0x73]
sti
xchg dword [ecx], ebp
sbb dh, byte [0x27345c6]
cli
outsb dx, byte [esi]
popfd
inc ecx
adc ax, 0xce9b
and byte [edx + 0x361248ef], bl
or al, 0x22
add eax, 0xbcf5453c
cmp al, 0xb8
std
push esi
outsb dx, byte [esi]
lodsd eax, dword [esi]
salc
cmp al, 0xe5
rcr dword [eax + 0x1407024c], 0xbf
cwde
dec esp
add al, byte [edi]
adc al, 0xbf
pop ecx
adc bh, ah
sbb eax, dword [ecx + 0x5e37d488]
cmp al, 0x22
popal
jmp [esi - 0x27]
jmp 0x100547cb
cmp eax, dword [ebp - 0x10]
lea esp, [esp + 0x20]
jb 0x100558dc
pushal
mov byte [esp + 4], ch
lea esp, [esp + 0x20]
jae 0x10055d2e
not bl
rcl ch, 7
rol eax, cl
aad 7
or cl, bl
ror ecx, 0x19
mov ebx, eax
call fcn.1007742a
and dl, byte [edi + 0x5d]
enter 0xffffffffffffba5d, 0x75
jns 0x100798ac
xor byte [ecx + 0xbd5fe3a], cl
adc dword [edi + 0x4f52455c], ecx
mov cl, 0x97
call 0x927263a3
fdiv qword [ebp + 0x75]
call 0x1aea6664
pop es
or al, byte [edi]
push dword [edx]
imul eax, ebp, 0xfdb2b7f7
and bh, byte [ecx - 0x4a14b74a]
cwde
push esp
das
dec eax
jb 0x1007983a
sar dword [edi + 0x5f], 1
adc dl, byte [esi + esi*8 + 0x52]
rol ebx, 0x55
mov esi, 0x8789c9c0
cwde
xchg edi, eax
jg 0x100798e7
mov ebp, 0x239e560b
loopne 0x1007986e
test byte [ecx + 0x7a], cl
and eax, edi
dec edi
mov dword [ecx], edx
insd dword es:[edi], dx
dec ebp
push ds
sub dword [edi], esp
invalid
call 0x40fe7eb2
mov al, 0xa4
lodsd eax, dword [esi]
sbb ebp, eax
mov edx, 0xd5de64a6
sbb bl, byte [ebx - 1]
call 0xabc4ede9
aam 0x59
out dx, al
mov esp, 0x751d94e8
jmp 0xb879c8fc

Function at 0x100797d6
Capabilities:
Encode data using xor

Disassembly:
pushal
pushal
pushfd
mov dword [esp + 0x44], 0x1007709d
call fcn.1007407c
Function at 0x401e40
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42cb8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, dword [esp + 0x134]
lea ecx, [esp + 4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x12c], 0
call dword [edx + 0x4c]
lea eax, [esp + 8]
push eax
call fcn.00420e9f
mov eax, dword [eax]
mov esi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 0
push edx
push eax
mov dword [esp + 0x18], ecx
call fcn.00423d03
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004230ee
mov ecx, dword [esp + 0x124]
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 8

Function at 0x402d10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x402d37
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.0042c426
pop edi
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 8], edx
push esi
mov dword [esp + 0x10], edx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x402d78
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402d9d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call sub.WSOCK32.dll_htons
mov edx, dword [edi]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
mov ecx, edi
call dword [edx + 0x40]
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
Function at 0x403100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cd8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 2
call fcn.00402420
lea edi, [esi + 0x44]
xor ebx, ebx
mov dword [edi], 0x42f6a8
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov eax, dword [0x43b324]
mov dword [esi + 0x68], eax
mov ecx, dword [0x43b324]
mov dword [esi + 0x80], ecx
mov edx, dword [0x43b324]
mov dword [esi + 0x84], edx
mov eax, dword [0x43b324]
mov dword [esi + 0x88], eax
mov ecx, dword [0x43b324]
lea ebp, [esi + 0x9c]
mov dword [ebp], ecx
mov edx, dword [0x43b324]
mov dword [esi + 0xa0], edx
mov eax, dword [0x43b324]
mov dword [esi + 0xa4], eax
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x34], 0xb
mov dword [esi], 0x42f64c
call fcn.00422e63
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x38], 0xc
call fcn.00422e63
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 0xd
call fcn.00422e63
mov eax, dword [esp + 0x48]
mov ecx, esi
push eax
mov byte [esp + 0x40], 0xb
call fcn.00402570
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
mov dword [esi + 0x94], ecx
push edx
mov ecx, ebp
call fcn.004231db
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0xa0]
mov dword [esi + 0x98], eax
call fcn.004231db
lea edx, [esp + 0x44]
lea ecx, [esi + 0xa4]
push edx
call fcn.004231db
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push ecx
mov dword [esi + 0x3c], ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x43c740
mov dword [esi + 0xa8], eax
call fcn.0042315c
mov ecx, edi
call fcn.00405410
or edi, 0xffffffff
mov dword [esi + 0x74], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esp + 0x38]
mov dword [0x43c750], esi
mov byte [esp + 0x28], 1
call fcn.004230ee
lea ecx, [esp + 0x40]
mov byte [esp + 0x28], bl
call fcn.004230ee
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], edi
call fcn.004230ee
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x1c
Function at 0x4041f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42cf44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x43b324]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov cl, byte [0x43c74c]
xor edi, edi
test cl, 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x18], edi
jne 0x404249
mov dl, cl
push 0x404a90
or dl, 1
mov dword [0x43c748], eax
mov byte [0x43c74c], dl
call fcn.004159ba
add esp, 4
mov eax, dword [esi + 0x64]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40426e
push ecx
mov dword [esi + 0x64], edi
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x439218
call fcn.0042315c
mov ecx, esi
call fcn.00403a90
mov ecx, esi
call fcn.00403cd0
mov ebp, eax
mov eax, dword [esi + 0x64]
cmp eax, 7
jle 0x4042a4
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], ebx
call fcn.004230ee
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
ja 0x404a2a
jmp dword [eax*4 + 0x404a68]
mov ecx, dword [esi + 0x64]
mov edi, dword [esp + 0x18]
inc ecx
test edi, edi
mov dword [esi + 0x64], ecx
jne 0x404a42
push 0xfffffffffffffff8
mov ecx, esi
call fcn.00404ac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004230ee
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret

Function at 0x404db0
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404dfc
cmp dword [esp + 0x18], 2
jne 0x404dfc
mov eax, dword [esp + 0xc]
mov ecx, esi
cmp eax, 4
jne 0x404def
call fcn.00404e20
pop esi
add esp, 0x98
ret
call fcn.00405150
pop esi
add esp, 0x98
ret
lea ecx, [esp + 4]
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop esi
add esp, 0x98
ret
Function at 0x409d80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x390
push ebx
push esi
mov ebx, ecx
push edi
push 0x43972c
mov dword [ebx + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x409dee
push 0x439710
call fcn.00405970
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00429dd8
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x390
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439700
push eax
call esi
mov edx, dword [ebx + 0xc]
push 0x4396f0
push edx
mov dword [ebx], eax
call esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0xc]
push 0x4396e0
push eax
call esi
mov ecx, dword [ebx]
mov dword [ebx + 8], eax
test ecx, ecx
je 0x409eb8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x409eb8
test eax, eax
je 0x409eb8
lea ecx, [esp + 0x20c]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x409e54
push 0x4396cc
jmp 0x409e65
cmp word [esp + 0x20c], 0x101
je 0x409ea5
push 0x4396a0
call fcn.00405970
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00429dd8
call sub.WSOCK32.dll_WSACleanup
jmp 0x409ef6
pop edi
mov dword [ebx + 0x10], 1
mov eax, ebx
pop esi
pop ebx
add esp, 0x390
ret
push 0x439688
call fcn.00405970
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00429dd8
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x390
ret
Function at 0x409f30
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x409f4d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
mov esi, dword [esp + 0x38]
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x409f7c
push esi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x409f73
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebp, dword [ecx]
jmp 0x409f7e
mov ebp, eax
call dword [edi]
mov esi, eax
push 0x3e8
lea edx, [esp + 0x1c]
push 0x1c
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push ebx
push ebp
push esi
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
call dword [edi + 8]
cmp dword [esp + 0x1c], ebx
je 0x409fc6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 4
push esi
call dword [edi + 4]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x40a450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x6c]
call fcn.0042ae21
mov eax, dword [eax + 8]
push 0x439738
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a4a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40a4a7
push eax
mov eax, dword [eax + 8]
add eax, 2
shl eax, 4
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push ecx
mov dword [esi + 0x70], eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov ecx, esi
call fcn.004246b6
push 0
push 0x10000
push 0
mov ecx, esi
call fcn.0042753c
pop edi
mov eax, 1
pop esi
ret
Function at 0x40a8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d7e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 2
call fcn.00402420
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
push ecx
lea edx, [esp + 0x38]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x20], 3
mov dword [esi], 0x430400
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], eax
call fcn.00422e63
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x24], 4
call fcn.00422e63
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x2c], 5
call fcn.00422e63
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
mov byte [esp + 0x2c], 3
call fcn.00402570
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 1
call fcn.004230ee
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14], bl
call fcn.004230ee
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.004230ee
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x1c