joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41efb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x980563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41efef
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f008
lea eax, [ebp - 0x10]
mov edx, dword [0x996208]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f01b
lea eax, [ebp - 0x10]
mov edx, dword [0x996208]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f027
adc edx, 0
mov edx, dword [edx*4 + 0x9950ac]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f135
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f128
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f128
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f128
cmp dx, 0x150
ja 0x41f128
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f128
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f128
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f14d
inc ebx
cmp ebx, 0x19
jne 0x41efe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x98056a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x41f488
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00406d94
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00406d3c
test eax, eax
je 0x41f525
cmp word [esi], 0x5a4d
jne 0x41f525
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00406d94
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00406d3c
test eax, eax
je 0x41f525
cmp dword [ebp - 0x1c], 0x4550
jne 0x41f525
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00406e78
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41f525
cmp ax, 0x150
ja 0x41f525
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00406d3c
test eax, eax
je 0x41f525
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x36525036
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4dc04479
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x6cc87b8d
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7e620456
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10004580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004598
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100045ca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100045c6
cmp esi, eax
jae 0x100045ca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100045b8
cmp esi, eax
jb 0x100045d0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x1000de10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x4c], 0
jne 0x1000de1f
xor al, al
pop ebp
ret 8
pop ebp
jmp fcn.1000e540
Function at 0x100210a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182d34
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x10021132
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.TransferIO::SmsGroupInfo.0
call fcn.10145a60
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea eax, [esi + 0x18]
mov dword [esi + 8], eax
mov eax, 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea ecx, [esi + 0x40]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x50], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x54], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10021150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182d34
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x100211df
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.TransferIO::SmsBaseInfo.0
call fcn.10145a60
mov eax, 0x101eb21c
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100259b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018726c
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov edi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x34
call edi
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x10025a03
push eax
call fcn.100248a0
jmp 0x10025a05
xor eax, eax
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10027120
mov esi, dword [ebp + 8]
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x30], 1
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x2c], 0x64
mov eax, dword [esi]
cmp byte [eax + 8], bl
je 0x10025abf
push 0xc8
call edi
add esp, 4
cmp eax, ebx
je 0x10025a5a
call fcn.100247d0
jmp 0x10025a5c
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.10026950
mov byte [esp + 0x30], 2
mov eax, dword [esi]
mov edi, dword [esp + 0x1c]
call fcn.100ac2e0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x30], 1
mov esi, dword [esp + 0x18]
mov byte [ecx + 8], 1
cmp esi, ebx
je 0x10025adb
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10025adb
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10025adb
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x10025adb
mov eax, dword [esp + 0x1c]
mov byte [eax + 8], bl
mov esi, dword [esi]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
add esi, 0x10
add ecx, 0x10
push esi
call fcn.1000bd90
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
cmp ecx, ebx
je 0x10025af1
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x1c]
push eax
call edx
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x10025b2a
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10025b2a
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10025b2a
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10027850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0xc], 0
push edi
je 0x10027888
mov eax, dword [esi + 4]
test eax, eax
je 0x1002787a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x10027888
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
push 0x101a5600
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi + 8], eax
test eax, eax
jne 0x100278ab
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
xor eax, eax
mov edx, 2
mov dword [ebp - 0x14], eax
push 0x13ad
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1002789a
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0xc], 1
mov eax, 1
pop edi
call fcn.10178946
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183d18
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x10027965
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 4]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jns 0x100279d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [section..data]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp + 8], eax
push esi
push 0x101a560c
lea edi, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10027dc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100279d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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 4
Function at 0x10027ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183ce0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
cmp dword [eax - 0xc], esi
jne 0x10027be7
mov dword [ebp - 0x14], esi
jmp 0x10027cb8
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x10027c26
lea edi, [eax + eax]
mov eax, edi
call fcn.1017ccb0
mov esi, esp
test esi, esi
je 0x10027c26
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10027c28
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10027c30
sub ecx, esi
push 0
mov esi, ecx
push esi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x10027cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [section..data]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
push 0x101a5674
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10027dc0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10027cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10027cdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret 8
Function at 0x10034ac0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c27b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.BackupRestoreTask.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [esi + 0x10]
mov dword [ebp - 4], edi
push eax
mov dword [esi + 0xc], vtable.MGMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dl, byte [ebp + 0x1c]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
push 0xac
mov dword [esi + 0x30], ecx
mov byte [esi + 0x34], dl
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 3
cmp eax, edi
je 0x10034b51
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push ecx
push edx
mov ecx, ebx
mov edx, eax
call fcn.10033b20
jmp 0x10034b53
xor eax, eax
lea ecx, [esi + 0x38]
push eax
mov byte [ebp - 4], 2
push ecx
mov dword [ecx], edi
mov dword [ecx + 4], edi
call fcn.10035ee0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push edi
mov word [ecx], ax
push ebx
or eax, 0xffffffff
call fcn.1000b5b0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov dword [esi + 0x5c], ecx
add eax, 4
lea ecx, [ebp - 0x1c]
call fcn.100353a0
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp ebx, edi
je 0x10034bb3
lea edx, [ebx + 8]
mov ecx, 1
lock xadd dword [edx], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x10034bef
mov edi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10034bef
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10034bef
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.10035400
lea edi, [esi + 4]
mov byte [ebp - 4], 9
call fcn.100c0900
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x10034c3a
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10034c3a
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10034c3a
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [ebp - 4], 5
test ebx, ebx
je 0x10034c57
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10034c57
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100362e0
Capabilities:
Get file size

Disassembly:
push esi
push edi
or edi, 0xffffffff
cmp dword [eax + 0x14], 8
jb 0x100362ed
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10036318
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
xor edx, edx
pop esi
ret
Function at 0x1004da10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018a428
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ecx], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0
jb 0x1004da56
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004da91
push str.CreateFile_failed_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1004dbab
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.10124806
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x50], ebx
jne 0x1004da8a
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004dad8
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000c100
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x4c], esi
push 1
push esi
push 0x101a8aa0
lea ecx, [ebp - 0x2c]
call fcn.1003ae50
mov edi, eax
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10025fb0
push 0xb
push 0
push str.BEGIN:VCARD
lea ecx, [ebp - 0x48]
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1004db46
mov eax, dword [ebp - 0x54]
inc dword [eax]
inc ebx
jmp 0x1004db5f
push 9
push 0
push str.END:VCARD
lea ecx, [ebp - 0x48]
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1004db5f
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x34], 0x10
lea esi, [edi + 1]
jb 0x1004db75
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp edi, 0xffffffff
jne 0x1004db04
cmp ebx, dword [ebp - 0x4c]
je 0x1004db96
cmp dword [ebp - 0x18], 0x10
jb 0x1004db92
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x1004dbab
cmp dword [ebp - 0x18], 0x10
jb 0x1004dba9
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret