joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb541c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb55c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0xb55a8
mov dl, 1
mov eax, dword [0x75ec0]
call fcn.00063bc8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00064a24
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0xb5597
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.000a7924
test al, al
je 0xb558a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0xb55d8
lea eax, [ebp - 0x254]
call fcn.00069b6c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xb558a
xor eax, eax
push ebp
push 0xb5583
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0xb5610
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xb556c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00064c94
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0xb556c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00064c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb558a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0xb548d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00079b98
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb55ce
lea eax, [ebp - 0x260]
call fcn.00064a24
ret

Function at 0xb5f40
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0xc9c94]
cmp byte [eax + 0xad], 0
jne 0xb5fb1
cmp dword [0xc9cb0], 0
jne 0xb5f72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0xb5efc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0xc9cb0], eax
cmp dword [0xc9cac], 0
jne 0xb5f8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0xc9cac], eax
cmp dword [0xc9cb4], 0
jne 0xb5fb1
push esp
push 0
push 0
push 0xb5ea0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0xc9cb4], eax
pop edx
ret
Function at 0xb6184
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0xb619b
add esp, 0xfffffff0
call fcn.00063f1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0007dcec
mov eax, dword [0xc4a30]
cmp word [eax + 2], 0
jne 0xb61c3
mov eax, dword [0xc4a30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.000b7ddc
mov eax, dword [0xc4adc]
cmp word [eax + 2], 0
jne 0xb61dd
mov eax, dword [0xc4adc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.000b7fe8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x75a9c]
call fcn.00063bc8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x75a9c]
call fcn.00063bc8
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x75a9c]
call fcn.00063bc8
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x8237c]
call fcn.00089f04
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0xb6394
mov eax, dword [0xc4950]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0008a2d8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0xb86ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0xc4950]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0006d3b4
test eax, eax
je 0xb62e4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00069524
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0006d3e8
test eax, eax
je 0xb62f8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00064c94
mov byte [ebx + 0xd4], 0
push ebx
push 0xb7904
call fcn.0007ee68
mov dword [ebx + 0xc8], eax
mov eax, dword [0xc4830]
cmp byte [eax], 0
jne 0xb6349
mov eax, ebx
call fcn.000b64d8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.000b8884
mov eax, ebx
call fcn.000b93e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0xb6389
call fcn.00063f74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb6758
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0xb67f7
cmp dword [ebx + 0x94], 0
jne 0xb67f1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0xb66e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0xb67f1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0xb67b7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0xb67f1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00077e40
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0xb67c6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0xb6a10
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0xc9c94]
cmp dword [eax + 0x30], 0
je 0xb6b6d
test bl, bl
jne 0xb6abe
cmp dword [esi + 0x9c], 0
jne 0xb6ab3
mov eax, esi
call fcn.000b9264
push eax
push 0xb693c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0xb6a84
mov eax, dword [0xc9c94]
call fcn.000b9854
test al, al
je 0xb6a84
mov eax, dword [0xc9cb8]
call fcn.00065b68
mov edi, eax
cmp edi, 0
jl 0xb6a84
push 0
mov eax, dword [0xc9cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0xb6a6e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0xb6ab3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00077e40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0xb6a93
inc dword [esi + 0x9c]
jmp 0xb6b6d
cmp dword [esi + 0x9c], 0
jle 0xb6b6d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0xb6b6d
cmp dword [esi + 0x44], 0
je 0xb6b19
mov eax, dword [0xc9c94]
call fcn.000b9854
test al, al
je 0xb6b19
mov eax, dword [0xc9cb8]
call fcn.00065b68
mov edi, eax
cmp edi, 0
jl 0xb6b19
push 5
mov eax, dword [0xc9cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0xb6b03
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0xb6b48
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00077e40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0xb6b28
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0xc9cb8
mov ecx, 1
mov edx, dword [0xb691c]
call fcn.00065d1c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0xb7600
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0xb766a
mov eax, ebx
call fcn.000b9854
test al, al
jne 0xb766a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00064b14
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0xb7657
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0xb7677
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00064a78
jmp 0xb7677
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00064a78
add esp, 0x104
pop esi
pop ebx
ret

Function at 0xb8a68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0xb8ad6
mov eax, esi
call fcn.000a27e4
test al, al
je 0xb8ad6
mov eax, dword [ebx + 0x84]
call fcn.000a2460
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0xb8ad6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0xb8aca
push 0
mov eax, dword [ebx + 0x84]
call fcn.000a2460
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0009a5b8
jmp 0xb8ad6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.000b88a4
pop esi
pop ebx
ret
Function at 0xb9f48
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x67718]
call fcn.00065468
xor eax, eax
push ebp
push 0xba0e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0xc46dc], 0
jne 0xb9fa3
mov ecx, dword [0xc4840]
mov dl, 1
mov eax, dword [0x67ce4]
call reloc.ole32.dll_StringFromCLSID
call fcn.0006446c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.0006352c
mov eax, ebx
call fcn.00065338
mov dword [ebp - 0x24], eax
mov esi, 0xba0f8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00066400
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00065348
test eax, eax
jle 0xba08c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0xba078
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00064c94
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0xba01e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00064cac
mov esi, dword [ebp - 0x50]
test esi, esi
je 0xba034
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00064cac
mov eax, dword [ebp - 0x54]
call fcn.00064eb4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00064c94
mov eax, dword [ebp - 0x58]
call fcn.00064eb4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0xba07a
xor eax, eax
test al, al
je 0xba085
mov ebx, 0x15
jmp 0xba091
mov ebx, 0x10
jmp 0xba091
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0xc46dc]
call fcn.000b9dc8
mov eax, dword [ebp - 4]
call fcn.000b9dc8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00066418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xba0f0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00064a48
lea eax, [ebp - 0xc]
mov edx, dword [0x67718]
call fcn.00065538
ret
Function at 0x42eead
Capabilities:
Encode data using xor

Disassembly:
pop esi
cmc
cmp eax, 0x65ccb13f
lahf
or esp, 0x45
mov byte [esi], ah
cli
out dx, al
lea ebp, [edx]
or eax, 0x7182e8b8
sub al, 0x28
mov esi, dword [ecx + 0x34]
fisubr dword [ebp - 0x7d]
pop esp
mov al, 0xad
xlatb
or byte [ebp + 0x73e9968f], cl
outsb dx, byte [esi]
push ss
invalid
adc al, 0x58
cmp dl, byte [ebx]
push edx
push ebp
test al, 0x1c
jb 0x42ede0
sbb al, 0x72
std
lodsb al, byte [esi]
dec esp
insd dword es:[edi], dx
adc bh, byte [esi - 0x1d740a17]
and byte [ebx + 0x29d06c86], dl
add ebp, eax
sub eax, 0x220b086
or eax, 0x5210922
jmp 0x42eda8
jl 0x42edd8
or byte [0xf753d9dd], 0x1e
push ecx
mov word [edx + 0x13], fs
std
cmp byte [0x64ccb41f], 0x8d
sbb ebp, dword [ecx + 0x2b]
cmpsb byte [esi], byte es:[edi]
inc edi
loop 0x42ee41
int3
arpl word [ebx], sp
out 0x4b, eax
and eax, dword [eax]
nop
add byte [eax + 0x63214332], dl
in eax, dx
xor al, byte [ebx + 0x21]
arpl bp, bp
sub al, 1
and ebx, dword [ecx - 0x77]
sar byte [edx + eax*2 + 0xc], 0xa6
mov ecx, dword [eax]
jl 0x42ee5d
dec ecx
mov edi, ebp
shr dword [0xc8ff2633], 0xa4
dec eax
movsb byte es:[edi], byte [esi]
enter 0xffffffffffff82a4, 0xffffffffffffff98
sbb byte [eax - 0x6860476d], 0x82
imul edi, ebp, 0x91915f1f
cwde
xchg ebx, eax
mov eax, 0x6982979f
std
pop ds
pop edi
xchg ecx, eax
xchg ecx, eax
mov dword [0xb7550509], eax
jns 0x42ee30
mov ch, byte [ecx + ebx*2]
jb 0x42ee1e
popal
ror esp, cl
wait
pop ds
inc edx
mov ss, word [edi]
mov ecx, dword [ecx + 0x67076762]
cld
shr edi, 0xc8
pop ebp
or byte [edi - 0x47b9321a], ch
xchg esi, eax
cmp esp, ecx
mov bl, 0xf7
xor eax, dword [edi]
arpl word [edx + 0x5331ce2e], bp
fmul dword [ebx - 0x3c]
leave
sbb esi, dword [edx - 0x14]
shr dword [ebp + 0x28947a9d], cl
invalid
jp 0x42ee3f
sub dh, al
adc dl, byte [ebx - 0x11d9a4cd]
loop 0x42ef1d
pop esi
push ecx
aas
scasd eax, dword es:[edi]
outsd dx, dword [esi]
sahf
jns 0x42ee60
sub byte [ebp + 0x75dfcccc], 0xc5
inc ebx
jnp 0x42ee68
xor ebp, eax
push eax
inc edx
loopne 0x42ee5b
xlatb
aaa
movsb byte es:[edi], byte [esi]
mov ebp, 0x434c888
outsb dx, byte [esi]
insb byte es:[edi], dx
xchg ebp, eax
mov eax, 0x670a0c07
ja 0x42ef51
sub byte [eax + 0x42], dh
or al, 0xd
xchg edx, eax
loopne 0x42eea9
invalid
xchg byte [eax], ch
xchg byte [eax - 0x31], dh
lea ebx, [ebx]
clc
jge 0x42ef1f
idiv byte [ecx + 0x39]
hlt
sbb al, 0x6b
movsb byte es:[edi], byte [esi]
stosd dword es:[edi], eax
out 0x3d, al
invalid
out dx, eax
and bl, 0x9c
xor edi, dword [ebx]
loop 0x42ef3e
mov esp, 0xda7064cd
mov esp, 0xda7064cd
pushal
and eax, 0x47f314ee
pop ebx
pop ds
das
mov dh, 0x3b
out dx, eax
loope 0x42ef47
or al, 4
popfd
add bh, byte [eax - 0x55687800]
out 0xa0, al
lcall 0xf3ab, 0x44907868
mov eax, dword [0xafb2aa58]
mov dl, 0xaf

Function at 0x45d5d0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
insd dword es:[edi], dx
lea esp, [eax + esi*8]
and al, 0xf0
jbe 0x45d5d2
lahf
invalid
Function at 0x4bbee5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b0
cmp edx, dword [eax]
je 0x4bbf07
add eax, 8
inc ecx
cmp eax, 0x4c3440
jl 0x4bbef8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b0]
jne 0x4bc035
mov eax, dword [0x4c8de0]
cmp eax, 1
je 0x4bc00f
test eax, eax
jne 0x4bbf38
cmp dword [0x4c32d8], 1
je 0x4bc00f
cmp edx, 0xfc
je 0x4bc035
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf6f
lea eax, [ebp - 0x1a4]
push 0x4c16c8
push eax
call fcn.004bc8d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcd60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbfb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcd60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c16c4
push edi
call fcn.004bec30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c16a8
push eax
call fcn.004bc8d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc8e0
lea eax, [ebp - 0xa0]
push 0x4c16a4
push eax
call fcn.004bc8e0
push dword [esi + 0x4c33b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc8e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c167c
push eax
call fcn.004beba4
add esp, 0x2c
pop edi
jmp 0x4bc035
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33b4]
push 0
push eax
push dword [esi]
call fcn.004bcd60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401460
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor edx, edx
push esi
xor ecx, ecx
call fcn.0040abc0
mov esi, eax
test esi, esi
je 0x40151b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x500000
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40151b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40151b
mov dword [ebp - 0xe], eax
xorps xmm0, xmm0
mov word [ebp - 0xa], ax
mov eax, 2
push 0xfff2
movq qword [ebp - 0x16], xmm0
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40152d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40152d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x4024a0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2194
call fcn.00457150
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0x2190], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402509
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x212c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x40000000
jbe 0x40251c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x218c], 0
push 0xc6
push eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x126]
push eax
call fcn.004523e0
push 0x1fff
lea eax, [ebp - 0x2127]
mov byte [ebp - 0x2128], 0
push 0
push eax
call fcn.004523e0
push 0x54
lea eax, [ebp - 0x2184]
push 0
push eax
call fcn.004523e0
xor eax, eax
mov byte [ebp - 0x14], 0
push 0x42
push eax
mov word [ebp - 0x60], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x5e]
movq qword [ebp - 0x13], xmm0
push eax
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.004523e0
add esp, 0x30
mov dword [ebp - 0x2174], 0
mov dword [ebp - 0x2178], 0
mov dword [ebp - 0x2188], 0x67452301
mov dword [ebp - 0x2184], 0xefcdab89
mov dword [ebp - 0x2180], 0x98badcfe
mov dword [ebp - 0x217c], 0x10325476
test ebx, ebx
je 0x40265a
mov ecx, 0x2000
xor eax, eax
push 0
push 0
push eax
cmp ebx, 0x2000
mov esi, ebx
push edi
cmova esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402502
push 0
lea eax, [ebp - 0x2130]
mov dword [ebp - 0x2130], 0
push eax
push esi
lea eax, [ebp - 0x2128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402502
push esi
lea edx, [ebp - 0x2128]
lea ecx, [ebp - 0x2188]
call fcn.00407d40
mov eax, dword [ebp - 0x218c]
add esp, 4
add eax, esi
mov ecx, 0x2000
mov dword [ebp - 0x218c], eax
sub ebx, esi
jne 0x4025e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x2188]
lea ecx, [ebp - 0x14]
call fcn.00407e10
xor esi, esi
lea edi, [ebp - 0x5e]
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
push str._02x
lea eax, [edi - 2]
push 2
push eax
call fcn.00401420
shl bl, 4
movzx eax, bl
push eax
push str._02x
push 2
push edi
call fcn.00401420
inc esi
add esp, 0x20
add edi, 4
cmp esi, 0x10
jl 0x402674
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x128]
push 0x21
push eax
call fcn.0045474c
mov esi, dword [ebp - 0x2190]
push 0x64
push 0
push esi
call fcn.004523e0
lea eax, [ebp - 0x128]
push eax
push 0x48276c
push esi
call fcn.0045752f
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x40278c
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004579f7
add esp, 8
lea esi, [eax + 1]
cmp esi, 0x200
jg 0x40278c
push 0x3ff
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
push 0
push eax
call fcn.004523e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push esi
push esi
push eax
call fcn.0045767d
add esp, 0x20
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x40c]
push eax
call fcn.00458229
add esp, 4
lea ecx, [ebp - 0x40c]
call fcn.0040d750
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004516e1
mov esp, ebp
pop ebp
ret

Function at 0x402830
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040fd80
mov esi, edx
mov ebx, eax
mov dword [ebp - 0x20c], esi
call fcn.0040fd80
sub eax, ebx
sbb edx, esi
test edx, edx
jg 0x4028b1
jl 0x40286d
cmp eax, 0x7530
ja 0x4028b1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x482778
call esi
push 0x482778
call fcn.00458229
add esp, 4
mov ecx, edi
call fcn.0040d090
cmp eax, 1
je 0x4028c4
call fcn.0040fd80
sub eax, ebx
sbb edx, dword [ebp - 0x20c]
mov dword [ebp - 0x214], edx
js 0x402873
jg 0x4028b1
cmp eax, 0x7530
jbe 0x402873
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], 0
push 0
push eax
call fcn.004523e0
add esp, 0xc
call fcn.0040fd80
sub eax, ebx
sbb edx, dword [ebp - 0x20c]
push edx
push eax
lea eax, [ebp - 0x208]
push 0x482794
push eax
call fcn.0045752f
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call fcn.00458229
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x402d90
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
je 0x402d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402d90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret