joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x280
mov eax, dword [0x442630]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.00401c20
test al, al
je 0x401f7c
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00420e00
push str.ejectcd.exe
lea ecx, [esp + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x18c]
push str._sdrv_s
push edx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.0041fc13
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x78]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x198]
push eax
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401e7a
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00420e00
push str.netcard.exe
lea ecx, [esp + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x18c]
push str._s_s
push edx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0041fc13
add esp, 0x1c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x78]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x198]
push eax
push 0
call esi
test eax, eax
je 0x401efb
mov ecx, dword [esp + 8]
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebx
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00420e00
push str.SKYLINK_3G_MODEM.exe
lea ecx, [esp + 0x80]
push ecx
xor eax, eax
lea edx, [esp + 0x18c]
push str._s_s
push edx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0041fc13
add esp, 0x1c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x78]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x198]
push eax
push 0
call esi
test eax, eax
je 0x401f7c
mov ecx, dword [esp + 8]
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebx
mov ecx, dword [esp + 0x284]
pop esi
pop ebx
xor ecx, esp
call fcn.0041f80f
mov esp, ebp
pop ebp
ret

Function at 0x402a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402a50
lea ebx, [ebx]
cmp esi, eax
jae 0x402a54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402a40
cmp esi, eax
jb 0x402a5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4044b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4044fa
call fcn.00407c9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4044fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40453d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x404526
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404526
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40453a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405a6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x405a91
cmp dword [edi + 0x54], 0
jne 0x405a91
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00407c9f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00405a2e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40dd6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ddb6
call fcn.00407c9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ddb6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ddd2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d8e9
mov esi, eax
test edi, edi
je 0x40ddd0
test ebx, ebx
je 0x40ddd0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f024
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4328d0
call fcn.00420544
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f049
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40f08f
lea ecx, [ebp - 0x10]
call fcn.00403010
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004080e3
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402ff0
mov eax, esi
call fcn.0042061c
ret 8

Function at 0x41f80f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442630]
jne 0x41f819
repz ret
jmp fcn.0042424f

Function at 0x42e6ad
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.004243c7
and dword [ebp - 4], 0
cmp dword [0x446254], 0
mov ebx, eax
jne 0x42e75e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e80f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438d6c
push edi
call esi
test eax, eax
je 0x42e80f
push eax
call fcn.00424355
mov dword [esp], 0x438d5c
push edi
mov dword [0x446254], eax
call esi
push eax
call fcn.00424355
mov dword [esp], 0x438d48
push edi
mov dword [0x446258], eax
call esi
push eax
call fcn.00424355
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44625c], eax
call esi
push eax
call fcn.00424355
pop ecx
mov dword [0x446264], eax
test eax, eax
je 0x42e75e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424355
pop ecx
mov dword [0x446260], eax
mov eax, dword [0x446260]
cmp eax, ebx
je 0x42e7b6
cmp dword [0x446264], ebx
je 0x42e7b6
push eax
call fcn.004243d0
push dword [0x446264]
mov esi, eax
call fcn.004243d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e7b6
test edi, edi
je 0x42e7b6
call esi
test eax, eax
je 0x42e7ad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e7ad
test byte [ebp - 0xc], 1
jne 0x42e7b6
or dword [ebp + 0x10], 0x200000
jmp 0x42e7ef
mov eax, dword [0x446258]
cmp eax, ebx
je 0x42e7ef
push eax
call fcn.004243d0
pop ecx
test eax, eax
je 0x42e7ef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e7ef
mov eax, dword [0x44625c]
cmp eax, ebx
je 0x42e7ef
push eax
call fcn.004243d0
pop ecx
test eax, eax
je 0x42e7ef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446254]
call fcn.004243d0
pop ecx
test eax, eax
je 0x42e80f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e811
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49a384]
movzx ecx, byte [eax]
mov byte [0x49a388], cl
movzx edx, byte [eax + 1]
mov byte [0x49a389], dl
movzx ecx, byte [eax + 2]
mov byte [0x49a38a], cl
movzx edx, byte [eax + 3]
mov byte [0x49a38b], dl
movzx ecx, byte [eax + 4]
mov byte [0x49a38c], cl
movzx edx, byte [eax + 5]
mov byte [0x49a38d], dl
movzx ecx, byte [eax + 6]
mov byte [0x49a38e], cl
movzx edx, byte [eax + 7]
mov byte [0x49a38f], dl
movzx ecx, byte [eax + 8]
mov byte [0x49a390], cl
movzx edx, byte [eax + 9]
mov byte [0x49a391], dl
movzx ecx, byte [eax + 0xa]
mov byte [0x49a392], cl
movzx edx, byte [eax + 0xb]
mov byte [0x49a393], dl
movzx ecx, byte [eax + 0xc]
mov byte [0x49a394], cl
movzx edx, byte [eax + 0xd]
mov byte [0x49a395], dl
movzx ecx, byte [eax + 0xe]
mov byte [0x49a396], cl
movzx edx, byte [eax + 0xf]
push ebx
mov byte [0x49a397], dl
mov edx, 4
mov eax, 0x49a395
push esi
movzx ebx, byte [eax]
mov cl, byte [eax - 1]
mov byte [ebp - 3], bl
movzx ebx, byte [eax + 1]
mov byte [ebp - 2], bl
movzx ebx, byte [eax + 2]
mov byte [ebp - 1], bl
test dl, 3
jne 0x401117
movzx esi, byte [ebp - 2]
movzx ebx, byte [esi + str.cw]
movzx esi, byte [ebp - 1]
movzx ecx, cl
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 3], bl
movzx ebx, byte [esi + str.cw]
movzx esi, byte [ebp - 8]
mov byte [ebp - 2], bl
movzx ebx, byte [esi + str.cw]
mov esi, edx
shr esi, 2
xor cl, byte [esi + 0x48a398]
mov byte [ebp - 1], bl
mov bl, byte [eax - 0xd]
xor bl, cl
movzx ecx, byte [eax - 0xc]
xor cl, byte [ebp - 3]
mov byte [eax + 3], bl
mov byte [eax + 4], cl
movzx ecx, byte [eax - 0xb]
xor cl, byte [ebp - 2]
inc edx
mov byte [eax + 5], cl
movzx ecx, byte [eax - 0xa]
xor cl, byte [ebp - 1]
add eax, 4
mov byte [eax + 2], cl
cmp edx, 0x2c
jb 0x4010b6
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x49a438]
push edi
mov edi, 0x49a428
sub edi, esi
mov eax, esi
mov edx, 4
push ebx
lea ecx, [ecx]
mov ecx, 4
mov bl, byte [edi + eax]
xor byte [eax], bl
inc eax
dec ecx
jne 0x401425
dec edx
jne 0x401420
mov byte [ebp - 1], 9
mov dword [ebp - 8], 0x49a418
lea esp, [esp]
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
jmp 0x4014a0
mov eax, edi
mov ecx, 4
jmp 0x4014b0
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x48a298]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x4014b0
inc edi
dec edx
jne 0x4014a0
mov ecx, dword [ebp - 8]
mov eax, esi
mov edx, 4
nop
mov edi, 4
mov bl, byte [ecx]
xor byte [eax], bl
inc ecx
inc eax
dec edi
jne 0x4014d5
dec edx
jne 0x4014d0
call fcn.00401150
mov al, byte [ebp - 1]
sub dword [ebp - 8], 0x10
dec al
mov byte [ebp - 1], al
test al, al
jne 0x401440
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
mov eax, edi
mov ecx, 4
jmp 0x401560
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x48a298]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x401560
inc edi
dec edx
jne 0x401551
mov edi, 0x49a388
sub edi, esi
mov eax, esi
lea esi, [ecx + 4]
pop ebx
mov ecx, 4
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x401587
dec esi
jne 0x401582
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
sub edi, esi
mov ecx, 0x10
push ebx
mov bl, byte [edi + eax]
mov byte [eax], bl
inc eax
dec ecx
jne 0x4015b2
test edx, edx
je 0x4015ca
mov dword [0x49a384], edx
call section..text
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4015d7
mov ebx, dword [0x49a380]
mov eax, esi
mov ecx, 0x10
mov edi, edi
mov dl, byte [eax + edi]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4015e0
mov dword [0x49a438], esi
call fcn.00401400
mov ecx, ebx
mov eax, esi
sub ecx, esi
mov esi, 0x10
pop ebx
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x401600
mov eax, dword [ebp + 8]
pop edi
mov dword [0x49a380], eax
pop esi
pop ebp
ret

Function at 0x401620
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
cmp edx, eax
jbe 0x4016a8
xor esi, esi
cmp eax, edx
jae 0x40164e
jmp 0x401640
cmp byte [eax + ebx], 0x20
jne 0x40164c
inc eax
inc esi
cmp eax, edx
jb 0x401640
cmp eax, edx
je 0x4016a1
mov ecx, edx
sub ecx, eax
cmp ecx, 2
jb 0x401666
cmp byte [eax + ebx], 0xd
jne 0x401666
cmp byte [eax + ebx + 1], 0xa
je 0x40169c
mov cl, byte [eax + ebx]
cmp cl, 0xa
je 0x40169c
test esi, esi
jne 0x4016ba
cmp cl, 0x3d
jne 0x40167d
inc edi
cmp edi, 2
ja 0x4016ba
cmp cl, 0x7f
ja 0x4016ba
movzx ecx, cl
mov cl, byte [ecx + 0x48a118]
cmp cl, 0x7f
je 0x4016ba
cmp cl, 0x40
jae 0x401699
test edi, edi
jne 0x4016ba
inc dword [ebp - 4]
inc eax
cmp eax, edx
jb 0x401635
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x4016c4
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4016df
lea eax, [ecx + ecx*2]
lea eax, [eax + eax + 7]
shr eax, 3
sub eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
xor edx, edx
mov edi, 3
mov dword [ebp - 4], edx
cmp eax, edx
jbe 0x401758
mov cl, byte [ebx]
cmp cl, 0xd
je 0x401751
cmp cl, 0xa
je 0x401751
movzx ecx, cl
mov cl, byte [ecx + 0x48a118]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
or edx, ecx
mov ecx, dword [ebp - 4]
inc ecx
sub edi, ebx
mov dword [ebp - 4], ecx
cmp ecx, 4
jne 0x40174e
mov dword [ebp - 4], 0
test edi, edi
je 0x401739
mov ecx, edx
shr ecx, 0x10
mov byte [esi], cl
inc esi
cmp edi, 1
jbe 0x401746
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
cmp edi, 2
jbe 0x40174e
mov byte [esi], dl
inc esi
mov ebx, dword [ebp + 0x10]
inc ebx
dec eax
mov dword [ebp + 0x10], ebx
jne 0x4016f0
sub esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x402160
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x402190
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push edi
push 0
push 0x4000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
mov dword [ebp + 8], edi
push 0
test edi, edi
je 0x40220a
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 8], 0xc8
je 0x4021f3
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x400
call fcn.00417314
mov edi, eax
add esp, 4
test edi, edi
jne 0x40221f
mov eax, dword [ebp + 8]
push eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov dword [ebp - 4], 0
test eax, eax
je 0x40223b
push eax
call fcn.0045cdbe
add esp, 4
mov dword [ebx], 0
push 1
call fcn.0045cdf8
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x400
push edi
push edx
mov dword [ebx], eax
mov esi, 1
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4022a4
mov ecx, dword [ebx]
add eax, esi
push eax
push ecx
call fcn.0045ce8c
mov edx, dword [ebp - 4]
push edx
mov dword [ebx], eax
lea eax, [eax + esi - 1]
push edi
push eax
call fcn.0045ee20
mov edx, dword [ebp + 8]
add esi, dword [ebp - 4]
add esp, 0x14
lea ecx, [ebp - 4]
push ecx
push 0x400
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402267
mov eax, dword [ebx]
push edi
mov byte [eax + esi - 1], 0
call fcn.0045cf39
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4022e0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x4000000
push 0
push 0
mov edi, edx
push eax
push edi
mov ebx, ecx
mov dword [ebp - 0x40c], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x402340
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret 4
push 0x400
call fcn.00417314
add esp, 4
test eax, eax
jne 0x402375
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret 4
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4023b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x402418
lea esp, [esp]
push 0
lea edx, [ebp - 0x410]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x4023e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x40c]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret 4

Function at 0x4024d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x4024fa
mov eax, 0x104
mov ecx, esi
call fcn.00401f40
mov eax, dword [esi]
push edi
push 0x104
push eax
mov eax, dword [ebp + 8]
push 0x48a4d4
push eax
push str.uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402530
push ecx
push eax
call fcn.0045cd4e
add esp, 8
test eax, eax
js 0x402547
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402547
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, edi
pop edi
pop ebp
ret 4
push 0x80070057
call fcn.00402140
int3