joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10136c00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x10136c60
cmp dword [edi + 0x264], ebx
je 0x10136c59
cmp byte [0x107d44f4], 0
push edi
push dword [edi + 0x250]
je 0x10136c48
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10136c4e
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x10136d40
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10136dcf
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x10136cae
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_TSPRITE::Update_class_e3_VIEWPORT__
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d44f4], 0
je 0x10136cda
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10136cfc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_TSPRITE::Update_class_e3_VIEWPORT__
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d2a
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d40
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10136d67
cmp byte [0x107d44f4], 0
jne 0x10136d67
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_public:_void___stdcall_TSPRITE::Update_class_e3_VIEWPORT__
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x10136d9c
push esi
xor ebx, ebx
call sym.rt3d.dll_public:_void___stdcall_TSPRITE::Update_class_e3_VIEWPORT__
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10136d98
test byte [edi + 0x268], 3
jne 0x10136da6
mov ebx, edx
jmp 0x10136da6
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10136dca
push 0
test ebx, ebx
pop ebx
jne 0x10136c20
test byte [edi + 0x26c], 2
jne 0x10136c20
test eax, eax
setne al
jmp 0x10136dd1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 4
Function at 0x401e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e79
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401e68
cmp esi, edx
jae 0x401e79
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401e56
cmp esi, edx
jae 0x401e79
cmp word [esi], 0
je 0x401e79
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x402180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [edx + 0x14], 8
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], 0
jb 0x4021a9
mov edx, dword [edx]
lea eax, [ebp - 0x428]
push eax
push 1
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4021d6
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x430], 1
push 0
push eax
call fcn.005346b0
add esp, 0xc
mov dword [ebp - 0x42c], 0x400
cmp dword [esi + 0x14], 8
jb 0x402208
mov esi, dword [esi]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x428]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4022ed
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
lea edx, [ecx + 2]
mov dword [ebp - 0x410], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402261
sub ecx, edx
lea eax, [ebp - 0x40c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.004013e0
mov ecx, dword [0x5cdc04]
cmp ecx, 8
jb 0x4022be
mov eax, dword [0x5cdbf0]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4022b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402301
mov eax, edx
push ecx
push eax
call fcn.00532001
add esp, 8
movups xmm0, xmmword [ebp - 0x424]
xor eax, eax
movups xmmword [0x5cdbf0], xmm0
movq xmm0, qword [ebp - 0x414]
movq qword [0x5cdc00], xmm0
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 0xfffffffe
xor ecx, ebp
pop esi
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.005375cf
int3
Function at 0x403a80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor al, al
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x403b5d
mov eax, 0x614
mov dword [ebp - 0x230], 0
push 0x20a
mov word [ebp - 0x220], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], 0
push 0
push eax
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x216], 0
call fcn.005346b0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x403af9
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0053be3b
mov eax, dword [edi]
add esp, 0xc
add eax, eax
cmp eax, 0x20a
jae 0x403b6d
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
add eax, 2
cmp eax, 0x20a
jae 0x403b6d
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.005325bc
int3

Function at 0x404680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c84bc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, edx
mov dword [esp + 8], eax
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x4046b7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x14]
mov edx, esi
cmp ebx, 8
jb 0x4046c3
mov edx, dword [esi]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4046f3
lea eax, [edi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x4046ed
nop
cmp eax, edx
je 0x4046f3
sub eax, 2
cmp word [eax], 0x5c
jne 0x4046e0
sub eax, edx
sar eax, 1
jmp 0x4046f6
or eax, 0xffffffff
cmp edi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov ecx, esi
cmovb eax, edi
mov dword [esp + 0x28], 7
cmp ebx, 8
jb 0x40471c
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004013e0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0x14], 8
jb 0x404746
mov esi, dword [esi]
push 0x5bc170
push esi
call fcn.0053c3bc
mov esi, eax
add esp, 8
test esi, esi
jne 0x40475e
xor bl, bl
jmp 0x404778
push esi
push 1
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0053c1e1
push esi
call fcn.0053bf3e
add esp, 0x14
mov bl, 1
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x4047b0
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4047a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047c4
push edx
push ecx
call fcn.00532001
add esp, 8
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.005375cf
int3
Function at 0x4047d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f19d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c84bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00404620
mov dword [ebp - 0x10], eax
or eax, edx
jne 0x404843
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40484b
mov edi, dword [edi]
push 0x5bc178
push edi
call fcn.0053c3bc
mov edi, eax
add esp, 8
test edi, edi
je 0x40481b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404876
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00404a70
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push edi
push 1
push eax
push ebx
call fcn.0053c617
push edi
call fcn.0053bf3e
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4105d6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4105c5
jg 0x410530
test edx, edx
je 0x4105c5
nop dword [eax]
call fcn.00411bf0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x410584
jg 0x410547
test esi, esi
je 0x410584
cmp ebx, eax
jg 0x410557
jl 0x410551
cmp edi, esi
jae 0x410557
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00534810
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4105a9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4105bf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x410530
jl 0x4105bf
test edi, edi
jne 0x410530
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4105f8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4105fa
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x410678
jg 0x41060d
test esi, esi
je 0x410678
test eax, eax
jl 0x41065c
jg 0x410617
test ebx, ebx
je 0x41065c
cmp edi, eax
jg 0x410627
jl 0x410621
cmp esi, ebx
jae 0x410627
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00534810
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x410678
jg 0x41065f
test esi, esi
je 0x410678
jmp 0x41065f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x410678
push eax
push esi
push 1
push edx
call fcn.0053c1e1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410c00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x410c3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x410c3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x410d24
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410c64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410c97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00542612
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x410cf7
sub eax, 1
je 0x410cf7
sub eax, 2
jne 0x410d24
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00542612
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410d14
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053c1e1
add esp, 0x10
cmp edi, eax
jne 0x410d24
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x410c27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x411770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41182a
cmp byte [esi + 0x3d], 0
je 0x41182a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x411818
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4117e0
sub eax, 1
je 0x4117e4
sub eax, 2
jne 0x411818
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x411801
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053c1e1
add esp, 0x10
cmp edi, eax
jne 0x411818
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
Function at 0x4142a0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1070
call fcn.00532ab0
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
test edi, edi
jne 0x4142f3
test esi, esi
je 0x414454
push str.FileNameInPut_Is_NULL
push 0x5bcce8
push esi
call fcn.00412fa0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
push 0x5bcc9c
lea eax, [ebp - 0x1070]
push edi
push eax
call fcn.0053c3ea
mov eax, dword [ebp - 0x1070]
add esp, 0xc
test eax, eax
jne 0x41433c
test esi, esi
je 0x414454
push edi
push 0x5bcca0
push esi
call fcn.00412fa0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
push eax
push 0x1000
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x106c], 0x67452301
push 1
push eax
mov dword [ebp - 0x1068], 0xefcdab89
mov dword [ebp - 0x1064], 0x98badcfe
mov dword [ebp - 0x1060], 0x10325476
mov dword [ebp - 0x105c], 0xc3d2e1f0
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1014], 0
call fcn.0053c617
add esp, 0x10
test eax, eax
je 0x4143d5
nop dword [eax]
push eax
lea edx, [ebp - 0x100c]
lea ecx, [ebp - 0x106c]
call fcn.00414040
add esp, 4
lea eax, [ebp - 0x100c]
push dword [ebp - 0x1070]
push 0x1000
push 1
push eax
call fcn.0053c617
add esp, 0x10
test eax, eax
jne 0x4143a0
push dword [ebp - 0x1070]
call fcn.00543281
add esp, 4
test eax, eax
je 0x41440d
test esi, esi
je 0x414454
push edi
push 0x5bccb4
push esi
call fcn.00412fa0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x106c]
call fcn.00414100
push dword [ebp - 0x1070]
call fcn.0053bf3e
add esp, 4
mov edi, ebx
xor esi, esi
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x1054]
push eax
push str._02x
push edi
call fcn.00412fa0
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x14
jl 0x414430
mov byte [ebx + esi*2], 0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
Function at 0x41bf70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x41bfb9
mov al, byte [esi]
push eax
call fcn.00429410
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x41bf97
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x41d280
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2f0], 2
jne 0x41d295
pop ebp
jmp fcn.0041d230
mov al, 1
pop ebp
ret
Function at 0x425eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x425ef4
push esi
push 1
push edi
call fcn.00418770
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00418770
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x425f2a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x564898
push 2
push eax
call fcn.0053c1e1
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0053c1e1
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1c0]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.00426810
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x42636a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x42632c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00417750
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00425f30
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcfc], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
Function at 0x426810
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1e4]
add esi, eax
mov eax, dword [ebx + 0x2e8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4268d8
cmp dword [ebx + ecx*4 + 0x1d4], 0x4261c0
jne 0x4268d8
cmp dword [esi], 0
je 0x426859
test edi, edi
je 0x4268d8
mov eax, dword [ebx + ecx*4 + 0x1c0]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.00428ff0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4268d8
test al, 1
je 0x4268d8
mov ecx, dword [esi]
test ecx, ecx
jne 0x4268b3
mov eax, dword [ebx]
mov eax, dword [eax + 0x8f4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4268d1
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4268d8
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x426a60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x210], 0
je 0x426a80
push eax
call fcn.00420130
add esp, 4
test eax, eax
jne 0x426a9e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1c0]
cmp eax, 0xffffffff
je 0x426a7c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x426a7c
mov al, 1
pop ebp
ret

Function at 0x427260
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5ce54c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4272b1
push 3
push 2
push eax
push 6
call fcn.00428890
add esp, 0x10
test al, al
je 0x4272a5
mov dword [0x5ce54c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5ce54c], 1
jmp 0x4272b6
cmp eax, 2
je 0x4272f6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4272dd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4272f6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret