joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c48
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004065e4
mov eax, dword [ebp - 0x21c]
call fcn.004065e4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408de7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004065fc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406688
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408ce8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408cfa
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408ce5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408db3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408d23
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408798
cmp dword [ebp - 0x220], 0
je 0x408d5b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408b3c
pop ecx
mov ebx, eax
jmp 0x408db3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408454
mov eax, dword [ebp - 0x224]
call fcn.00408b3c
pop ecx
mov ebx, eax
test bl, bl
jne 0x408da6
cmp byte [0x443b50], 0
jne 0x408da6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408454
mov eax, dword [ebp - 0x228]
call fcn.00408b3c
pop ecx
mov ebx, eax
test bl, bl
jne 0x408db3
push ebp
call fcn.00408bec
pop ecx
mov ebx, eax
test bl, bl
je 0x408dc9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004067e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dee
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004065f4
ret

Function at 0x409530
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40a53c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x443c48
push 0xa
push 0x40a5d0
mov eax, dword [0x443c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a560
call fcn.00414a94
push ebx
mov eax, dword [0x443c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a577
call fcn.00414a94
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a589
call fcn.00414a94
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x443c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x443c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x443c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x443c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x443c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x443c60], edx
pop esi
pop ebx
ret

Function at 0x40dc14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40dcbd
test eax, edx
je 0x40dcc0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40dc3d
push edx
mov edx, eax
mov eax, esp
call fcn.00406800
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40dc53
push eax
lea eax, [esp + 8]
call fcn.00406800
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40dc62
movzx eax, word [eax]
sub eax, ecx
jmp 0x40dc89
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40dca3
add ecx, 4
js 0x40dc7a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40dca0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405e4c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40dc87
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40dc89
xor eax, eax
ret
test eax, eax
je 0x40dcd0
test edx, edx
jne 0x40dc24
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x412070
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4120a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406738
jmp 0x4120b2
mov eax, ebx
mov edx, esi
call fcn.004065fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4120bc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4120de
movzx eax, word [esp]
jmp 0x4120e0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x412870
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 0x412995
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412680
mov esi, eax
mov eax, dword [0x440ef0]
cmp byte [eax], 0
je 0x41293d
mov eax, dword [0x440db4]
call fcn.00404594
call fcn.004042b8
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412848]
call fcn.00407b60
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4129b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412979
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x440d84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x443c38]
call fcn.00407c24
push eax
call sub.user32.dll_LoadStringW_1
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 0x41299c
lea eax, [ebp - 4]
mov edx, dword [0x412848]
call fcn.00407b6c
ret

Function at 0x41493c
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.0040615c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4148e6
mov eax, edi
add eax, eax
call fcn.00404170
mov esi, eax
jmp 0x4148e8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414921
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 0x41490b
mov eax, esp
cmp esi, eax
je 0x41492e
mov eax, esi
call fcn.0040418c
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 0x414968
cmp bl, 0
je 0x414964
cmp bl, 0x41
jl 0x41495f
cmp bl, 0x5a
jg 0x41495f
or bl, 0x20
xor al, bl
inc esi
jmp 0x414943
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4148a8
Function at 0x4ded04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add ecx, edx
clc
stc
mov dword [ebp - 0x10], ecx
neg ch
mov ecx, dword [ebp + 0xc]
jmp 0x4dc0aa
pushal
test al, 0x71
cmp ecx, 0xffff
mov dword [esp], 0x655fc99f
mov dword [esp], esi
lea esp, [esp + 0x24]
jbe 0x4e091c
bsf cx, si
stc
mov edi, dword [edx + 0x24]
neg bx
bswap cx
add edi, eax
sar cl, 1
bswap cx
mov ebx, dword [edx + 0x20]
pushfd
add ebx, eax
setbe ch
btc cx, di
bsr cx, sp
mov dword [ebp - 8], 0
pop ecx
btr cx, 8
bswap cx
mov ecx, dword [edx + 0x18]
cmp sp, ax
pushfd
cmp ecx, dword [ebp - 8]
push esp
lea esp, [esp + 8]
jbe 0x4df9ae
btc di, 0xc
ror si, cl
sub ecx, 1
bsf di, si
cmp al, 0x1e
mov dword [ebp - 4], ecx
setns ch
and si, 0xdcbc
mov ecx, dword [ebp - 8]
shld di, bp, cl
bsr di, di
bsf si, dx
bsr di, sp
add ecx, dword [ebp - 4]
sar esi, cl
stc
or esi, ecx
bswap si
shr ecx, 1
xor di, di
btc esi, ebp
sub di, ax
mov edi, dword [ebx + ecx*4]
cmp dl, al
dec si
dec si
bt di, sp
add edi, eax
lea esi, [esi - 0x829d0cf]
mov esi, dword [ebp + 0xc]
jmp 0x4dcaa9
inc esp
and al, 0x24
sbb cl, byte [ecx + 0x74ff8d17]
and al, 4
and eax, 0x1bf59c8c
push ss
sbb edx, dword [esi]
add edx, dword [ebp + 0x2f]
cmp eax, 0x3aab2e7
mov cl, 0x94
sub eax, 0x9a87f764
add al, 0xe3
xchg edx, eax
inc ebp
loope 0x4dca04
jecxz 0x4dca3f
xor al, 0x3f
aas
mov ecx, dword [ebp + 0xc]
or dword [esi - 0x1c2c98e5], esp
aam 0x67
xor eax, 0xe953b930
mov eax, dword [0xd0d2a295]
mov eax, dword [0xbe984cd7]
popal
sbb byte [eax - 0x23], 0xa2
cld
ret 0xf8b9
call fcn.004e3fbd
push ds
cwde
movsb byte es:[edi], byte [esi]
xor ebp, dword [edi + 0x5b5a2529]
jns 0x4dca43
mov cl, 0xf2
sbb eax, dword [esp + edi*2 - 0x5c]
or byte [edi], ah
insb byte es:[edi], dx
inc esi
mov bh, 0x13
dec byte [edi + 0x2e1bf8a2]
in al, dx
push esi
pop ds
fcmovnb st(0), st(4)
inc edx
jp 0x4dcb43
invalid
push 0xffffffffffffff82
pushfd
lea esp, [esp + 0x2c]
je 0x4df9ae
sal si, cl
rcl dh, cl
shl si, 1
xadd esi, edx
mov esi, dword [eax + 0x3c]
lea edx, [ecx + 0x7faf11d5]
pushal
add esi, eax
sub edx, 0xeb195072
btr dx, 6
mov edx, dword [esi + 0x78]
mov byte [esp + 4], ah
test edx, edx
push 0xbb212b26
pushal
lea esp, [esp + 0x44]
je 0x4df9ae
sal ch, 1
bts cx, 7
adc ch, ch
test bp, 0x9e9b
add edx, eax
sal cx, cl
bswap cx
clc
mov ecx, dword [esi + 0x7c]
push 0x4beff792
jmp 0x4dbc3e
call fcn.004e4870
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x49296b51
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x62217f7c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x526a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf0000]
push edi
jmp 0x526a3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x526a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526a30
mov eax, 1
add ebx, ebx
jne 0x526a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x526a64
jne 0x526a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526a83
dec eax
add ebx, ebx
jne 0x526a70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x526a48
add ebx, ebx
jne 0x526a7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x526ad5
xor ecx, ecx
sub eax, 3
jb 0x526a9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x526b0a
sar eax, 1
mov ebp, eax
jmp 0x526aa6
add ebx, ebx
jne 0x526aa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526a74
inc ecx
add ebx, ebx
jne 0x526ab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526a74
add ebx, ebx
jne 0x526ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x526ab6
jne 0x526ad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x526ab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x526af4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x526ae6
jmp 0x526a36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x526af4
add edi, ecx
jmp 0x526a36
pop esi
mov edi, esi
mov ecx, 0x11de
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x526b12
cmp byte [edi], 0xb
jne 0x526b12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x526b17
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x526b8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14c2f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14c424]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x526b44
mov ecx, edi
jns 0x526b73
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 + 0x14c428]
or eax, eax
je 0x526b89
mov dword [ebx], eax
add ebx, 4
jmp 0x526b61
call dword [esi + 0x14c438]
mov ebp, dword [esi + 0x14c42c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x526bc3
sub esp, 0xffffff80
jmp 0x41269a
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0xff11cd7
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x71882313
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x68fe5e2d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..rsrc
mov ebx, 0x42f314
nop
mov ecx, 0x176d56d2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x404208
push dword [ebp + 0xc]
xor eax, eax
xor edi, edi
mov word [ebp - 4], ax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401029
push 0xfffffffffffffff8
pop eax
jmp 0x401065
push ebx
jmp 0x401043
push 1
lea eax, [ebp - 4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov byte [ebp - 4], 0
add edi, ebx
push 0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
push esi
test ebx, ebx
jg 0x40102c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401069
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push str.Mozilla_5.0
push esi
push eax
push str.GET___s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nKeep_Alive:_300_r_nConnection:_keep_alive_r_n_r_n
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.0040156f
push esi
call fcn.00402b06
add esp, 0x1c
test eax, eax
jne 0x4010b9
push 0xfffffffffffffffc
pop eax
jmp 0x40114f
push edi
push 2
pop esi
push 0x50
mov dword [ebp - 0x210], eax
mov word [ebp - 0x214], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x212], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010ef
push 0xfffffffffffffffb
jmp 0x401106
push 0x10
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401109
push 0xfffffffffffffffa
pop eax
jmp 0x40114e
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401112
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.C:_a.zip
push 3
push ebx
call fcn.0040156f
push ebx
push edi
call fcn.00401228
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ef5
leave
ret
Function at 0x401228
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
push 0
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x40128e
lea eax, [ebp - 0x404]
push str._r_n_r_n
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x4012a3
cmp esi, 0x400
je 0x401292
push eax
push 1
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
test esi, esi
jg 0x401258
push 0xfffffffffffffff9
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ef5
leave
ret
push ebx
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
jmp 0x401295

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x40428b
xor eax, eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x28
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401322
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
inc eax
pop edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x406120]
lea ecx, [ebp - 0x80]
push ecx
xor edx, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
lea ecx, [ebp - 0x78]
push edx
push edx
push ecx
push eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00402ef5
add ebp, 0x90
leave
ret