joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c950
Capabilities:
Accept command line arguments

Disassembly:
push ecx
call fcn.0040c8f0
test eax, eax
jne 0x40c961
mov eax, 1
pop ecx
ret
lea eax, [esp]
mov dword [esp], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x40c981
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp]
cmp eax, 2
jge 0x40c998
mov eax, 2
pop ecx
ret
jne 0x40c9a8
mov eax, dword [0x43e030]
test eax, eax
mov eax, 2
jne 0x40c9ad
mov eax, 3
pop ecx
ret

Function at 0x40e3c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41d710]
cmp eax, ecx
jne 0x40e427
push eax
mov dword [0x41d730], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x41d72c]
push 0
push 0
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push str._DealSingleObject__g_Global.Sync.hWaitMutex__n
call fcn.00402970
push 0
push 0
push 0
push 0x40e3a0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x1c
test eax, eax
je 0x40e421
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
cmp eax, dword [0x41d718]
jne 0x40e4cb
push str._DealSingleObject__g_hLogFileThread_n
call fcn.00402970
mov eax, dword [0x43e034]
add esp, 4
cmp eax, 0xa
jbe 0x40e474
push str._DealSingleObject_dwTryCount_Upto_Max_n
call fcn.00402970
mov ecx, dword [0x41d718]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41d718], 0
mov eax, 1
ret
mov edx, dword [0x43e034]
push esi
inc edx
push 0xa
mov dword [0x43e034], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x41d718]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d734]
push 0x41d718
push eax
mov dword [0x41d718], 0
call fcn.0040eef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e4c7
push str._DealSingleObject__CreateLogFileThread_Failed_n
call fcn.00402970
add esp, 4
mov eax, esi
pop esi
ret
mov ecx, dword [0x41d714]
cmp eax, ecx
jne 0x40e517
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x41d714]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._DealSingleObject__g_Global.Sync.hSystemMutex_n
mov dword [0x41d714], 0
call fcn.00402970
mov edx, dword [0x41d734]
push 0x41d714
push edx
call fcn.0040cb50
add esp, 0xc
mov eax, 1
ret
cmp eax, dword [0x41d708]
jne 0x40e561
push str._DealSingleObject__g_Global.Module.hSangforSd__n
call fcn.00402970
mov eax, dword [0x41d708]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x41d708]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
mov dword [0x41d708], 0
call fcn.00407c30
add esp, 8
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40e7b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push eax
push esi
push esi
push 0x40e690
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
jne 0x40e7e5
push str._CreateMonitorThread__beginthreadex_Failed_n
call fcn.00402970
add esp, 4
mov eax, esi
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x40ed00
Capabilities:
Create udp socket

Disassembly:
push ecx
push esi
push 0x11
push 2
push 2
mov dword [esp + 0x10], 0
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ed21
or eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push esi
call fcn.0040ebf0
add esp, 0xc
cmp eax, 1
je 0x40ed52
push str._CreateLogFileSocket__BindLogFileSocket_Failed_n
call fcn.00402970
add esp, 4
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
push str._CreateLogFileSocket__Listen_Port_u_n
call fcn.00402970
mov eax, dword [esp + 0xc]
push eax
call fcn.0040eb00
add esp, 0xc
cmp eax, 1
je 0x40ed8c
push str._CreateLogFileSocket__SaveLogFilePort_Failed_n
call fcn.00402970
add esp, 4
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
push 1
push 0x7ea
push ecx
push esi
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40edc2
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._CreateLogFileSocket_WSAAsyncSelect_Failed__Error_u_n
call fcn.00402970
add esp, 8
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40eef0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 4], 3
je 0x40ef29
push 0
push 0
push 0
push 0x40edd0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
jne 0x40ef29
push str._CreateLogFileThread__beginthreadex_Failed_n
call fcn.00402970
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40efa0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
test eax, eax
jne 0x40efb6
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
pop ebx
jne 0x40efe1
mov ecx, dword [esi]
mov edi, 1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
cmp eax, 0x102
jne 0x40eff5
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor edi, edi
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
Function at 0x40f050
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x40f061
mov eax, 1
pop esi
ret
push 0
push 0
push 0x7e8
push str.SangforLogFileWin
push str.SangforLogFileClass
call fcn.0040f010
add esp, 0x14
test eax, eax
jne 0x40f094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._EndLogFileThread_SendMessageToWnd_Faield__Error_u
call fcn.00402970
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f0c0
mov eax, dword [esi]
mov edi, 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
ret
push eax
push str._EndLogFileThread_WaitForSingleObject_Faield__Error_u
call fcn.00402970
mov edx, dword [esi]
add esp, 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f410
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x218
push edi
push 0x403f10
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x8e]
mov word [esp + 0x8c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x41d6f0]
push 0
push eax
lea ecx, [esp + 0x10]
mov dword [0x41d730], 0
mov dword [esp + 0xc], 0x12
call fcn.004049b0
lea ecx, [esp + 0x8c]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
pop edi
je 0x40f482
push str._WinMain__WSAStartup_Failed_n
jmp 0x40f5f7
mov edx, dword [esp + 0x224]
push edx
call fcn.0040f3d0
add esp, 4
mov dword [0x43e030], eax
call fcn.0040f220
test eax, eax
jne 0x40f4aa
push str._WinMain__InitialProc_Failed_n
jmp 0x40f5f7
mov eax, dword [0x41d734]
push 0x41d714
push eax
call fcn.0040cb50
add esp, 8
test eax, eax
jne 0x40f4d3
push str._WinMain__CreateSystemProc_Failed_n
call fcn.00402970
add esp, 4
jmp 0x40f58a
mov ecx, dword [esp + 0x21c]
mov edx, dword [0x41d734]
push ecx
push edx
call fcn.0040e1f0
add esp, 8
mov dword [0x41d72c], eax
test eax, eax
jne 0x40f505
push str._WinMain__CreateMainWindow_Failed_n
call fcn.00402970
add esp, 4
jmp 0x40f58a
mov eax, dword [0x41d734]
push 0x41d718
push eax
call fcn.0040eef0
add esp, 8
test eax, eax
jne 0x40f52b
push str._WinMain__CreateLogFileThread_Failed_n
call fcn.00402970
add esp, 4
jmp 0x40f58a
push 0x41d71c
push 0x41d724
call fcn.0040e7b0
add esp, 8
test eax, eax
jne 0x40f550
push str._WinMain__CreateMonitorThread_Failed_n
call fcn.00402970
add esp, 4
jmp 0x40f58a
mov eax, dword [0x43e030]
test eax, eax
je 0x40f56e
push 1
call fcn.00406380
add esp, 4
call fcn.0040c4e0
test eax, eax
je 0x40f58a
jmp 0x40f573
call fcn.00409fd0
call fcn.0040ef30
mov ecx, dword [0x41d70c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040a1f0
lea edx, [esp]
push 4
push edx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x18
call fcn.00405090
push 0x2710
push 0x41d724
mov dword [0x41d730], 1
call fcn.0040efa0
push 0x2710
push 0x41d728
call fcn.0040f050
push 0x41d72c
call fcn.0040f0f0
push 0x41d714
call fcn.0040f110
add esp, 0x18
call fcn.0040f2e0
call fcn.0040f340
call sub.WS2_32.dll_WSACleanup
push str._WinMain__Leave_Main_Thread_..._n
call fcn.00402970
add esp, 4
lea ecx, [esp + 4]
call fcn.00404a00
xor eax, eax
add esp, 0x218
ret 0x10

Function at 0x40fd70
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x800
test edx, edx
je 0x40fdd1
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80c]
lea ecx, [esp + 4]
push eax
push edx
push 0x7fe
push ecx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
test eax, eax
pop edi
jl 0x40fdbe
cmp eax, 0x7fe
ja 0x40fdbe
jne 0x40fdc6
mov byte [esp + 0x7fe], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x800
ret
Function at 0x4100f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413448
push 0x411cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x440], esi
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x41013c
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xc], edi
je 0x410159
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push ebx
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x41024d
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, edi
je 0x41024d
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x434], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x4101a9
mov dword [ecx], eax
mov word [ebp - 0x42c], di
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.LOGREADEVENT
push ebx
push str._s_s
push 0x207
lea eax, [ebp - 0x42c]
push eax
call fcn.004102e0
add esp, 0x14
lea ecx, [ebp - 0x42c]
push ecx
push 1
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x41024b
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
push str.LOGMUTEX
push ebx
push str._s_s
push 0x207
lea edx, [ebp - 0x42c]
push edx
call fcn.004102e0
add esp, 0x14
lea eax, [ebp - 0x42c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x41024b
mov dword [ebp - 0x1c], 1
xor edi, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00410277
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410450
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1014
call fcn.00411cf0
push ebx
mov ebx, ecx
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x438]
test eax, eax
jne 0x41047c
call fcn.00410090
test eax, eax
jne 0x41047c
mov dword [esp + 4], eax
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1024]
cmp eax, 5
jge 0x4104a4
test eax, eax
jge 0x4104af
mov dword [esp + 0x1024], 4
mov eax, dword [esp + 0x1024]
lea edx, [ebx + 4]
mov ecx, dword [eax*4 + 0x413428]
lea eax, [esp + 0x20]
push ecx
push edx
push str.__s____s_
push 0x7ff
push eax
call fcn.004102e0
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 0x7ff
add esp, 0x18
sub ecx, eax
cmp ecx, 0x7fffffff
ja 0x410529
test ecx, ecx
lea edi, [esp + eax*2 + 0x20]
je 0x410529
mov edx, dword [esp + 0x1030]
mov eax, dword [esp + 0x102c]
lea esi, [ecx - 1]
push edx
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
test eax, eax
jl 0x410523
cmp eax, esi
ja 0x410523
jne 0x410529
mov word [edi + esi*2], 0
mov ecx, 0x7ff
lea eax, [esp + 0x20]
cmp word [eax], 0
je 0x410540
add eax, 2
dec ecx
jne 0x410532
jmp 0x41058d
test ecx, ecx
je 0x41058d
lea edx, [esp + 0xc]
test edx, edx
je 0x410555
mov eax, 0x7ff
sub eax, ecx
jmp 0x410559
mov eax, dword [esp + 0xc]
mov edx, 0x7ff
sub edx, eax
lea eax, [esp + eax*2 + 0x20]
je 0x41058d
mov esi, 0x41cb30
sub esi, eax
mov cx, word [esi + eax]
test cx, cx
je 0x410581
mov word [eax], cx
add eax, 2
dec edx
jne 0x41056d
jmp 0x410585
test edx, edx
jne 0x410588
sub eax, 2
mov word [eax], 0
mov eax, dword [esp + 0x1028]
pop edi
test eax, eax
pop esi
je 0x4105a5
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
test eax, eax
je 0x410605
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 0xa], ecx
push edx
mov dword [esp + 0x12], ecx
mov word [esp + 0xc], 0
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push eax
mov eax, dword [ebx + 0x43c]
push ecx
mov ecx, dword [esp + 0x1024]
push edx
push eax
push ecx
lea ecx, [ebx + 0x414]
call fcn.00410610
pop ebx
add esp, 0x1014
ret 0x10
Function at 0x410bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
push edi
push 0x10
mov dword [esp + 0x10], esi
mov byte [esi + 4], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov cl, byte [esp + 0xf]
push 0x14
mov dword [esp + 0x20], edi
mov byte [esi + 0x10], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dl, byte [esp + 0x13]
push 0x14
mov byte [esp + 0x24], 1
mov byte [esi + 0x1c], dl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x1c]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x20], eax
mov al, byte [esp + 0x17]
add esp, 0xc
mov dword [esi + 0x24], edi
mov byte [esi + 0x2c], al
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x28], edi
mov dword [esi], 0x413454
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471004]
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.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x473620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x473620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x473624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x473628], eax
call edi
push eax
call esi
mov dword [0x473630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47362c], eax
mov eax, dword [0x47362c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x473630], ecx
je 0x4069c7
push eax
call esi
push dword [0x473630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x473624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x473628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x473620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x46d000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x474ecc]
mov edx, dword [0x474d18]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x46d0c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x471004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
cmp ebx, 0x182
jne 0x46d0f5
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x46d113
cmp ebx, 0x19f
jne 0x46d113
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x46d163
push esi
jmp 0x46d120
lea esi, [ebp - 0x824]
mov dword [ebp - 0x824], 0
call fcn.0046d0b0
mov dl, byte [ebp - 0x824]
mov eax, dword [ebp - 0x828]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x46d15d
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x46d120
pop esi
pop edi
cmp ebx, 0x2d
jne 0x46d17d
mov dword [0x475000], 0xa62e7790
mov dword [0x475004], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x46d190
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x474ecc]
push ebx
push esi
mov esi, dword [0x474d18]
mov ebx, eax
cmp eax, 0x5dd
jne 0x46d1b2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x4721d0]
call fcn.0046d080
cmp dword [0x474ecc], 0x2f
jne 0x46d1cd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.0046d0c0
add esp, 4
cmp dword [0x474ecc], 0x568
pop esi
pop ebx
jne 0x46d1f8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x40765c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407678
shr eax, 1
xor eax, 0xedb88320
jmp 0x40767a
shr eax, 1
dec edx
jne 0x40766b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407664
pop esi
ret

Function at 0x4076a7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4076b3
call fcn.0040765c
push 1
push 0x40b558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x4076de
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4041b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x854ee6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esi], vtable.CHandleManagerEx_class_BgmBuffer_.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
lea ebx, [esi + 0x24]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.00412c80
mov dword [ebx + 4], eax
lea eax, [esi + 0x38]
mov dword [ebx + 8], edi
push eax
mov dword [esi + 0x34], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4