joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cd3
call fcn.00402c9b
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d00
test cl, 7
je 0x402d00
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402ce1
cmp esi, 8
jb 0x402d84
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d0a
xor edx, edx
test esi, esi
jbe 0x402da4
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d8b
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4052d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052f8
cmp dword [ebp + 0xc], esi
jbe 0x4052ed
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405348
mov ecx, edi
call fcn.00405051
test al, al
je 0x40532e
cmp dword [ebp + 0xc], esi
jbe 0x40532e
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052d2
jmp 0x40534b
cmp dword [edi + 0xc], 1
jne 0x405343
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405343
xor eax, eax
jmp 0x40534b
or eax, 0xffffffff
jmp 0x40534b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405585
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405685
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055b2
dec eax
je 0x4055a7
dec eax
jne 0x4055b2
push 0xfffffffffffffff4
jmp 0x4055a9
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405601
cmp dword [ebp + 0xc], edi
jbe 0x40561c
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055d9
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x40561c
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055c9
jmp 0x405618
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x40567f
cmp byte [esi + 0x14], 0
je 0x40567f
cmp dword [esi + 0xc], 0
jne 0x40567f
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.00403304
test al, al
je 0x405672
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055ba
test eax, eax
jbe 0x4055ba
push 0
mov ecx, esi
call fcn.00404fdc
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054ed
jmp 0x4055ba
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403471
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8
Function at 0x405bdd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov bh, 0x47
adc al, 0x8d
je 0x405c1b
sbb byte [ecx - 0x1017438b], cl
std
invalid
dec esi
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x405c2f
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x405c20
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
scasb al, byte es:[edi]
rol esi, cl
inc ebp
scasd eax, dword es:[edi]
hlt
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004059db
sbb dl, dh
mov esi, 0xa8458dcb
push eax
call fcn.004059eb
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004059a0
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x405cc9
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004059db
adc byte [ebp + 0x458daccf], bl
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x4060b4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
jne 0x4060b2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4060d0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
invalid
ja 0x40612e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x406094
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40617b
dec eax
je 0x406172
sub eax, 3
je 0x406169
mov dword [ebp - 4], 0x40
jmp 0x406198
mov dword [ebp - 4], 4
jmp 0x40617e
mov dword [ebp - 4], 0x20
jmp 0x40617e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4061ca
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40614a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004059db
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4060be
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
jne 0x4060b2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4060d0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
invalid
ja 0x40612e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x406094
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40617b
dec eax
je 0x406172
sub eax, 3
je 0x406169
mov dword [ebp - 4], 0x40
jmp 0x406198
mov dword [ebp - 4], 4
jmp 0x40617e
mov dword [ebp - 4], 0x20
jmp 0x40617e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4061ca
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40614a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004059db
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060ec
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
jne 0x4060b2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4060d0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
invalid
ja 0x40612e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x406094
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40617b
dec eax
je 0x406172
sub eax, 3
je 0x406169
mov dword [ebp - 4], 0x40
jmp 0x406198
mov dword [ebp - 4], 4
jmp 0x40617e
mov dword [ebp - 4], 0x20
jmp 0x40617e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4061ca
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40614a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004059db
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406103
Capabilities:
Inspect section memory permissions

Disassembly:
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x406115
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40611e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x406128
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40610a
Function at 0x40b877
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
mov dword [0x419f70], esi
cmp dword [0x419f80], ebx
je 0x40b8a1
push 0x7d
call fcn.004098f7
push eax
push esi
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x419f80]
mov dword [0x419f6c], ebx
mov dword [0x419f68], esi
cmp eax, ebx
je 0x40b8f1
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41a824], ebx
jne 0x40b8e8
cmp byte [0x41a814], bl
jne 0x40b8e8
push ebx
push esi
push 0x111
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40b8e8
call fcn.0040a82d
cmp dword [0x419f78], 2
jne 0x40b8e3
cmp byte [0x419f88], bl
pop esi
pop ebx
je 0x40b900
jmp fcn.0040b729
ret

Function at 0x40b92f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x419f90], bl
je 0x40b9ab
cmp byte [0x418ed0], bl
je 0x40b9ab
push esi
push 0x418ed0
lea esi, [ebp - 0x408]
call fcn.0040b901
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40b9ab
push dword [ebp + 8]
call fcn.0040a384
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x419f90], 0
je 0x40ba32
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040b901
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40ba32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba29
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040a477
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x40bb8a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x419ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x419ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x419ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x419ed8], eax
je 0x40bbba
xor eax, eax
inc eax
jmp 0x40bbe3
cmp byte [0x419edf], 0
je 0x40bbc8
push 2
pop eax
jmp 0x40bbe3
push dword [ebp + 0xc]
push 0x40ae97
push dword [0x419f80]
push str.REPLACEFILEDLG
push dword [0x414c74]
call esi
dec eax
je 0x40bc44
dec eax
je 0x40bc23
dec eax
je 0x40bc3d
dec eax
jne 0x40bc16
push dword [ebp + 0xc]
push 0x40b193
push dword [0x419f80]
push str.RENAMEDLG
push dword [0x414c74]
call esi
test eax, eax
je 0x40bb94
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40bc55
dec eax
je 0x40bc2b
dec eax
jne 0x40bc55
mov byte [0x419edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40bc55
mov eax, dword [ebp + 8]
mov dword [0x419f78], 1
mov byte [eax], 0x43
jmp 0x40bc55
mov byte [0x419ede], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40d33c
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdc0
call fcn.0040e428
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40d378
push esi
call fcn.0040b485
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x419ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.00406ea5
test eax, eax
je 0x40d3ae
push 0x400
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40d3b6
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.00411585
push esi
mov ecx, 0x414c88
call fcn.004098e0
lea ecx, [ebp - 0x40]
call fcn.00406479
lea ecx, [ebp - 0x24]
call fcn.00406479
push 0x64
call fcn.0040aca1
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040aca1
push ebx
push 0x40cc24
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.0040648f
lea ecx, [ebp - 0x40]
call fcn.0040648f
lea ecx, [ebp - 8]
call fcn.004115fd
cmp byte [0x419f88], bl
je 0x40d477
call fcn.0040b729
push 0x80
push ebx
push 0x419ee8
call fcn.0040a289
cmp dword [0x41a824], ebx
jbe 0x40d49a
push dword [0x41a818]
call fcn.0040a205
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d4b4
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d4d3
cmp dword [0x419f78], ebx
je 0x40d4d3
push 0xff
mov ecx, 0x414c7c
call fcn.0040325c
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d4ec
push eax
call fcn.0040b6ea
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d85e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4011e0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4085f4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4086f8
push str.Exeprog
rep stosb byte es:[edi], al
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401220
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4085f4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4086f8
push str.Argv
rep stosb byte es:[edi], al
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401260
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xce8
call fcn.00401180
lea eax, [esp]
push 0x104
push eax
call fcn.004011e0
lea ecx, [esp + 0x314]
push 0x3e8
push ecx
call fcn.00401220
mov al, byte [esp + 0x10]
add esp, 0x10
test al, al
je 0x401331
push esi
lea edx, [esp + 0x20c]
push 0x104
push edx
call section..text
add esp, 8
lea eax, [esp + 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x20c]
push ecx
call esi
lea edx, [esp + 0x310]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x700]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x108]
lea eax, [esp + 0x310]
lea ecx, [esp + 4]
push 5
push edx
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea edx, [esp + 0x108]
push edx
call esi
xor eax, eax
pop esi
add esp, 0xce8
ret 0x10
xor eax, eax
add esp, 0xce8
ret 0x10
Function at 0x4013b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push str.__xml_version_1.0__encoding_UTF_8___
push 0x12d89f0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._metalink__file_
push 0x12d89f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x12d89f0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
lea esi, [eax - 0x20]
mov dword [ecx], 0
test esi, esi
jle 0x40140a
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [ecx]
mov dl, byte [eax + 0x12d8a10]
xor dl, byte [eax + 0x12d89f0]
mov byte [eax + edi], dl
inc dword [ecx]
cmp dword [ecx], esi
jl 0x4013f2
pop edi
pop esi
ret

Function at 0x4017a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40186e
push esi
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x5014
push 0x12ea9b8
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401844
push ebx
nop
mov ebx, dword [esp + 0x10]
test ebx, ebx
jbe 0x401843
xor ecx, ecx
test ebx, ebx
jbe 0x401827
mov edi, edi
movzx eax, byte [ecx + 0x12ea9b8]
add eax, esi
xor edx, edx
mov esi, 0xfff1
div esi
inc ecx
mov esi, edx
lea eax, [edi + esi]
xor edx, edx
mov edi, 0xfff1
div edi
mov edi, edx
cmp ecx, ebx
jb 0x401800
push 0
lea edx, [esp + 0x14]
push edx
push 0x5014
push 0x12ea9b8
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017f0
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
shl edi, 0x10
or edi, esi
push edi
push 0x40c404
push 0x12e0990
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
mov eax, 0x12e0990
pop ebp
pop ecx
ret
mov eax, 0x40c3fc
pop ebp
pop ecx
ret

Function at 0x401880
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x4018ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ad0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc8
push str.__c__start
push 0x1308a38
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, 0x1308a38
jmp 0x401af0
cmp word [eax], 0
je 0x401afb
add eax, 2
jne 0x401af0
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x401b35
movzx edx, word [ecx]
test dx, dx
je 0x401b35
cmp dx, 0x26
je 0x401b1a
cmp dx, 0x7c
jne 0x401b25
mov edx, 0x5e
mov word [eax], dx
add eax, 2
mov dx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
test ecx, ecx
jne 0x401b06
mov ecx, 0x22
mov word [eax], cx
xor edx, edx
mov word [eax + 2], dx
push str.cmd.exe
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push 0x1308a38
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esp, 0xc8
ret
Function at 0x401bc0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push esi
push 0
push 0
push 0
push 0
push str.formatgoer_67
mov esi, ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
je 0x401c44
push 0
push 0x1bb
push str.www.google.com
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
test eax, eax
je 0x401c12
push 0x800000
push 0
push 0
push 0
push 0
push 0x40c52c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x401c2f
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
je 0x401c44
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [esi + 0xc], eax
pop esi
ret