joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402040
Capabilities:
Create directory

Disassembly:
push esi
push 0x432928
push str.C:_tmp_
call fcn.0040bc16
add esp, 8
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
pop esi
ret

Function at 0x402b10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402bb6
call edi
sub eax, ebx
cmp eax, 0x2710
ja 0x402b42
push 5
call ebp
jmp 0x402b26
push 0xa
mov ecx, esi
lea edi, [esi + 0x5c]
call fcn.00403a50
push eax
mov ecx, edi
call fcn.0041d17a
push 0x432988
mov ecx, edi
call fcn.0041d17a
push 0
mov ecx, esi
call fcn.0041bb66
push 1
push 0x3eb
mov ecx, esi
call fcn.0041c4d6
mov ecx, eax
call fcn.0041c6d8
push 0x10
push 7
mov ecx, esi
call fcn.00403a50
push eax
push 0x13
mov ecx, esi
call fcn.00403a50
push eax
mov ecx, esi
call fcn.0041b40a
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x78]
push ecx
call edi
mov dword [esi + 0x78], 0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4038a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425008
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov eax, dword [esp + 0x1c]
push str.DLLEXE
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4038fc
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x403932
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403966
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40399a
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4039de
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x1c]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403a19
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041cf30
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x40f330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ddc3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f373
test byte [esp + 8], 2
je 0x40f373
call fcn.0040de36
mov dword [eax], 0xd
call fcn.0040de3f
mov dword [eax], 5
jmp 0x40f34c
xor eax, eax
ret
Function at 0x418780
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.0040ce60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41884b
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 0x41884b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4187fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418809
or bh, 8
and edi, 0x8000000
je 0x418824
mov eax, dword [0x43a25c]
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 0x41884b
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 0x418c20
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 0x418c4b
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 0x418c6f
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 0x418c8a
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 0x41bdd3
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 0x41be15
call fcn.004220e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41be15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41be0c
xor eax, eax
jmp 0x41be1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041be23
pop edi
pop esi
pop ebx
ret 4

Function at 0x41dc2b
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 0x41dc4d
cmp dword [edi + 0x3c], 0
jne 0x41dc4d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004220e1
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.0041dc7a
pop edi
pop esi
pop ebx
ret 8

Function at 0x422644
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422672
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422690
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004225aa
jmp 0x422690
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422690
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004225aa
test edi, edi
mov eax, edi
jne 0x42267a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405729
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea edi, [esi + 0x1f0]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4057f9
xor ebx, ebx
cmp byte [ebp + 0x20], bl
je 0x4057ab
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x405775
mov eax, dword [esi + 0x138]
push 0x67
push 0x14
lea edx, [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push dword [esi + 0xe0]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4057ab
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4057ab
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esi + 0x28], 8
jb 0x4057b6
mov ecx, dword [esi + 0x14]
jmp 0x4057b9
lea ecx, [esi + 0x14]
lea eax, [esi + 0xe4]
cmp dword [eax + 0x18], 8
jb 0x4057ca
mov eax, dword [eax + 4]
jmp 0x4057cd
add eax, 4
push dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [esi + 0x1d8]
push eax
lea eax, [esi + 0x1c0]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040587d
pop edi
pop ebx
leave
ret 0x1c
Function at 0x40a45b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
mov dword [ebp - 0x38], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, 0xffffffff
je 0x40a608
push str.client.update.sandai.net
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40a4ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
jmp 0x40a602
push 2
pop ecx
mov word [ebp - 0x2c], cx
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x26d0
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2a], ax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40a49f
mov edi, dword [esi + 0x14]
add edi, 0x18
je 0x40a608
push edi
call fcn.00428308
pop ecx
push edi
mov ebx, eax
push 0
push ebx
call fcn.00428d7a
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x40a50c
mov esi, dword [esi + 4]
jmp 0x40a50f
add esi, 4
test ebx, ebx
je 0x40a524
push dword [ebp + 0xc]
mov ecx, ebx
push eax
push esi
mov eax, edi
call fcn.0040a619
add esp, 0xc
xor esi, esi
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40a5f0
add esi, eax
cmp esi, edi
jb 0x40a526
push ebx
call fcn.004288c4
mov esi, dword [sym.imp.WS2_32.dll_recv]
pop ecx
xor edi, edi
mov ebx, dword [ebp - 0x30]
push 0
push 0x18
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x1c]
push eax
push ebx
call esi
cmp eax, 0xffffffff
je 0x40a5fb
test eax, eax
je 0x40a601
add edi, eax
cmp edi, 0x18
jb 0x40a558
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40a601
cmp eax, 0xa00000
ja 0x40a601
xor edi, edi
inc eax
push eax
call fcn.00428308
mov ebx, eax
mov eax, dword [ebp - 0x34]
pop ecx
inc eax
push eax
push edi
push ebx
call fcn.00428d7a
add esp, 0xc
mov eax, dword [ebp - 0x34]
push 0
sub eax, edi
push eax
lea eax, [ebx + edi]
push eax
push dword [ebp - 0x30]
call esi
cmp eax, 0xffffffff
je 0x40a5f0
add edi, eax
cmp edi, dword [ebp - 0x34]
jb 0x40a5b5
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__]
push ebx
call fcn.004288c4
pop ecx
mov al, 1
jmp 0x40a60a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x30]
jmp 0x40a602
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428868
leave
ret
Function at 0x40ed2c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40ed59
lea eax, [edi + 0x3e4]
cmp dword [eax + 0x18], 8
jb 0x40ed46
mov eax, dword [eax + 4]
jmp 0x40ed49
add eax, 4
push eax
push dword [edi + 0x470]
mov eax, edi
call fcn.0040ec52
jmp 0x40edc2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40edc2
push ebx
push 0x10
push 0x10
push 0x10
push 1
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x40edc1
push esi
lea esi, [edi + 0x474]
mov eax, dword [esi]
test eax, eax
je 0x40ed97
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
and dword [esi], 0
push dword [ebp + 8]
lea ecx, [edi + 0x478]
mov dword [esi], ebx
call dword [0x43436c]
cmp dword [ebp + 0xc], 0
pop esi
jne 0x40edb6
mov dword [ebp + 0xc], 0x438c04
push dword [ebp + 0xc]
mov eax, edi
push ebx
call fcn.0040ec52
pop ebx
pop ebp
ret 8

Function at 0x410a10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
cmp byte [esi + 0xcc], bl
je 0x410a28
xor al, al
jmp 0x410ab9
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x54], eax
cmp eax, ebx
je 0x410a21
lea edi, [esi + 0xc0]
mov byte [esi + 0xcc], 1
mov dword [ebp - 4], ebx
cmp dword [edi], ebx
jbe 0x410a5f
mov ecx, esi
call fcn.00410daa
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jb 0x410a4e
mov eax, dword [edi]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
mov dword [esi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x410ab7
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x40fa98
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x410aa5
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], ebx
jmp 0x410ab7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x410d05
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0xd0
push edi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.00410f2d
mov esi, eax
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esi + 8], eax
push esi
mov dword [esi + 0xc], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
cmp dword [ebx], edi
jne 0x410d61
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x410d67
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
jmp 0x410d97
mov eax, dword [ebp + 8]
push esi
push 0
push dword [ebp - 4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ebx, eax
test ebx, ebx
jne 0x410d97
mov edi, esi
mov esi, dword [ebp - 8]
call fcn.00410f98
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x41379d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call fcn.004282f6
mov edi, eax
cmp edi, 0xffffffff
je 0x413824
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004282fc
jmp 0x41380e
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x413801
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x413814
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.00428302
test eax, eax
jne 0x4137da
jmp 0x41381d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00428868
leave
ret

Function at 0x41508a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x4150ca
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [0x43436c]
push str.Thunder_NetworkXLLiveUD_
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esi + 0x18], 8
jb 0x4150f1
mov esi, dword [esi + 4]
jmp 0x4150f4
add esi, 4
call fcn.0041523c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428868
leave
ret
Function at 0x415106
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [0x43436c]
push str.XLLiveUD_
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x4397f4
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x4389d8
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
cmp dword [esi + 0x18], 8
jb 0x415181
mov esi, dword [esi + 4]
jmp 0x415184
add esi, 4
call fcn.0041523c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428868
leave
ret

Function at 0x415d77
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x415e1b
xor eax, eax
cmp ax, word [edi]
je 0x415e1b
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x415e17
inc eax
push esi
push eax
call fcn.00428308
mov esi, eax
pop ecx
cmp esi, ebx
je 0x415e16
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415e0f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4389d8
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415e0f
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push esi
call fcn.004288c4
pop ecx
pop esi
mov al, bl
jmp 0x415e28
push 0x132b3a1
call fcn.00419a5e
pop ecx
xor al, al
pop edi
pop ebx
leave
ret