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

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x49d340]
xor eax, ebp
mov dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0xb4]
test eax, eax
push esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], ecx
je 0x430c8a
test ecx, ecx
je 0x430c8a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Unknown_Windows_Version
push eax
call esi
and dword [edi], 0
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430c8a
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
push ebx
movzx ebx, word [ebp - 0x60]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x64]
push eax
push ecx
push str._u._u._u
push dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x78], 1
jne 0x430bb0
cmp dword [ebp - 0x7c], 4
jne 0x430c85
cmp dword [ebp - 0x74], 0xa
jae 0x430b2f
cmp ebx, 0x3b6
jne 0x430aec
push str.Windows_95
push dword [ebp - 0x70]
call esi
mov dword [edi], 1
jmp 0x430c85
lea eax, [ebx - 0x3b7]
cmp eax, 0x81
ja 0x430b0e
push str.Windows_95_SP1
push dword [ebp - 0x70]
call esi
mov dword [edi], 2
jmp 0x430c85
cmp ebx, 0x438
jbe 0x430b2b
push str.Windows_95_OSR2
push dword [ebp - 0x70]
call esi
mov dword [edi], 3
jmp 0x430c85
cmp dword [ebp - 0x74], 0xa
jne 0x430b91
cmp ebx, 0x7ce
jne 0x430b4e
push str.Windows_98
push dword [ebp - 0x70]
call esi
mov dword [edi], 4
jmp 0x430c85
lea eax, [ebx - 0x7cf]
cmp eax, 0xb7
ja 0x430b70
push str.Windows_98_SP1
push dword [ebp - 0x70]
call esi
mov dword [edi], 5
jmp 0x430c85
cmp ebx, 0x887
jb 0x430c85
push str.Windows_98_SE
push dword [ebp - 0x70]
call esi
mov dword [edi], 6
jmp 0x430c85
cmp dword [ebp - 0x74], 0x5a
jne 0x430c85
push str.Windows_ME
push dword [ebp - 0x70]
call esi
mov dword [edi], 7
jmp 0x430c85
cmp dword [ebp - 0x78], 2
jne 0x430c6f
mov eax, dword [ebp - 0x7c]
cmp eax, 3
jne 0x430be1
cmp dword [ebp - 0x74], 0x33
jne 0x430c85
push str.Windows_NT_3.51
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x65
jmp 0x430c85
cmp eax, 4
jne 0x430c05
cmp dword [ebp - 0x74], 0
jne 0x430c85
push str.Windows_NT_4
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x66
jmp 0x430c85
cmp eax, 5
jne 0x430c52
cmp dword [ebp - 0x74], 0
jne 0x430c22
push str.Windows_2000
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x67
jmp 0x430c85
cmp dword [ebp - 0x74], 1
jne 0x430c3a
push str.Windows_XP
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x68
jmp 0x430c85
cmp dword [ebp - 0x74], 2
jne 0x430c85
push str.Windows_2003_Server
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x69
jmp 0x430c85
cmp eax, 6
jne 0x430c85
cmp dword [ebp - 0x74], 0
jne 0x430c85
push str.Windows_Vista
push dword [ebp - 0x70]
call esi
mov dword [edi], 0x6a
jmp 0x430c85
cmp dword [ebp - 0x78], 3
jne 0x430c85
push str.Windows_CE
push dword [ebp - 0x70]
call esi
mov dword [edi], 0xc9
mov al, 1
pop ebx
jmp 0x430c8c
xor al, al
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
pop esi
call fcn.00433192
add ebp, 0xac
leave
ret
Function at 0x4313aa
Capabilities:
Encode data using xor
Print debug messages
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x49d340]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push esi
push edi
push 0x410
xor edi, edi
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00438370
add esp, 0xc
push 0x206
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
ja 0x431400
push str.Unknown
lea eax, [ebp - 0x74]
push eax
call esi
lea eax, [ebp - 0x74]
push str.CRASHLOG.DAT
push eax
call fcn.00431301
pop ecx
push eax
call esi
push edi
push 0x80000080
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x431440
push str.Error_creating_SysLog.dat_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4314b1
push ebx
mov ebx, 0x4ecbe8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43144b
sub eax, edx
mov dword [ebp - 0x7c], eax
je 0x4314a7
push 6
pop ecx
mov esi, 0x48a934
lea edi, [ebp + 0x39c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edx, edx
xor ecx, ecx
test eax, eax
movsb byte es:[edi], byte [esi]
jbe 0x431490
mov al, byte [ebp + edx + 0x39c]
xor byte [ecx + 0x4ecbe8], al
lea eax, [edx + 1]
push 0x1b
cdq
pop esi
idiv esi
inc ecx
cmp ecx, dword [ebp - 0x7c]
jb 0x431474
and dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp + 0x3b8]
pop edi
xor ecx, ebp
pop esi
call fcn.00433192
add ebp, 0x3bc
leave
ret
Function at 0x433192
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49d340]
jne 0x43319c
repz ret
jmp fcn.00437757

Function at 0x43785b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49d370]
je 0x437876
inc edi
cmp edi, 0x17
jb 0x437867
cmp edi, 0x17
jae 0x4379f6
push ebp
push 3
call fcn.00440515
cmp eax, 1
pop ecx
je 0x4379c2
push 3
call fcn.00440515
test eax, eax
pop ecx
jne 0x4378aa
cmp dword [0x49d1b0], 1
je 0x4379c2
cmp ebx, 0xfc
je 0x4379f5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ab608
push ebp
call fcn.004381f1
add esp, 0xc
test eax, eax
je 0x4378e0
push esi
push esi
push esi
push esi
push esi
call fcn.00433341
add esp, 0x14
push 0x104
mov esi, 0x4ab621
push esi
push 0
mov byte [0x4ab725], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x437924
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004381f1
add esp, 0xc
test eax, eax
je 0x437924
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00433341
add esp, 0x14
push esi
call fcn.00433c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x437969
push esi
call fcn.00433c30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ab91c
push 0x47d494
sub ecx, eax
push ecx
push eax
call fcn.0043dbd4
add esp, 0x14
test eax, eax
je 0x437969
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00433341
add esp, 0x14
jmp 0x43796b
xor esi, esi
push 0x47d490
push ebx
push ebp
call fcn.0043db63
add esp, 0xc
test eax, eax
je 0x43798b
push esi
push esi
push esi
push esi
push esi
call fcn.00433341
add esp, 0x14
push dword [edi*8 + 0x49d374]
push ebx
push ebp
call fcn.0043db63
add esp, 0xc
test eax, eax
je 0x4379ad
push esi
push esi
push esi
push esi
push esi
call fcn.00433341
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00440358
add esp, 0xc
jmp 0x4379f5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4379f5
cmp ebp, 0xffffffff
je 0x4379f5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49d374]
push dword [esi]
call fcn.00433c30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x440358
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437b0e
xor ebx, ebx
cmp dword [0x4abd58], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44042e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44050e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47e270
push edi
call esi
cmp eax, ebx
je 0x44050e
push eax
call fcn.00437aa0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4abd58], eax
call esi
push eax
call fcn.00437aa0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4abd5c], eax
call esi
push eax
call fcn.00437aa0
mov dword [0x4abd60], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00438abd
test eax, eax
pop ecx
pop ecx
je 0x4403fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433341
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44042e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437aa0
cmp eax, ebx
pop ecx
mov dword [0x4abd68], eax
je 0x44042e
push 0x47e218
push edi
call esi
push eax
call fcn.00437aa0
pop ecx
mov dword [0x4abd64], eax
mov eax, dword [0x4abd64]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4404b3
cmp dword [0x4abd68], ecx
je 0x4404b3
push eax
call fcn.00437b17
push dword [0x4abd68]
mov esi, eax
call fcn.00437b17
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4404b3
cmp edi, ebx
je 0x4404b3
call esi
cmp eax, ebx
je 0x440480
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x440480
test byte [ebp - 0x18], 1
jne 0x4404b3
lea eax, [ebp - 0x10]
push eax
call fcn.00438af4
test eax, eax
pop ecx
je 0x44049b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433341
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4404aa
or dword [ebp + 0x10], 0x200000
jmp 0x4404ee
or dword [ebp + 0x10], 0x40000
jmp 0x4404ee
mov eax, dword [0x4abd5c]
cmp eax, dword [ebp - 8]
je 0x4404ee
push eax
call fcn.00437b17
cmp eax, ebx
pop ecx
je 0x4404ee
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4404ee
mov eax, dword [0x4abd60]
cmp eax, dword [ebp - 8]
je 0x4404ee
push eax
call fcn.00437b17
cmp eax, ebx
pop ecx
je 0x4404ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4abd58]
call fcn.00437b17
cmp eax, ebx
pop ecx
je 0x44050e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440510
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b790
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret

Function at 0x44c470
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00447420
mov eax, dword [0x49d340]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44c4d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x44c4d5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00446503
add eax, 0x40
push eax
call fcn.0046c18a
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00433192
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0046c021
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x44c564
call fcn.0044c390
test eax, eax
je 0x44c564
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00433192
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00433192
add esp, 0x108
ret
Function at 0x46a650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x46a65f
mov eax, dword [eax + 4]
jmp 0x46a662
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46a6f4
push esi
mov esi, dword [0x4ac72c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x46a6d9
cmp eax, 3
je 0x46a6d9
cmp eax, 0x7b
je 0x46a6d9
cmp eax, 0xf
je 0x46a6d9
cmp eax, 0x57
je 0x46a6d9
cmp eax, 0xa1
je 0x46a6d9
cmp eax, 0x35
je 0x46a6d9
cmp eax, 0x20
jne 0x46a6ce
mov eax, dword [0x4ac730]
mov dword [ecx], eax
mov edx, dword [0x4ac734]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4ac730]
mov dword [ecx], eax
mov edx, dword [0x4ac734]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4ac730]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4ac734]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x46a721
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x46a730
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x46a74b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x46a760
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x46a77b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x46a860
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.00432640
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.00432640
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x46a88b
mov eax, dword [edi + 4]
jmp 0x46a88e
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46a8af
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
mov ebp, dword [0x4ac72c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x46a8ff
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0046a650
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x46a8ff
mov eax, dword [esp + 0x18]
mov edx, dword [0x4ac730]
mov ecx, dword [0x4ac734]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x46aaa0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac744]
test eax, eax
je 0x46aacb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46aacb
mov eax, dword [eax + 0x14]
test eax, eax
je 0x46aacb
mov ecx, dword [esp + 4]
nop
cmp dword [eax], ecx
je 0x46aace
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x46aac0
xor eax, eax
ret
mov eax, dword [eax + 0xc]
ret

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

Disassembly:
mov eax, dword [0x4ac744]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x46aed7
push eax
call edi
test eax, eax
jne 0x46af0d
push esi
call fcn.0046ac00
push 0x46aa80
push 0x4ac740
mov esi, eax
call fcn.0046ada0
mov eax, dword [0x4ac744]
add esp, 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x4ac744]
test eax, eax
pop esi
jne 0x46af0a
pop edi
ret
push eax
call edi
pop edi
ret
Function at 0x46b130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x476928
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d340]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4ac744]
test eax, eax
jne 0x46b162
xor esi, esi
jmp 0x46b16b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x46b1ad
cmp dword [esi + 0x14], 0
jne 0x46b1ef
cmp dword [esi + 0x10], 0
jne 0x46b1f5
push 0x46aa80
push 0x4ac740
call fcn.0046ada0
mov eax, dword [0x4ac744]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x46b1db
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46b1db
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x46b235
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x46b223
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x46b1f5
cmp dword [esi + 0x14], 0
je 0x46b187
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x46b25a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x46b28b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46b28b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46b28b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x46b23f
jmp 0x46b181
Function at 0x46b340
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x46b2b0
push 0
push 0
call fcn.0046db6c
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x46b380
lea ecx, [esp + 8]
call fcn.0046bdb0
push 0x495564
lea edx, [esp + 0xc]
push edx
call fcn.00433cbb
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x46b3a9
cmp eax, 0xffffffff
je 0x46b3a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret

Function at 0x46b3c0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x476978
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x49d340]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x4ac744]
test eax, eax
mov dword [esp + 0x10], 0
je 0x46b413
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b413
mov esi, dword [eax + 0x14]
test esi, esi
je 0x46b413
mov eax, dword [esp + 0x18]
cmp dword [esi], eax
je 0x46b480
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x46b408
call fcn.0046aec0
lea esi, [eax + 0x14]
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0046b050
add esp, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x10], 0xffffffff
je 0x46b46f
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46b46f
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46b46f
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
cmp byte [esp + 0x28], 0
je 0x46b499
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46b499
mov eax, dword [ecx]
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 4]
push edx
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.0046aff0
mov edx, dword [esp + 0x24]
mov dword [esi + 0xc], edx
jmp 0x46b435
Function at 0x46c893
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46c8d0
cmp dword [ebp + 0x14], edi
je 0x46c8d0
cmp ecx, edi
jne 0x46c8d7
call fcn.00435f95
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043343d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46c8eb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46c90c
cmp ebx, 0xffffffff
je 0x46c8fb
push ebx
push edi
push ecx
call fcn.00438370
add esp, 0xc
cmp esi, edi
je 0x46c8b8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46c8b8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46c928
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46c92f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46ca20
test word [esi + 0xc], 0x10c
je 0x46c983
mov eax, dword [esi + 4]
test eax, eax
je 0x46c983
jl 0x46ca81
cmp ebx, eax
mov edi, ebx
jb 0x46c954
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46ca28
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043358f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46ca18
cmp ebx, dword [ebp - 0xc]
jb 0x46c9f0
cmp dword [ebp - 0xc], 0
je 0x46c9ad
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x46c9a2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46c9a9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46c9b8
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x46c9b8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46ca54
push eax
push dword [ebp - 8]
push esi
call fcn.004466a4
pop ecx
push eax
call fcn.0046ee37
add esp, 0xc
test eax, eax
je 0x46ca93
cmp eax, 0xffffffff
je 0x46ca81
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46ca18
push esi
call fcn.0046e756
cmp eax, 0xffffffff
pop ecx
je 0x46ca85
cmp dword [ebp - 4], 0
je 0x46ca54
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46c937
mov eax, dword [ebp + 0x14]
jmp 0x46c8d2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46ca3f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00438370
add esp, 0xc
call fcn.00435f95
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46c8c8
cmp dword [ebp + 0xc], 0xffffffff
je 0x46ca6a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00438370
add esp, 0xc
call fcn.00435f95
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46c8c8
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46c8d2
or dword [esi + 0xc], 0x10
jmp 0x46ca85