joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435ba0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4495ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00435b35
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00424130
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x435bef
cmp dword [ebp - 0x1c], 5
jb 0x435c07
jmp 0x435c03
cmp dword [ebp - 0x10], 1
jne 0x435c07
cmp dword [ebp - 0x1c], 4
ja 0x435c03
jne 0x435c07
cmp dword [ebp - 0x18], 0
jbe 0x435c07
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43ddd8
call fcn.00435a26
test eax, eax
jge 0x435c28
mov byte [0x44d764], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421bf6
add ebp, 0x78
leave
ret
Function at 0x4020d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408050
call sym._EnterCriticalSection_4
mov ebx, dword [0x408048]
sub esp, 4
test ebx, ebx
je 0x40211b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402114
test esi, esi
je 0x402114
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020f0
mov dword [esp], 0x408050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402300
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402428
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40238e
cmp eax, 4
jne 0x4023b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40239e
cmp edx, 4
je 0x40239e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402300
Function at 0x401120
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x11c]
push ebx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x4011a4
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call section..text
add esp, 8
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x401240
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 0x18]
test edx, edx
je 0x401279
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401279
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0x40c608
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x4012a0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4012bb
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x4012bb
push edx
jmp 0x4012c0
push 0x40c608
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x4012e0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x401306
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
xor eax, eax
ret
Function at 0x402190
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x430
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.ctrcfg.ini
push str.C:Program_FilesOCINS_
lea eax, [esp + 0x138]
push str._s_s
push eax
call fcn.00404388
lea ecx, [esp + 0x140]
push ecx
push ebx
push str.RebootReg
push str.RunAct
call fcn.004012a0
add esp, 0x20
test eax, eax
je 0x4023b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x339]
mov byte [esp + 0x338], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.replace.dat
push str.C:Program_FilesOCINS_
lea edx, [esp + 0x340]
push str._s_s
push edx
stosb byte es:[edi], al
call fcn.00404388
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x10
lea eax, [esp + 0x338]
push eax
call esi
test eax, eax
jne 0x4023b0
mov ecx, 0x40
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
push str.repreg.dat
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.C:Program_FilesOCINS_
lea ecx, [esp + 0x34]
push str._s_s
push ecx
stosb byte es:[edi], al
call fcn.00404388
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
call esi
test eax, eax
jne 0x4022a3
lea eax, [esp + 0x130]
push eax
push ebx
push str.RebootReg
push str.RunAct
call fcn.004011f0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x430
ret
lea ecx, [esp + 0x2c]
push ebp
push ecx
push ebx
push str.Number
push str.ReReg
call fcn.004012a0
mov ebp, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov byte [esp + 0x248], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x249]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp ebp, ebx
jle 0x402389
lea edi, [eax + 1]
lea edx, [esp + 0x10]
push edi
push 0x40b138
push edx
call fcn.00404388
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x244]
push eax
push 0x103
push ecx
lea edx, [esp + 0x28]
push 0x40cbc8
push edx
push str.ReReg
call fcn.00401240
add esp, 0x24
mov esi, 0x40cbc8
lea eax, [esp + 0x238]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402362
cmp cl, bl
je 0x40235e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402362
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40233e
xor eax, eax
jmp 0x402367
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402389
push 1
lea eax, [esp + 0x23c]
push 1
push eax
call fcn.00402070
mov eax, edi
add esp, 0xc
cmp eax, ebp
jl 0x4022f6
lea ecx, [esp + 0x134]
push ecx
push ebx
push str.RebootReg
push str.RunAct
call fcn.004011f0
add esp, 0x10
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x430
ret
Function at 0x4030c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3c]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x40cbc8
push edx
call edi
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov si, word [esi + 0x15e]
test si, si
jne 0x403117
push 0x40b440
push eax
call edi
pop edi
pop esi
ret
cmp si, 1
jne 0x403128
push 0x40b438
push eax
call edi
pop edi
pop esi
ret
push 0x40b434
push eax
call edi
pop edi
pop esi
ret

Function at 0x4032d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
call fcn.00402fd0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4032f1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x403306
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x44], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret
Function at 0x403820
Capabilities:
Create process on windows
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x618
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, 2
push ebx
push str.ipconfig.exe__flushdns
mov dword [esp + 0x1c], 0x2a803
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov byte [esp + 0x24], 0xc0
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x46
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x11
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 6
mov dword [esp + 0x30], 0x44c
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_WinExec]
lea eax, [esp + 0x498]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403a04
mov ecx, 0xf
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x24]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x30]
push 0x210
push ecx
mov dword [esp + 0x58], 0x3c
mov dword [esp + 0x5c], str.xn__cnnic_vo0ll97o.xn__fiqs8s
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edx
call dword [sym.imp.WS2_32.dll_WSALookupServiceBeginA]
test eax, eax
jne 0x4039d8
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSALookupServiceNextA]
test eax, eax
jne 0x4039cd
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4039cd
mov edx, dword [eax]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, ebx
je 0x4039f9
mov eax, dword [esp + 0x84]
mov edi, ebp
push ebp
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403620
movsx ecx, word [ebp + 0xa]
mov edx, dword [ebp + 0xc]
mov eax, ecx
lea edi, [esp + 0x44]
add esp, 4
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov ecx, str.159.226.1.19
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x4039b8
cmp al, bl
je 0x4039b4
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x4039b8
add ecx, 2
add esi, 2
cmp al, bl
jne 0x403994
xor eax, eax
jmp 0x4039bd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4039c6
mov byte [esp + 0x13], 1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [esp + 0x13], bl
je 0x4039f9
push ebx
push ebx
call fcn.00403730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
push 1
push ebx
call fcn.00403730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
Function at 0x403c00
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
call fcn.004036f0
add esp, 4
test eax, eax
je 0x403c8d
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 3
call fcn.00403730
add esp, 8
call fcn.00403820
call fcn.00403650
cmp eax, 1
jne 0x403c8d
push str.MonitorThreadExitEvent
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x40cbcc], eax
je 0x403c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c8d
mov edx, dword [0x40cbcc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x403c8d
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x403a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40cbd0], eax
xor eax, eax
add esp, 8
ret

Function at 0x403ca0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x40cbcc]
test eax, eax
je 0x403cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x40cbd0]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403cd7
mov ecx, dword [0x40cbd0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
ret

Function at 0x406a35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b718
cmp edx, dword [eax]
je 0x406a57
add eax, 8
inc ecx
cmp eax, 0x40b7a8
jl 0x406a48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b718]
jne 0x406b85
mov eax, dword [0x40cbdc]
cmp eax, 1
je 0x406b5f
test eax, eax
jne 0x406a88
cmp dword [0x40b584], 1
je 0x406b5f
cmp edx, 0xfc
je 0x406b85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406abf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406b02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40956c
push edi
call fcn.00403ce0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407690
lea eax, [ebp - 0xa0]
push 0x40954c
push eax
call fcn.00407690
push dword [esi + 0x40b71c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407690
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004077fd
add esp, 0x2c
pop edi
jmp 0x406b85
lea eax, [ebp + 8]
lea esi, [esi + 0x40b71c]
push 0
push eax
push dword [esi]
call fcn.00407020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404880
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4323b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, ecx
mov ecx, 3
push ebp
push esi
mov edx, 1
mov eax, 2
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
xor ebp, ebp
push edi
lea ecx, [ebx + 0xd9c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x10], ebp
call fcn.0041e483
push ebp
call fcn.0040d010
add esp, 4
push eax
call fcn.0040cfd0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0042372e
push ebp
push ebp
push str.Arrange.dat
lea ecx, [esp + 0x24]
mov dword [esp + 0x88], ebp
call fcn.004238ad
test eax, eax
je 0x4049b3
lea ecx, [esp + 0x18]
call fcn.00423bb2
mov esi, eax
call fcn.0040cfe0
mov edi, eax
mov eax, 0x51eb851f
imul esi
mov ecx, edx
push ebp
sar ecx, 3
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, edi
cdq
idiv ecx
lea eax, [edx + edx*4]
lea ecx, [eax + eax*4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00423a5a
lea edx, [esp + 0x28]
push 0x19
push edx
lea ecx, [esp + 0x20]
call fcn.004239d5
xor edi, edi
mov ecx, 0x43f5b8
movsx esi, byte [esp + edi + 0x28]
mov eax, esi
add ecx, 8
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ecx - 4], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
and eax, 0xf
xor eax, edx
sub eax, edx
inc edi
mov dword [ecx - 8], eax
cmp ecx, str.CWarView
jl 0x40497a
lea ecx, [esp + 0x18]
call fcn.00423ad3
xor edi, edi
mov eax, dword [esp + edi*4 + 0x44]
test eax, eax
mov dword [ebx + edi*4 + 0xdf0], eax
jle 0x404a58
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov eax, ecx
add eax, ebp
lea esi, [ecx*8 + 0x43f5b8]
mov dword [esp + 0x10], eax
push 0x4c
call fcn.0041eee5
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x7c], 1
je 0x404a11
mov ecx, dword [esi]
lea edx, [edi + 1]
push 0
push edx
mov edx, dword [esi + 4]
push ecx
lea ecx, [edi + 0x84]
push edx
push ecx
mov ecx, eax
call fcn.004012a0
jmp 0x404a13
xor eax, eax
mov ecx, dword [esi]
mov byte [esp + 0x7c], 0
cmp ecx, 5
jne 0x404a26
mov dword [eax + 0x40], 1
cmp dword [esi], 1
jg 0x404a32
mov dword [eax + 0x44], 1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
lea ecx, [ecx + ecx*4]
add ecx, edx
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov dword [ecx + ebx + 0x78], eax
lea ecx, [ebx + 0xd9c]
call fcn.0041e56e
add esi, 8
dec ebp
jne 0x4049dd
inc edi
cmp edi, 0xc
jl 0x4049b5
mov edx, dword [ebx + 0xa8]
mov eax, 1
mov dword [esp + 0x7c], 0xffffffff
mov dword [edx + 0x1c], eax
mov ecx, dword [ebx + 0x108]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.004237ce
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret
Function at 0x40d3c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439320
push 0x410b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x44603c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x446038], ecx
shl ecx, 8
add ecx, edx
mov dword [0x446034], ecx
shr eax, 0x10
mov dword [0x446030], eax
call fcn.00412fe0
test eax, eax
jne 0x40d42a
push 0x1c
call fcn.0040d570
add esp, 4
call fcn.00410220
test eax, eax
jne 0x40d43d
push 0x10
call fcn.0040d570
add esp, 4
mov dword [ebp - 4], 0
call fcn.00412dd0
call fcn.0040ee00
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44760c], eax
call fcn.00412c70
mov dword [0x446020], eax
test eax, eax
je 0x40d470
mov eax, dword [0x44760c]
test eax, eax
jne 0x40d47a
push 0xffffffffffffffff
call fcn.0040dde0
add esp, 4
call fcn.004129c0
call fcn.004128d0
call fcn.0040ddb0
mov esi, dword [0x44760c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40d559
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40d4c1
test al, al
je 0x40d4c1
and eax, 0xff
push eax
call fcn.00412870
add esp, 4
test eax, eax
je 0x40d49b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40d49b
cmp byte [esi], 0x22
jne 0x40d4ca
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40d4da
cmp al, 0x20
ja 0x40d4da
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40d4ca
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40d4fb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40d500
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040dde0
jmp 0x40d53e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40d4ca
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40d559

Function at 0x40de20
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040dee0
mov eax, dword [0x44606c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40de44
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x446068], 1
mov byte [0x446064], bl
jne 0x40de9e
mov ecx, dword [0x447608]
test ecx, ecx
je 0x40de8c
mov esi, dword [0x447604]
sub esi, 4
cmp esi, ecx
jb 0x40de8c
mov eax, dword [esi]
test eax, eax
je 0x40de85
call eax
mov ecx, dword [0x447608]
sub esi, 4
cmp esi, ecx
jae 0x40de77
push 0x43f0a0
push 0x43f098
call fcn.0040df00
add esp, 8
push 0x43f0ac
push 0x43f0a4
call fcn.0040df00
add esp, 8
test ebx, ebx
je 0x40debd
call fcn.0040def0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x44606c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410220
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00413240
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4409d0], eax
je 0x410278
push 0x74
push 1
call fcn.00413f90
mov esi, eax
add esp, 8
test esi, esi
je 0x410278
mov eax, dword [0x4409d0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x410278
push esi
call fcn.00410280
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4102a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4409d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41030e
push 0x74
push 1
call fcn.00413f90
mov esi, eax
add esp, 8
test esi, esi
je 0x410304
mov ecx, dword [0x4409d0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x410304
push esi
call fcn.00410280
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040d570
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret