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

Disassembly:
push ecx
call fcn.0040cbc0
test eax, eax
jne 0x40cc31
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 0x40cc51
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp]
cmp eax, 2
jge 0x40cc68
mov eax, 2
pop ecx
ret
jne 0x40cc78
mov eax, dword [0x43e080]
test eax, eax
mov eax, 2
jne 0x40cc7d
mov eax, 3
pop ecx
ret

Function at 0x40e690
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41d760]
cmp eax, ecx
jne 0x40e6f7
push eax
mov dword [0x41d780], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x41d77c]
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.00402a60
push 0
push 0
push 0
push 0x40e670
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x1c
test eax, eax
je 0x40e6f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
cmp eax, dword [0x41d768]
jne 0x40e79b
push str._DealSingleObject__g_hLogFileThread_n
call fcn.00402a60
mov eax, dword [0x43e084]
add esp, 4
cmp eax, 0xa
jbe 0x40e744
push str._DealSingleObject_dwTryCount_Upto_Max_n
call fcn.00402a60
mov ecx, dword [0x41d768]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41d768], 0
mov eax, 1
ret
mov edx, dword [0x43e084]
push esi
inc edx
push 0xa
mov dword [0x43e084], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x41d768]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d784]
push 0x41d768
push eax
mov dword [0x41d768], 0
call fcn.0040f1c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e797
push str._DealSingleObject__CreateLogFileThread_Failed_n
call fcn.00402a60
add esp, 4
mov eax, esi
pop esi
ret
mov ecx, dword [0x41d764]
cmp eax, ecx
jne 0x40e7e7
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x41d764]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._DealSingleObject__g_Global.Sync.hSystemMutex_n
mov dword [0x41d764], 0
call fcn.00402a60
mov edx, dword [0x41d784]
push 0x41d764
push edx
call fcn.0040ce20
add esp, 0xc
mov eax, 1
ret
cmp eax, dword [0x41d758]
jne 0x40e831
push str._DealSingleObject__g_Global.Module.hSangforSd__n
call fcn.00402a60
mov eax, dword [0x41d758]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x41d758]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
mov dword [0x41d758], 0
call fcn.00407ef0
add esp, 8
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40ea80
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push eax
push esi
push esi
push 0x40e960
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 0x40eab5
push str._CreateMonitorThread__beginthreadex_Failed_n
call fcn.00402a60
add esp, 4
mov eax, esi
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x40efd0
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 0x40eff1
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.0040eec0
add esp, 0xc
cmp eax, 1
je 0x40f022
push str._CreateLogFileSocket__BindLogFileSocket_Failed_n
call fcn.00402a60
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.00402a60
mov eax, dword [esp + 0xc]
push eax
call fcn.0040edd0
add esp, 0xc
cmp eax, 1
je 0x40f05c
push str._CreateLogFileSocket__SaveLogFilePort_Failed_n
call fcn.00402a60
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 0x40f092
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._CreateLogFileSocket_WSAAsyncSelect_Failed__Error_u_n
call fcn.00402a60
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 0x40f1c0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 4], 3
je 0x40f1f9
push 0
push 0
push 0
push 0x40f0a0
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 0x40f1f9
push str._CreateLogFileThread__beginthreadex_Failed_n
call fcn.00402a60
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40f270
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
test eax, eax
jne 0x40f286
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 0x40f2b1
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 0x40f2c5
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 0x40f320
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x40f331
mov eax, 1
pop esi
ret
push 0
push 0
push 0x7e8
push str.SangforLogFileWin
push str.SangforLogFileClass
call fcn.0040f2e0
add esp, 0x14
test eax, eax
jne 0x40f364
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._EndLogFileThread_SendMessageToWnd_Faield__Error_u
call fcn.00402a60
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 0x40f390
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.00402a60
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 0x40f6e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x218
push edi
push fcn.00404000
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 [0x41d740]
push 0
push eax
lea ecx, [esp + 0x10]
mov dword [0x41d780], 0
mov dword [esp + 0xc], 0x12
call fcn.00404aa0
lea ecx, [esp + 0x8c]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
pop edi
je 0x40f752
push str._WinMain__WSAStartup_Failed_n
jmp 0x40f8c7
mov edx, dword [esp + 0x224]
push edx
call fcn.0040f6a0
add esp, 4
mov dword [0x43e080], eax
call fcn.0040f4f0
test eax, eax
jne 0x40f77a
push str._WinMain__InitialProc_Failed_n
jmp 0x40f8c7
mov eax, dword [0x41d784]
push 0x41d764
push eax
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40f7a3
push str._WinMain__CreateSystemProc_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x40f85a
mov ecx, dword [esp + 0x21c]
mov edx, dword [0x41d784]
push ecx
push edx
call fcn.0040e4c0
add esp, 8
mov dword [0x41d77c], eax
test eax, eax
jne 0x40f7d5
push str._WinMain__CreateMainWindow_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x40f85a
mov eax, dword [0x41d784]
push 0x41d768
push eax
call fcn.0040f1c0
add esp, 8
test eax, eax
jne 0x40f7fb
push str._WinMain__CreateLogFileThread_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x40f85a
push 0x41d76c
push 0x41d774
call fcn.0040ea80
add esp, 8
test eax, eax
jne 0x40f820
push str._WinMain__CreateMonitorThread_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x40f85a
mov eax, dword [0x43e080]
test eax, eax
je 0x40f83e
push 1
call fcn.00406470
add esp, 4
call fcn.0040c7b0
test eax, eax
je 0x40f85a
jmp 0x40f843
call fcn.0040a250
call fcn.0040f200
mov ecx, dword [0x41d75c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040a470
lea edx, [esp]
push 4
push edx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x18
call fcn.00405180
push 0x2710
push 0x41d774
mov dword [0x41d780], 1
call fcn.0040f270
push 0x2710
push 0x41d778
call fcn.0040f320
push 0x41d77c
call fcn.0040f3c0
push 0x41d764
call fcn.0040f3e0
add esp, 0x18
call fcn.0040f5b0
call fcn.0040f610
call sub.WS2_32.dll_WSACleanup
push str._WinMain__Leave_Main_Thread_..._n
call fcn.00402a60
add esp, 4
lea ecx, [esp + 4]
call fcn.00404af0
xor eax, eax
add esp, 0x218
ret 0x10

Function at 0x410040
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x800
test edx, edx
je 0x4100a1
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 0x41008e
cmp eax, 0x7fe
ja 0x41008e
jne 0x410096
mov byte [esp + 0x7fe], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x800
ret
Function at 0x4103c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413458
push 0x411fa0
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 0x41040c
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 0x410429
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 0x41051d
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 0x41051d
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 0x410479
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.004105b0
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 0x41051b
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.004105b0
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 0x41051b
mov dword [ebp - 0x1c], 1
xor edi, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00410547
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 0x410720
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1014
call fcn.00411fe0
push ebx
mov ebx, ecx
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x438]
test eax, eax
jne 0x41074c
call fcn.00410360
test eax, eax
jne 0x41074c
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 0x410774
test eax, eax
jge 0x41077f
mov dword [esp + 0x1024], 4
mov eax, dword [esp + 0x1024]
lea edx, [ebx + 4]
mov ecx, dword [eax*4 + 0x413438]
lea eax, [esp + 0x20]
push ecx
push edx
push str.__s____s_
push 0x7ff
push eax
call fcn.004105b0
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 0x4107f9
test ecx, ecx
lea edi, [esp + eax*2 + 0x20]
je 0x4107f9
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 0x4107f3
cmp eax, esi
ja 0x4107f3
jne 0x4107f9
mov word [edi + esi*2], 0
mov ecx, 0x7ff
lea eax, [esp + 0x20]
cmp word [eax], 0
je 0x410810
add eax, 2
dec ecx
jne 0x410802
jmp 0x41085d
test ecx, ecx
je 0x41085d
lea edx, [esp + 0xc]
test edx, edx
je 0x410825
mov eax, 0x7ff
sub eax, ecx
jmp 0x410829
mov eax, dword [esp + 0xc]
mov edx, 0x7ff
sub edx, eax
lea eax, [esp + eax*2 + 0x20]
je 0x41085d
mov esi, 0x41cb84
sub esi, eax
mov cx, word [esi + eax]
test cx, cx
je 0x410851
mov word [eax], cx
add eax, 2
dec edx
jne 0x41083d
jmp 0x410855
test edx, edx
jne 0x410858
sub eax, 2
mov word [eax], 0
mov eax, dword [esp + 0x1028]
pop edi
test eax, eax
pop esi
je 0x410875
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
test eax, eax
je 0x4108d5
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.004108e0
pop ebx
add esp, 0x1014
ret 0x10
Function at 0x410eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412976
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], 0x413464
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10077000]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0xfb7b1ac5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
sub eax, 0xadd85652
je 0x100010d8
jmp 0x10001039
mov eax, dword [ebp - 0x20]
sub eax, 0xe59c1857
je 0x10001192
jmp 0x1000104c
mov eax, dword [ebp - 0x20]
sub eax, 0xf262f39c
je 0x10001180
jmp 0x1000105f
mov eax, dword [ebp - 0x20]
sub eax, 0xfb7b1ac5
je 0x1000108a
jmp 0x10001072
mov eax, dword [ebp - 0x20]
sub eax, 0x632e4931
je 0x10001174
jmp 0x10001085
jmp 0x100011ca
mov eax, dword [0x10078384]
mov ecx, dword [0x10078380]
mov edx, eax
add edx, 0x1eff519e
sub edx, 1
sub edx, 0x1eff519e
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xe59c1857
mov ecx, 0xadd85652
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011ca
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x86
sub byte [edi], 0x37
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x100010ec
mov ecx, dword [0x10078384]
mov eax, dword [0x10078380]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xe59c1857
mov ecx, 0x632e4931
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011ca
mov dword [ebp - 0x18], 0xf262f39c
jmp 0x100011ca
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100175d0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x86
sub byte [edi], 0x37
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x100011a6
mov dword [ebp - 0x18], 0xadd85652
jmp 0x10001023
Function at 0x1001ab40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ab7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ab7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ab7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ab7f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ab7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d83d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d8da
push ebx
push esi
call fcn.1001d806
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d79a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d887
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d8d9
push edi
push eax
call fcn.1001b87d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d8a7
call fcn.1001c2e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d8d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d79a
add esp, 0x20
test eax, eax
jne 0x1001d8c6
push edi
call fcn.1001c2e2
jmp 0x1001d8ce
push ebx
call fcn.1001c2e2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001db47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001da63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001db7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001db81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001dbc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001da63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dbfc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001dc04
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001da63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dc3e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100231e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002320d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002320d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100167a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001af0
call fcn.01001804
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001435
cmp eax, esi
jne 0x1001428
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001438
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100140f
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100144b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100147a
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001474
mov dword [0x100236c], esi
push 0x10010d0
push 0x10010c4
call fcn.01001371
pop ecx
pop ecx
test eax, eax
je 0x100147a
jmp 0x100159e
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100149e
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10014ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10014cc
push 0x1002374
call fcn.01001779
pop ecx
test eax, eax
je 0x10014cc
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100159e
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001536
cmp cx, bx
je 0x10014f1
cmp dword [ebp - 0x1c], ebx
jne 0x1001536
movzx ecx, word [eax]
cmp cx, bx
je 0x1001506
cmp cx, 0x20
ja 0x1001506
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10014f1
test byte [ebp - 0x40], 1
je 0x1001512
movzx ecx, word [ebp - 0x3c]
jmp 0x1001515
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100157b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001547
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10014db
cmp dword [0x1002034], ebx
jne 0x1001589
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10015aa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001849
ret
call fcn.01001951
jmp 0x10013d2