joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a2fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42a423
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a104
mov esi, eax
mov eax, dword [0x503b58]
cmp byte [eax], 0
je 0x42a3c9
mov eax, dword [0x503954]
call fcn.00407a58
call fcn.00406f4c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42a2cc]
call fcn.0040cf5c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42a43c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42a405
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x503904]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x507634]
call fcn.0040d62c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a42a
lea eax, [ebp - 4]
mov edx, dword [0x42a2cc]
call fcn.0040d080
pop eax
jmp eax

Function at 0x42c9dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a5b4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004102a8
mov edi, eax
cmp edi, 0x104
jbe 0x42c987
mov eax, edi
add eax, eax
call fcn.00406dd8
mov esi, eax
jmp 0x42c989
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004102a8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42c9c2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42c9ac
mov eax, esp
cmp esi, eax
je 0x42c9cf
mov eax, esi
call fcn.00406df4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42ca08
cmp bl, 0
je 0x42ca04
cmp bl, 0x41
jl 0x42c9ff
cmp bl, 0x5a
jg 0x42c9ff
or bl, 0x20
xor al, bl
inc esi
jmp 0x42c9e3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42c948

Function at 0x42d324
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040abd0
add esp, 0x800
pop ebx
ret
Function at 0x42fad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42faee
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42fb06
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42fb01
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42fb0b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42fb79
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42fbc2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42fb37
inc dword [ebp - 0xc]
jmp 0x42fb4f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42fb4f
cmp dword [ebp - 0xc], 0
jle 0x42fb4f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42fb71
xor eax, eax
jmp 0x42fb6d
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42fb6c
mov eax, esi
jmp 0x42fbc5
inc eax
cmp eax, ecx
jle 0x42fb59
inc esi
cmp esi, dword [ebp - 8]
jl 0x42fb23
jmp 0x42fbc2
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42fbc2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42fb9a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42fbbc
xor eax, eax
jmp 0x42fbb8
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42fbb7
mov eax, esi
jmp 0x42fbc5
inc eax
cmp eax, ecx
jle 0x42fba4
inc esi
cmp esi, dword [ebp - 8]
jl 0x42fb82
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42fdb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42fdd1
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42fddf
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42ff01
test ebx, ebx
jl 0x42ff01
test esi, esi
jle 0x42ff01
mov eax, dword [ebp - 8]
call fcn.0040ab34
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040ab34
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42fe9e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42ff01
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42fe83
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42fe52
inc dword [ebp - 0x14]
jmp 0x42fe62
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42fe62
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42fe6d
or eax, 0xffffffff
jmp 0x42fe83
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42fe80
inc eax
jmp 0x42fe83
or eax, 0xffffffff
test eax, eax
jl 0x42fe8b
cmp esi, eax
jg 0x42fe40
cmp esi, eax
jg 0x42fe96
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42ff04
inc edx
dec dword [ebp - 0x1c]
jne 0x42fe3c
jmp 0x42ff01
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42ff01
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42fee8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42fec7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42fed2
or eax, 0xffffffff
jmp 0x42fee8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42fee5
inc eax
jmp 0x42fee8
or eax, 0xffffffff
test eax, eax
jl 0x42fef0
cmp esi, eax
jg 0x42feb0
cmp esi, eax
jg 0x42fefb
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42ff04
inc edx
dec dword [ebp - 0x1c]
jne 0x42feac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x440238
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x440240
mov eax, edx
pop esi
pop ebx
ret

Function at 0x442eb4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x442ecb
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x442ebb
mov eax, ecx
pop ebx
ret
Function at 0x4573a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4573b4
add esp, 0xfffffff0
call fcn.0040886c
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x451324]
call fcn.00475e00
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x456370]
call fcn.00478bb4
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x456370]
call fcn.00478bb4
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x457409
call fcn.004088c4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bb724
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4bb767
cmp byte [ebx + 0x11], 0
jne 0x4bb767
cmp byte [ebx + 0x24], 0
jne 0x4bb767
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4bb77e
mov ecx, dword [0x503b08]
mov dl, 1
mov eax, dword [0x48df8c]
call fcn.0042a588
call fcn.0040973c
pop ebx
ret
mov ecx, dword [0x503b08]
mov dl, 1
mov eax, dword [0x48df8c]
call fcn.0042a588
call fcn.0040973c
pop ebx
ret

Function at 0x4bc0ec
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4bc13a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004bb5d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bc153
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4bc15c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004bb5d0
dec esi
jne 0x4bc17e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4dccb0
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x4dcd15
mov eax, dword [esp]
call fcn.004dcf58
test al, al
je 0x4dcd15
mov eax, dword [esp]
call fcn.004dcd6c
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x4dccf8
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x4dcd15
cmp ax, 0x5a
ja 0x4dcd15
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e6778
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x5003e4]
cmp edx, 4
mov eax, ecx
jl 0x4e6780
pop ebp
ret
Function at 0x4e679c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x5007e4]
cmp edx, 4
mov eax, ecx
jl 0x4e67a4
pop ebp
ret
Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401430
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
test eax, eax
je 0x401460
mov eax, 2
add esp, 0x1ac
ret
mov eax, dword [esp + 0x10]
cmp al, 2
je 0x40147c
call sub.WS2_32.dll_WSACleanup
mov eax, 2
add esp, 0x1ac
ret
shr ax, 8
cmp al, 2
jne 0x401468
call fcn.004027cc
jmp 0x401456

Function at 0x40148c
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x65c008]
lea edx, [eax + 1]
mov dword [0x65c008], edx
test eax, eax
jne 0x40154c
push ebx
sub esp, 0x58
mov dword [sub.msvcrt.dll_malloc], 0x598f08
mov dword [sub.msvcrt.dll_free], 0x598f20
mov dword [sub.msvcrt.dll_realloc], 0x598ef0
mov dword [sub.msvcrt.dll__strdup], 0x593e80
mov dword [section..data], 0x598f40
test byte [esp + 0x60], 1
jne 0x401550
test byte [esp + 0x60], 2
je 0x4014fc
call fcn.00401430
test eax, eax
je 0x4014fc
mov eax, 2
add esp, 0x58
pop ebx
ret
call sub.KERNEL32.dll_GetACP
mov ebx, eax
mov dword [esp], 0x5a3080
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40155c
call fcn.00402bc0
test eax, eax
jne 0x4014ef
mov dword [esp], 0
call sym.curl.exe_libssh2_init
test eax, eax
jne 0x4014ef
test byte [esp + 0x60], 4
je 0x40153d
mov dword [0x65c010], 1
mov eax, dword [esp + 0x60]
mov dword [0x65c00c], eax
xor eax, eax
jmp 0x4014f4
xor eax, eax
ret
call fcn.00403368
test eax, eax
je 0x4014ef
jmp 0x4014df
test ebx, ebx
je 0x401513
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.CHARSETcp_u
mov dword [esp + 4], 0x3c
lea ebx, [esp + 0x14]
mov dword [esp], ebx
call sym.curl.exe_curl_msnprintf
mov dword [esp], ebx
call sub.msvcrt.dll__putenv
jmp 0x401513
Function at 0x403be4
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], 0
test eax, eax
je 0x403c78
mov esi, dword [esp + 0x54]
test esi, esi
je 0x403c0b
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x403c1c
mov ebx, 0x5a
mov eax, ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5a3175
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x403c0b
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x403c84
mov ebx, 0x5a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403c6c
mov dword [esp], eax
call dword [0x59b00c]
mov dword [esp + 0x28], 0
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x403c10
xor ebx, ebx
mov eax, ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_ftell
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x403c4e
cmp ebx, 0x100000
ja 0x403c4e
mov dword [esp], ebx
mov eax, ebx
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00413584
mov ebx, eax
cmp dword [esp + 0x58], eax
ja 0x403c4e
lea eax, [eax + 1]
mov dword [esp], eax
call dword [0x59b010]
mov edi, eax
test eax, eax
je 0x403c4e
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fread
dec eax
je 0x403d0f
mov ebx, 0x5a
mov dword [esp], edi
call dword [0x59b00c]
jmp 0x403c53
cmp dword [esp + 0x58], ebx
jne 0x403d35
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
xor ebx, ebx
test eax, eax
je 0x403d01
jmp 0x403cfc
mov byte [edi + ebx], 0
mov dword [esp + 4], str._____BEGIN_PUBLIC_KEY_____
mov dword [esp], edi
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403cfc
mov ebx, eax
sub ebx, edi
je 0x403d59
cmp byte [eax - 1], 0xa
jne 0x403cfc
lea ebp, [ebx + 0x1a]
mov dword [esp + 4], str._n_____END_PUBLIC_KEY_____
lea eax, [edi + ebp]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403cfc
sub eax, edi
mov dword [esp + 0x1c], eax
sub eax, ebx
sub eax, 0x19
mov dword [esp], eax
call dword [0x59b010]
mov ebx, eax
test eax, eax
je 0x403cfc
xor ecx, ecx
cmp dword [esp + 0x1c], ebp
jbe 0x403dab
mov al, byte [edi + ebp]
cmp al, 0xa
je 0x403da8
cmp al, 0xd
je 0x403da8
mov byte [ebx + ecx], al
inc ecx
inc ebp
jmp 0x403d93
mov byte [ebx + ecx], 0
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004196b0
mov ebp, eax
mov dword [esp], ebx
call dword [0x59b00c]
test ebp, ebp
jne 0x403cfc
mov edx, dword [esp + 0x58]
cmp edx, dword [esp + 0x2c]
jne 0x403cfc
mov dword [esp + 8], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
jmp 0x403d21
Function at 0x40690c
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea edx, [eax + 0x20]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
add eax, 0x40
mov dword [ebx], eax
mov dword [ebx + 0x58], sub.msvcrt.dll_fwrite
mov dword [ebx + 0x64], sub.msvcrt.dll_fread
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xc8], 0xffffffff
mov dword [ebx + 0xcc], 0xffffffff
mov dword [ebx + 0x48], 0xffffffff
mov dword [ebx + 0x4c], 0xffffffff
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x130], 1
mov dword [ebx + 0x324], 1
mov dword [ebx + 0x204], 1
mov dword [ebx + 0x208], 1
mov dword [ebx + 0x20c], 0
mov dword [ebx + 0x198], 1
mov dword [ebx + 0x17c], 0x3c
mov dword [ebx + 0x164], 5
mov dword [ebx + 0xc], 0x438
mov dword [ebx + 0x178], 0
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x1c4], 1
mov dword [ebx + 0x140], 1
mov dword [ebx + 0x144], 1
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x170], 1
mov dword [ebx + 0x244], 0x1a4
mov dword [ebx + 0x248], 0x1ed
mov dword [ebx + 0x310], 0xffffffff
mov dword [ebx + 0x314], 0xf3fffbef
mov dword [ebx + 0x318], 0
lea eax, [ebx + 0x2f4]
mov edx, str.rcmd
call fcn.00405c24
test eax, eax
jne 0x406af5
mov dword [esp], str.CURL_CA_BUNDLE
call sub.msvcrt.dll_getenv
mov edx, eax
lea eax, [ebx + 0x2a0]
call fcn.00405c24
mov dword [ebx + 0x32c], 0
mov dword [ebx + 0x330], 0
mov dword [ebx + 0x334], 0
mov dword [ebx + 0x344], 0
mov dword [ebx + 0x34c], 0x3c
mov dword [ebx + 0x348], 0x3c
mov dword [ebx + 0x354], 1
mov dword [ebx + 0x358], 1
mov dword [ebx + 0x35c], 0x3e8
add esp, 0x18
pop ebx
ret

Function at 0x40c308
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, eax
mov eax, dword [eax + 0x1e0]
test eax, eax
je 0x40c340
mov esi, dword [ebx + 0x16c]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
add esp, 0x34
pop ebx
pop esi
ret
cmp edx, 2
ja 0x40c3a0
mov eax, dword [ebx + 0x168]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [edx + edx*2 + 0x5a3e74]
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x168]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
call sub.msvcrt.dll_fwrite
xor eax, eax
add esp, 0x34
pop ebx
pop esi
ret
xor eax, eax
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x40c42c
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40c468
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
xor eax, eax
add esp, 0x1c
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40c47c
mov eax, 0x38
jmp 0x40c463
mov ax, 0x51
jmp 0x40c463

Function at 0x40cbe0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov eax, dword [esi + eax*4 + 0x154]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [edi], 0
cmp eax, 0xffffffff
je 0x40cc34
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov ebp, eax
cmp eax, 0x2733
je 0x40cc7c
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], str.Send_failure:__s
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0040c7a8
mov eax, dword [esi]
mov dword [eax + 0x8644], ebp
mov dword [edi], 0x37
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi], 0x51
xor ebx, ebx
jmp 0x40cc2a