joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419835
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.00406533
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x20c]
push dword [eax]
lea ecx, [ebp - 0x21c]
call fcn.004065a2
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4198b1
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x21c]
call fcn.00406559
mov eax, dword [ebp - 0x220]
jmp 0x419964
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x419934
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00419835
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x419928
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x21c]
call fcn.00406559
mov eax, dword [ebp - 0x224]
jmp 0x419964
mov dword [ebp - 0x210], 0x100
jmp 0x4198bb
lea ecx, [ebp - 0x21c]
call fcn.0040656c
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20c]
call fcn.0041979d
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.00406559
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret 4
Function at 0x423af7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5a58
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x1e], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x20], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x28], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x34], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x3c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x40], 0
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00415492
and dword [ebp - 4], 0
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00415492
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 0x74], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x78], 0
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call fcn.00415492
mov byte [ebp - 4], 2
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0x94
call fcn.00415492
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
and dword [eax + 0xac], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb0], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xb4], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xb8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xbc], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc0], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc4], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xcc], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xd0], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xd4], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xd8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xdc], 0
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.00415492
mov byte [ebp - 4], 4
push 0x4cdbbc
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
call fcn.00415492
mov eax, dword [ebp - 0x10]
and dword [eax + 0x110], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42bcf6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x42bd32
mov edi, dword [ebp - 0x1c]
xor edx, edx
push 0x10
pop esi
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x42bd51
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00455912
mov esp, ebp
pop ebp
ret

Function at 0x42bdb3
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
sub ebx, eax
lea ecx, [ebx + esi*4]
push dword [ebp + ecx - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x42bdef
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
push 0x10
pop esi
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl ecx, 4
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x42be11
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x42c3e2
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c42e
push ebx
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10000
push eax
push 0x1002
mov ebx, 0xffff
push ebx
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push ebx
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x42c496
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
call fcn.0042c47d
mov eax, dword [esi + 8]
test eax, eax
je 0x42c4be
cmp byte [eax], 0
je 0x42c548
call fcn.0042c3e2
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42c53b
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00458260
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x42c52a
cmp eax, 0xffffffff
jne 0x42c53b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42c53b
push 1
mov ecx, esi
call fcn.0042c55c
test al, al
je 0x42c53b
mov byte [esi + 4], 1
cmp byte [esi + 4], 0
jne 0x42c548
mov ecx, esi
call fcn.0042c47d
mov ecx, dword [ebp - 8]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.00455912
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42c55c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x42c604
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x42c600
add esi, esi
jmp 0x42c600
mov eax, dword [edi + 8]
test eax, eax
je 0x42c59b
cmp byte [eax], 0
je 0x42c604
mov eax, dword [edi]
lea ecx, [ebp - 0x224]
and dword [ebp - 0x224], 0
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x218], eax
inc eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x220], 0xc350
push ecx
lea ecx, [ebp - 0x114]
test bl, bl
je 0x42c5ec
push ecx
push 0
jmp 0x42c5ef
push 0
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x42c619
sub esi, 0xc350
test esi, esi
jg 0x42c58f
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455912
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x114]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
neg eax
sbb eax, eax
neg eax
jmp 0x42c606
Function at 0x42c6d7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
jmp 0x42c72c
mov eax, dword [esi + 8]
test eax, eax
je 0x42c6fb
cmp byte [eax], 0
je 0x42c730
mov eax, dword [esi + 8]
test eax, eax
je 0x42c6fb
cmp byte [eax], 0
je 0x42c723
push 0
mov ecx, esi
call fcn.0042c55c
test al, al
je 0x42c723
cmp dword [esi], 0xffffffff
je 0x42c723
mov eax, dword [ebp + 8]
push 0
sub eax, edi
add eax, dword [ebp + 0xc]
push edi
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x42c726
or eax, 0xffffffff
test eax, eax
jle 0x42c738
sub edi, eax
test edi, edi
jg 0x42c6e3
mov al, 1
pop edi
pop esi
pop ebp
ret 8
xor al, al
jmp 0x42c732
Function at 0x42c73c
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x4a6196
call fcn.004561ed
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [0x4e5c68]
lea ebx, [edi + 4]
xor eax, eax
mov dword [edi], eax
push 8
mov dword [ebx + 4], eax
push eax
lea eax, [ebx + 8]
mov dword [ebx], vtable.._AV__Thread_U__BindMember0_VTransportMgr_DataTransport__P812_AEXPAX_Z_fund___fund__.0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0x42d352
push eax
mov byte [ebx + 0x18], 1
call fcn.00458260
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
mov dword [edi + 0x20], esi
lea esi, [edi + 0x24]
push eax
mov dword [ebp - 0x18], esi
call fcn.004032eb
and dword [esi], 0
add esp, 0x10
and dword [esi + 4], 0
call fcn.0042ff9c
mov dword [esi], eax
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
push eax
mov dword [ebp - 0x18], esi
call fcn.004032eb
and dword [esi], 0
and dword [esi + 4], 0
pop ecx
call fcn.0042ff0a
mov dword [esi], eax
mov al, byte [ebp + 0xc]
xor ecx, ecx
mov byte [edi + 0x34], al
mov byte [edi + 0x43c], cl
mov byte [edi + 0x43d], cl
mov byte [edi + 0x43e], 1
mov dword [edi + 0x440], ecx
mov dword [edi + 0x444], ecx
mov dword [edi + 0x448], ecx
lea ecx, [edi + 0x44c]
call fcn.0040c36c
xor eax, eax
lea esi, [edi + 0x474]
mov word [edi + 0x464], ax
mov dword [edi + 0x468], eax
mov dword [edi + 0x46c], eax
mov dword [edi + 0x470], eax
mov dword [ebp + 0xc], esi
or dword [esi], 0xffffffff
mov byte [esi + 4], al
lea eax, [edi + 0x43c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x2710
push ecx
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 5
call fcn.0042ea20
mov byte [esi + 0x1c], 1
lea ecx, [edi + 0x494]
call fcn.0042c390
push 0x400
lea eax, [edi + 0x38]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.00458260
add esp, 0xc
cmp byte [edi + 0x34], 0
je 0x42c878
mov ecx, edi
call fcn.0042ca43
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea esi, [edi + 0x43c]
mov dword [edi + 0x438], eax
cmp byte [esi], 0
jne 0x42c8dc
push dword [edi + 0x438]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor edx, edx
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea eax, [ebx + 8]
mov byte [ebx + 0x18], dl
push eax
push 0x42f078
push edx
push edx
mov dword [eax], ebx
mov dword [ebx + 0xc], edx
call fcn.0045fd24
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebx + 4], eax
test eax, eax
jne 0x42c8dc
mov byte [ebx + 0x18], 1
mov byte [esi], cl
mov eax, edi
call fcn.004561b6
ret 8
Function at 0x42cf34
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x74
mov eax, 0x4a6291
call fcn.00456221
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push str.dr_padcket.dat
call fcn.00415492
lea eax, [ebp - 0x38]
xor esi, esi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
push eax
call fcn.0042d2f5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040b307
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
lea ecx, [ebp - 0x50]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42cfac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
cmp eax, 0x100000
jbe 0x42cfb7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0042ced8
jmp 0x42d112
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0046a9d6
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
call fcn.0042ea20
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.004291df
jmp 0x42d0e0
mov eax, dword [ecx]
mov dword [ebp - 0x58], eax
cmp dword [eax + 0xc], 0
je 0x42d0da
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x70], edx
add edx, 0x15180
mov dword [ebp - 0x5c], eax
adc eax, esi
cmp dword [ebp - 0x68], eax
jg 0x42d0da
jl 0x42d020
cmp dword [ebp - 0x6c], edx
jae 0x42d0da
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
call fcn.0041a3a7
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x58]
add eax, 0x30
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.00401e9e
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x58]
mov ax, word [eax + 0x48]
mov word [ebp - 0x16], ax
call fcn.0040306c
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x58]
push dword [eax]
lea ecx, [ecx + 0x14]
call fcn.0042c2dc
test al, al
je 0x42d0d7
push esi
lea eax, [ebp - 0x60]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
push esi
push eax
movzx eax, word [ebp - 0x18]
push eax
call fcn.00415551
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x80]
call fcn.0040306c
push esi
mov ecx, dword [eax]
lea eax, [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebp - 0x14]
add ecx, 0x10
add eax, dword [ebp - 0x64]
add eax, ecx
mov dword [ebp - 0x64], eax
cmp eax, 0x100000
ja 0x42d0f6
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.0042e944
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax]
jne 0x42cfea
push ebx
call fcn.0042ced8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042f2e9
lea ecx, [ebp - 0x50]
call fcn.0040b307
mov eax, esi
call fcn.004561cb
ret 4
Function at 0x42d124
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x64
mov eax, 0x4a62d7
call fcn.00456221
mov ebx, ecx
mov ecx, dword [ebx + 0x20]
call fcn.00431417
test eax, eax
je 0x42d2ef
push str.dr_padcket.dat
lea ecx, [ebp - 0x38]
call fcn.00415492
lea eax, [ebp - 0x38]
xor edi, edi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], edi
push eax
call fcn.0042d2f5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040b307
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
lea ecx, [ebp - 0x50]
call fcn.00415551
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d2e7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp eax, 0x100000
jbe 0x42d1b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d2e7
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0042ea20
push edi
mov byte [ebp - 4], 3
call fcn.0046a9d6
pop ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
jmp 0x42d2c2
cmp dword [edi + 0xc], 0
je 0x42d2b1
mov edx, dword [edi]
mov ecx, edx
mov eax, dword [edi + 4]
add ecx, 0x15180
mov dword [ebp - 0x64], eax
adc eax, 0
cmp dword [ebp - 0x5c], eax
jg 0x42d2b1
jl 0x42d20f
cmp dword [ebp - 0x60], ecx
jae 0x42d2b1
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call fcn.0041a3a7
dec eax
lea ecx, [edi + 0x30]
mov word [ebp - 0x14], ax
call fcn.00401e9e
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x70]
mov ax, word [edi + 0x48]
mov word [ebp - 0x16], ax
call fcn.0040306c
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x14]
push dword [eax]
call fcn.0042c2dc
test al, al
je 0x42d2b1
push 0
lea eax, [ebp - 0x58]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x18]
lea ecx, [edi + 0x30]
push eax
call fcn.00415551
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x70]
call fcn.0040306c
push 0
mov ecx, dword [eax]
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x14]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [ebp - 0x14]
movzx ecx, word [ebp - 0x18]
add eax, 0x10
add eax, dword [ebp - 0x54]
add eax, ecx
mov dword [ebp - 0x54], eax
push ecx
mov ecx, edi
call fcn.00428fd0
cmp dword [ebp - 0x54], 0x100000
ja 0x42d2d4
mov ecx, dword [ebx + 0x20]
call fcn.0043139b
mov edi, eax
test edi, edi
jne 0x42d1de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0042f2e9
lea ecx, [ebp - 0x50]
call fcn.0040b307
call fcn.004561cb
ret
Function at 0x431aab
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x4a686e
call fcn.00456221
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push 0x4ceb30
push eax
mov dword [ebp - 4], ebx
mov edi, ebx
mov esi, ebx
call fcn.00468856
mov dword [ebp - 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x431c49
push 2
push ebx
push eax
call fcn.00468b42
push dword [ebp - 0x2c]
call fcn.0046913b
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00468b42
mov eax, dword [ebp - 0x34]
add esp, 0x1c
cmp eax, 0xc800
jg 0x431c2a
inc eax
push 0x4e48a4
push eax
mov dword [ebp - 0x38], eax
call fcn.00455c0c
mov esi, eax
mov dword [ebp - 0x4c], esi
pop ecx
pop ecx
test esi, esi
je 0x431c2a
push dword [ebp - 0x38]
push ebx
push esi
call fcn.00458260
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
push eax
push 1
push esi
call fcn.00469312
add esp, 0x1c
lea ecx, [ebp - 0x28]
push esi
call fcn.00415492
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00431505
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040b307
push 0x4e48a4
push 0x2800
call fcn.00455c0c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x431c2a
push 0x2800
push ebx
push edi
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x44]
push eax
call fcn.0042e4ce
mov esi, dword [eax]
jmp 0x431c14
mov ecx, dword [ebp - 0x30]
push esi
call fcn.0042b5b7
mov ecx, dword [ebp - 0x30]
call fcn.00401e75
test al, al
jne 0x431c11
mov ecx, dword [ebp - 0x30]
push 0x27ff
call fcn.00415551
push eax
push edi
call fcn.0046ab50
add esp, 0xc
mov eax, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x431bf0
cmp cl, 9
jne 0x431bf3
inc eax
jmp 0x431be4
cmp byte [eax], 0x3b
je 0x431c11
push 0x3b
push edi
call fcn.0045a420
pop ecx
pop ecx
test eax, eax
je 0x431c08
mov byte [eax], bl
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00431645
add esi, 0x18
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
call fcn.0042e476
cmp esi, dword [eax]
jne 0x431bb6
mov esi, dword [ebp - 0x4c]
xor ebx, ebx
inc ebx
push dword [ebp - 0x2c]
call fcn.004696c8
pop ecx
test esi, esi
je 0x431c3e
push esi
call fcn.00455c15
pop ecx
test edi, edi
je 0x431c49
push edi
call fcn.00455c15
pop ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 2
call fcn.0042ef63
mov eax, ebx
call fcn.004561cb
ret 0xc
Function at 0x43221a
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x4a5073
call fcn.00456221
mov ebx, ecx
mov ecx, dword [ebp + 8]
or edi, 0xffffffff
cmp ecx, edi
sete al
test al, al
je 0x432243
xor eax, eax
cmp ecx, edi
cmovne eax, ecx
jmp 0x4323b3
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x432271
mov edx, dword [ebx + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x432271
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [ebx + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4323b3
xor esi, esi
cmp dword [ebx + 0x4c], esi
je 0x4323b1
mov ecx, ebx
call fcn.00432672
cmp dword [ebx + 0x38], esi
jne 0x4322a0
push dword [ebx + 0x4c]
mov ebx, dword [ebp + 8]
push ebx
call fcn.004314cb
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4323b1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push esi
push 8
mov byte [ebp - 0x2c], al
call fcn.00414f48
mov dword [ebp - 4], esi
jmp 0x43232f
cmp eax, 1
jg 0x432391
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00419fec
mov ecx, eax
call fcn.00401db3
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x432303
push dword [ebx + 0x4c]
lea eax, [ebp - 0x44]
push esi
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00419fec
mov ecx, eax
call fcn.00401db3
push eax
call fcn.004695fa
add esp, 0x10
cmp esi, eax
jne 0x4323a9
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x34], eax
jne 0x43238c
test esi, esi
jne 0x43232f
lea ecx, [ebp - 0x28]
call fcn.00401e9e
cmp eax, 0x20
jae 0x4323a9
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004155ec
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00419fec
mov ecx, eax
call fcn.00401db3
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00401e9e
add esi, eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x3c]
push eax
call fcn.00419fec
mov ecx, eax
call fcn.00401db3
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 0x38]
push esi
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
jns 0x4322b6
jmp 0x4323a9
mov edi, dword [ebp + 8]
jmp 0x4323a9
cmp eax, 3
jne 0x4323a9
push dword [ebx + 0x4c]
push dword [ebp - 0x2c]
call fcn.004314cb
test al, al
pop ecx
cmovne edi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040b307
mov eax, edi
call fcn.004561cb
ret 4