joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5e41
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4c5e5f
call fcn.004c2a7f
mov dword [eax], 0x16
call fcn.004c40ce
jmp 0x4c5f5b
mov eax, dword [edi + 0xc]
test al, 0x83
je 0x4c5f5b
test al, 0x40
jne 0x4c5f5b
test al, 2
je 0x4c5e81
or eax, 0x20
mov dword [edi + 0xc], eax
jmp 0x4c5f5b
or eax, 1
mov dword [edi + 0xc], eax
test eax, 0x10c
jne 0x4c5e97
push edi
call fcn.004cd23a
pop ecx
jmp 0x4c5e9c
mov eax, dword [edi + 8]
mov dword [edi], eax
push dword [edi + 0x18]
push dword [edi + 8]
push edi
call fcn.004beef4
pop ecx
push eax
call fcn.004c5f61
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x4c5f49
cmp eax, 0xffffffff
je 0x4c5f49
test byte [edi + 0xc], 0x82
jne 0x4c5f1d
push edi
call fcn.004beef4
pop ecx
cmp eax, 0xffffffff
je 0x4c5f08
push edi
call fcn.004beef4
pop ecx
cmp eax, 0xfffffffe
je 0x4c5f08
push esi
push edi
call fcn.004beef4
mov esi, eax
push edi
sar esi, 5
call fcn.004beef4
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [esi*4 + 0x5297b8]
pop ecx
pop esi
jmp 0x4c5f0d
mov eax, 0x518500
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4c5f1d
or dword [edi + 0xc], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x4c5f3c
test byte [edi + 0xc], 8
je 0x4c5f3c
test dword [edi + 0xc], 0x400
jne 0x4c5f3c
mov dword [edi + 0x18], 0x1000
mov ecx, dword [edi]
dec dword [edi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
pop edi
ret
push 0x10
pop ecx
push 0x20
test eax, eax
pop edx
cmovne ecx, edx
or dword [edi + 0xc], ecx
and dword [edi + 4], 0
or eax, 0xffffffff
pop edi
ret
Function at 0x4c7890
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1fc
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x20c]
push edi
call fcn.004c7870
mov esi, eax
pop ecx
test esi, esi
je 0x4c7a39
push ebx
push 3
call fcn.004c8fa0
pop ecx
cmp eax, 1
je 0x4c79e1
push 3
call fcn.004c8fa0
pop ecx
test eax, eax
jne 0x4c78ea
cmp dword [0x529188], 1
je 0x4c79e1
cmp edi, 0xfc
je 0x4c7a38
push str.Runtime_Error__n_nProgram:
push 0x314
mov ebp, 0x529190
push ebp
call fcn.004c8746
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x4c7a51
push 0x104
push 0x5291c2
push ebx
mov word [0x5293ca], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x2fb
test eax, eax
jne 0x4c7953
push str._program_name_unknown_
push edi
push 0x5291c2
call fcn.004c8746
add esp, 0xc
test eax, eax
jne 0x4c7a51
mov ecx, 0x5291c2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c795b
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x3c
jbe 0x4c799d
lea ecx, [ecx*2 + 0x52914c]
mov eax, ecx
sub eax, 0x5291c2
push 3
sar eax, 1
push 0x4ed7d4
sub edi, eax
push edi
push ecx
call fcn.004ce56f
add esp, 0x10
test eax, eax
jne 0x4c7a51
push 0x4ed7dc
mov edi, 0x314
push edi
push ebp
call fcn.004ce504
add esp, 0xc
test eax, eax
jne 0x4c7a51
push esi
push edi
push ebp
call fcn.004ce504
add esp, 0xc
test eax, eax
jne 0x4c7a51
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004ce62b
add esp, 0xc
jmp 0x4c7a38
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x4c7a38
cmp edx, 0xffffffff
je 0x4c7a38
xor ebx, ebx
mov ecx, ebx
mov al, byte [esi + ecx*2]
mov byte [esp + ecx + 0x14], al
cmp word [esi + ecx*2], bx
je 0x4c7a0e
inc ecx
cmp ecx, 0x1f4
jb 0x4c79f8
lea ecx, [esp + 0x14]
mov byte [esp + 0x207], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7a1c
push ebx
lea eax, [esp + 0x14]
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [esp + 0x204]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b94b6
add esp, 0x1fc
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c40de
int3
Function at 0x4c90b8
Capabilities:
Query environment variable

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor eax, eax
test edi, edi
je 0x4c913b
push esi
mov esi, edi
cmp word [edi], ax
je 0x4c90df
add esi, 2
cmp word [esi], ax
jne 0x4c90cf
add esi, 2
cmp word [esi], ax
jne 0x4c90cf
push ebx
push ebp
push eax
push eax
push eax
sub esi, edi
push eax
sar esi, 1
inc esi
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4c912f
push ebp
call fcn.004c296d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4c912f
xor eax, eax
push eax
push eax
push ebp
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4c9124
push ebx
call fcn.004bb566
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4c9138
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop ebx
pop esi
pop edi
ret
Function at 0x4cbee0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4cbf1b
mov edi, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4cbf13
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4cbf1d
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4cbf03
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4cbff0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4cc001
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4cc01c
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
ret
Function at 0x4ce62b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
sub esp, 0x20
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [0x5177a0]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
call ebx
mov ebp, eax
call fcn.004c2bfa
mov dword [esp + 0x10], eax
cmp dword [0x5299fc], esi
jne 0x4ce720
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ce6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ce806
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ce806
push 0x4eda6c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ce806
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5299fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x529a00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x529a04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x529a0c], eax
test eax, eax
je 0x4ce71c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x529a08], eax
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ce743
test edi, edi
je 0x4ce735
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x10], esi
je 0x4ce759
push 4
pop eax
jmp 0x4ce808
cmp dword [esp + 0x10], esi
je 0x4ce759
push dword [0x5299fc]
call dword [0x5177a4]
push 3
jmp 0x4ce73d
mov eax, dword [0x529a08]
mov ebx, dword [0x5177a4]
cmp eax, ebp
je 0x4ce7bb
cmp dword [0x529a0c], ebp
je 0x4ce7bb
push eax
call ebx
push dword [0x529a0c]
mov dword [esp + 0x14], eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ce7bb
test edi, edi
je 0x4ce7bb
call eax
test eax, eax
je 0x4ce7af
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ce7af
test byte [esp + 0x28], 1
jne 0x4ce7bb
mov edi, dword [esp + 0x3c]
or edi, 0x200000
jmp 0x4ce7ec
mov eax, dword [0x529a00]
cmp eax, ebp
je 0x4ce7e8
push eax
call ebx
test eax, eax
je 0x4ce7e8
call eax
mov esi, eax
test esi, esi
je 0x4ce7e8
mov eax, dword [0x529a04]
cmp eax, ebp
je 0x4ce7e8
push eax
call ebx
test eax, eax
je 0x4ce7e8
push esi
call eax
mov esi, eax
mov edi, dword [esp + 0x3c]
push dword [0x5299fc]
call ebx
test eax, eax
je 0x4ce806
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call eax
jmp 0x4ce808
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x20
ret
Function at 0x4cf581
Capabilities:
Clear file content

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
push ebp
push esi
push edi
push 1
push 0
push 0
push ebx
movlpd qword [esp + 0x30], xmm0
call fcn.004cae55
mov ecx, eax
mov dword [esp + 0x2c], eax
and ecx, edx
mov dword [esp + 0x28], edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4cf612
push 2
push 0
push 0
push ebx
call fcn.004cae55
mov ecx, eax
add esp, 0x10
and ecx, edx
cmp ecx, 0xffffffff
je 0x4cf612
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub esi, eax
sbb edi, edx
js 0x4cf6ab
jg 0x4cf5e9
test esi, esi
je 0x4cf6ab
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4cf621
call fcn.004c2a7f
mov dword [eax], 0xc
call fcn.004c2a7f
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x8000
push ebx
call fcn.004cf766
pop ecx
pop ecx
mov dword [esp + 0x10], eax
test edi, edi
jl 0x4cf647
jg 0x4cf640
cmp esi, 0x1000
jb 0x4cf647
mov eax, 0x1000
jmp 0x4cf649
mov eax, esi
push eax
push ebp
push ebx
call fcn.004c94f5
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cf670
cdq
sub esi, eax
sbb edi, edx
js 0x4cf666
jg 0x4cf632
test esi, esi
jne 0x4cf632
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x4cf68a
call fcn.004c2a4e
cmp dword [eax], 5
jne 0x4cf685
call fcn.004c2a7f
mov dword [eax], 0xd
or edi, 0xffffffff
or ebp, edi
push dword [esp + 0x10]
push ebx
call fcn.004cf766
pop ecx
pop ecx
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cf710
test edi, edi
jg 0x4cf71b
jl 0x4cf6b5
test esi, esi
jae 0x4cf71b
push 0
push dword [esp + 0x38]
push dword [esp + 0x38]
push ebx
call fcn.004cae55
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cf612
push ebx
call fcn.004bf982
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov edi, eax
mov ebp, edx
mov ecx, edi
and ecx, ebp
cmp ecx, 0xffffffff
jne 0x4cf71b
call fcn.004c2a7f
mov dword [eax], 0xd
call fcn.004c2a4e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and edi, ebp
cmp edi, 0xffffffff
je 0x4cf612
push 0
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ebx
call fcn.004cae55
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cf612
xor eax, eax
jmp 0x4cf619
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
mov eax, section..data
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x71bf2b9a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x503938a1
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.PESVOX_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push str.Pro_Evolution_Soccer_6
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6bc37ce8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1d9b38be
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4016c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.004ade10
mov eax, dword [0x5770a4]
xor eax, esp
mov dword [esp + 0x9eb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, cx
push ecx
push eax
push str.udp:___s:_d
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x4f08]
push 0x100
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.0044d37c
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.004fa9a0
mov edi, eax
add esp, 0x20
test edi, edi
js 0x401886
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push edi
mov edx, 3
mov ecx, ebx
call fcn.00401280
add esp, 8
test eax, eax
js 0x40186b
lea ecx, [esp + 0x30]
push ecx
push 0
lea esi, [ebx + 0x2c]
push 0
mov dword [esi], 0
push esi
lea edx, [edi + 1]
mov dword [ebx + 0x30], edi
inc dword [esi]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40186b
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40186b
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.004fb1c0
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x40186b
mov eax, dword [ebx]
lea ecx, [esp + 0x4ff8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00505cd0
add esp, 0x10
test eax, eax
js 0x401886
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4ff8]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00505cd0
add esp, 0x10
test eax, eax
js 0x401886
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x40186b
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x40189e
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x401748
push edi
call fcn.004fa990
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.004ad99f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.004013f0
push edi
mov esi, eax
call fcn.004fa990
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad99f
mov esp, ebp
pop ebp
ret
Function at 0x4028d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.004ade10
mov eax, dword [0x5770a4]
xor eax, esp
mov dword [esp + 0x9d78], eax
mov ecx, dword [ebx]
push 0
push 0x4ebc
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.004fb1c0
add esp, 0x10
test eax, eax
jg 0x40291e
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004ad99f
add esp, 0x9d7c
ret
mov ecx, dword [esi]
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00401100
add esp, 0x10
test eax, eax
js 0x402906
movzx eax, word [esp + 6]
sub eax, 2
je 0x402990
sub eax, 2
jne 0x4029be
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.004027a0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebx + 4]
imul edx, edx, 0xeb4
add edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.00401010
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004ad99f
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.004026d0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 4]
imul eax, eax, 0xeb4
add eax, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.00401010
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.004ad99f
add esp, 0x9d7c
ret
Function at 0x402ee0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [esi + 0x138], ebx
mov dword [esi + 4], 8
cmp dword [esi + 0x10], ebx
jle 0x402f56
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402f31
test dl, dl
je 0x402f2d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402f31
add ecx, 2
add eax, 2
test dl, dl
jne 0x402f11
xor eax, eax
jmp 0x402f36
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x10], 0xeb4
inc ebx
add ebp, 0x24
lea ecx, [ecx + ecx + 2]
mov dword [edi + ebp - 0x1c], ecx
cmp ebx, dword [esi + 0x10]
jl 0x402f03
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.004fc250
add esp, 8
mov ecx, esi
call fcn.00401c60
test eax, eax
jne 0x40305b
lea edi, [esi + 0x2c]
push esi
call fcn.00402410
push esi
call fcn.00402590
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.004fc250
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x402fe9
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x402fc3
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x402fc3
inc eax
add ecx, 4
cmp eax, ebp
jb 0x402fb7
cmp eax, ebp
jne 0x402fd8
cmp ebp, 0x40
jae 0x402fd8
mov ecx, dword [esi + 0x14]
mov ecx, dword [edx + ecx]
mov dword [esi + eax*4 + 0x30], ecx
inc dword [edi]
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x402fa6
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x14]
push edx
xor ebp, ebp
push ebp
push ebp
push edi
inc eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40304c
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x40304c
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40303b
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.004028d0
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x403020
mov ecx, esi
call fcn.00401c60
test eax, eax
je 0x402f76
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret