joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004139c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42921b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42921b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4291ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4291d9
or bh, 8
and edi, 0x8000000
je 0x4291f4
mov eax, dword [0x47dcfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42921b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4295f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42961b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42963f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42965a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42fb53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42fb75
cmp dword [edi + 0x3c], 0
jne 0x42fb75
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00446b22
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042fbb4
pop edi
pop esi
pop ebx
ret 8

Function at 0x431c4d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x431c85
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00430af7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00430acf
jmp 0x431c91
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x433a4f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x433a91
call fcn.00446b22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x433a91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x433a88
xor eax, eax
jmp 0x433a99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00433a9f
pop edi
pop esi
pop ebx
ret 4
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40381c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401210
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 0x20], ax
movzx eax, word [ebp - 0x20]
cmp eax, 0x804
je 0x401237
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x404
jne 0x401239
jmp 0x40123d
xor eax, eax
jmp 0x4012b1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push section..text
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x40fc24], eax
cmp dword [0x40fc24], 0
jne 0x401277
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.err:__d_n
call fcn.004012b7
add esp, 8
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4012a1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401277
mov edx, dword [0x40fc24]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405478
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e420]
jne 0x405482
repz ret
jmp fcn.00407838
Function at 0x405f95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403be3
and dword [ebp - 0x14], 0
cmp dword [0x40f8d8], 0
mov dword [ebp - 0x18], eax
jne 0x406048
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4060f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4060f0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40f8d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40f8dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40f8e0], eax
call edi
push eax
call esi
mov dword [0x40f8e8], eax
test eax, eax
je 0x406048
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40f8e4], eax
mov eax, dword [0x40f8e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4060a1
cmp dword [0x40f8e8], ecx
je 0x4060a1
push eax
call esi
push dword [0x40f8e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4060a1
test ebx, ebx
je 0x4060a1
call edi
test eax, eax
je 0x406098
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406098
test byte [ebp - 8], 1
jne 0x4060a1
or dword [ebp + 0x10], 0x200000
jmp 0x4060d4
mov eax, dword [0x40f8dc]
cmp eax, dword [ebp - 0x18]
je 0x4060d4
push eax
call esi
test eax, eax
je 0x4060d4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4060d4
mov eax, dword [0x40f8e0]
cmp eax, dword [ebp - 0x18]
je 0x4060d4
push eax
call esi
test eax, eax
je 0x4060d4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40f8d8]
call esi
test eax, eax
je 0x4060f0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4060f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405478
leave
ret
Function at 0x406420
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
mov eax, dword [ebp - 0x198]
mov byte [eax], 0
lea ecx, [ebp - 0x194]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x406491
push str.WSAStartup_failed
call fcn.004035c0
push eax
mov edx, dword [ebp - 0x19c]
push edx
lea ecx, [ebp - 0x1bc]
call fcn.00403220
push 0x4bff28
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCR120.dll__CxxThrowException
movzx ecx, word [ebp - 0x194]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x4064bd
movzx eax, word [ebp - 0x194]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x4064e4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Invalid_WinSock_version
lea ecx, [ebp - 0x1a8]
call fcn.00402a60
push 0x4bfe90
lea edx, [ebp - 0x1a8]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov eax, dword [ebp - 0x198]
mov byte [eax], 1
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret

Function at 0x4065f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
push 6
push 1
movzx edx, byte [ebp + 8]
push edx
call fcn.00406540
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax]
jne 0x40665e
push str.Failed_to_create_socket
call fcn.004035c0
push eax
call fcn.00406530
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403220
push 0x4bff28
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4066af
mov ecx, dword [ebp - 4]
call fcn.00406c00
push str.Failed_to_get_socket_flags
call fcn.004035c0
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403220
push 0x4bff28
lea eax, [ebp - 0x30]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4066e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40672e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x40672e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
jmp 0x406701
cmp dword [ebp - 8], 0xffffffff
jne 0x406816
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4067ee
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp - 4]
call fcn.00406960
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x1007
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x4067ae
push str.Failed_to_get_socket_option
call fcn.004035c0
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403220
push 0x4bff28
lea edx, [ebp - 0x28]
push edx
call sub.MSVCR120.dll__CxxThrowException
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR120.dll_memcpy]
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4067ec
push str.Failed_to_connect
call fcn.004035c0
push eax
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00403220
push 0x4bff28
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR120.dll__CxxThrowException
jmp 0x406816
push str.Failed_to_connect
call fcn.004035c0
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403220
push 0x4bff28
lea ecx, [ebp - 0x50]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40eeb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bf27
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c40e4]
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 ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
movsd xmm0, qword [0x4afe90]
movsd qword [ecx + 8], xmm0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0x1e
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0040f010
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0x50
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040f010
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0040f010
mov byte [ebp - 4], 2
push str.DIYHome_Dump
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0040f080
mov byte [ebp - 4], 3
push str.e10adc3949ba59abbe56e057f20f883e
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040f080
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.0040f010
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa8], 0
mov 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 0x416160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c108
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x4161a0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4161ac
mov al, 1
jmp 0x416351
mov dword [ebp - 0x54], 8
call fcn.00402940
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00402940
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004028c0
add esp, 8
movzx eax, al
test eax, eax
je 0x4161ef
xor al, al
jmp 0x416351
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00414490
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f430
mov ecx, eax
call fcn.00413030
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.0040f590
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f430
mov ecx, eax
call fcn.00413030
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41626b
cmp dword [ebp - 0x38], 1
je 0x416272
cmp dword [ebp - 0x38], 3
je 0x41630d
jmp 0x416325
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f430
mov ecx, eax
call fcn.00413030
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x4162d6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f430
mov ecx, eax
call fcn.00413030
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x4162d6
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x2f]
jmp 0x416351
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4162f9
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x30]
jmp 0x416351
cmp dword [ebp - 0x34], 0
jne 0x41630b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004146c0
jmp 0x41633d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x2e]
jmp 0x416351
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x2d]
jmp 0x416351
jmp 0x416202
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret
Function at 0x42c6c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bf27
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c40e4]
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 ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 1]
mov byte [eax + 1], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 2]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 3]
mov byte [eax + 3], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [ecx + 8]
movsd qword [eax + 8], xmm0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0040efb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040efb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0x48
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0040efb0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
add edx, 0x60
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0040efb0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0x78
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0040efb0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
add ecx, 0x90
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.0040efb0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
mov dword [edx + 0xa8], ecx
mov 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 4
Function at 0x437fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x437fb0
xor al, al
jmp 0x437ff0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x437fc7
xor al, al
jmp 0x437ff0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x437fd5
mov byte [ebp - 2], 1
jmp 0x437fed
mov edx, dword [ebp - 8]
and edx, 0x10
jne 0x437fe3
mov byte [ebp - 1], 0
jmp 0x437fe7
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov byte [ebp - 2], al
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x438000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040f5d0
movzx eax, al
test eax, eax
je 0x43803e
xor al, al
jmp 0x438125
push 0
mov ecx, dword [ebp + 8]
call fcn.0040f570
push eax
call fcn.00437fa0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43805f
mov al, 1
jmp 0x438125
mov dword [ebp - 0x34], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.0040f570
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.0040f010
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
mov eax, dword [0x4c41c0]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR120.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4380f1
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f370
mov eax, dword [0x4c41c0]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f370
lea ecx, [ebp - 0x28]
call fcn.0040f570
push eax
call dword [sym.imp.MSVCR120.dll__mkdir]
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [0x4c41c0]
push edx
push 0
call dword [sym.imp.MSVCR120.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x30], eax
jmp 0x4380a1
cmp dword [ebp - 0x34], 0xffffffff
jne 0x43810f
mov byte [ebp - 0x2a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x2a]
jmp 0x438125
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040f220
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret

Function at 0x454c50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x454c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x454c80
xor al, al
jmp 0x454c9d
xor edx, edx
mov eax, dword [ebp - 0xc]
mov cl, 0x20
call fcn.00499c30
xor ecx, ecx
add eax, dword [ebp - 4]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4