joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427e78
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427b38

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40a820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40a83a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a830
mov eax, 1
add ebx, ebx
jne 0x40a853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a848
jne 0x40a864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a848
xor ecx, ecx
sub eax, 3
jb 0x40a878
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a8ea
mov ebp, eax
add ebx, ebx
jne 0x40a883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a8b4
inc ecx
add ebx, ebx
jne 0x40a8a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a895
jne 0x40a8b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a895
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a8d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a8c5
jmp 0x40a836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a8d4
add edi, ecx
jmp 0x40a836
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a933
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcb14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcb9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a8f1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcba4]
or eax, eax
je 0x40a92d
mov dword [ebx], eax
add ebx, 4
jmp 0x40a90e
call dword [esi + 0xcba0]
mov ebp, dword [esi + 0xcba8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a967
sub esp, 0xffffff80
jmp 0x401e00
Function at 0x1000ff4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000bac0]
jne 0x10051674
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10054c28], eax
mov dword [0x10054c24], ecx
mov dword [0x10054c20], edx
mov dword [0x10054c1c], ebx
mov dword [0x10054c18], esi
mov dword [0x10054c14], edi
mov word [0x10054c40], ss
mov word [0x10054c34], cs
mov word [0x10054c10], ds
mov word [0x10054c0c], es
mov word [0x10054c08], fs
mov word [0x10054c04], gs
pushfd
pop dword [0x10054c38]
mov eax, dword [ebp]
mov dword [0x10054c2c], eax
mov eax, dword [ebp + 4]
mov dword [0x10054c30], eax
lea eax, [ebp + 8]
mov dword [0x10054c3c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10054b78], 0x10001
mov eax, dword [0x10054c30]
mov dword [0x10054b2c], eax
mov dword [0x10054b20], 0xc0000409
mov dword [0x10054b24], 1
mov eax, dword [0x1000bac0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10054a58]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10054b70], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000bac8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10054b70], 0
jne 0x10051760
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x10026434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10026443
pop dword [ebp - 0x18]
mov eax, 0x11cb16e7
add eax, 0xfe374d5c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x7447e7ac
sub dword [ebp - 0x28], 0x25f5a261
mov dword [ebp - 0x24], 0x50cef02e
sub dword [ebp - 0x24], 0x1e9ba3e9
mov dword [ebp - 0x20], 0xa8925fd5
sub dword [ebp - 0x20], 0x5c461ba7
mov dword [ebp - 0x1c], 0x7eaa1f5b
add dword [ebp - 0x1c], 0x8155e0a5
lea eax, [ebp - 0x28]
push eax
mov eax, 0x9ae6d389
sub eax, 0x8ae6c215
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x3ff58da7
add dword [ebp - 0x28], 0x347cdbaf
mov dword [ebp - 0x24], 0x54ea8e9e
add dword [ebp - 0x24], 0xec81d2d7
mov dword [ebp - 0x20], 0x4bb92989
sub dword [ebp - 0x20], 0xe849bd1d
mov dword [ebp - 0x1c], 0xc633e005
sub dword [ebp - 0x1c], 0xc633e005
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x82e8e62
add eax, 0x7d18292
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x4f748
push 0
call eax
mov ecx, 0x4a99
mov edi, eax
mov edx, 0x5b721ec7
sub edx, 0x4b6b6cc7
add edx, dword [ebp - 0x18]
mov esi, 0x2d88d80d
xor dword [ebp - 4], edi
mov ebx, dword [edx]
add dword [ebp - 0x14], eax
add ebx, esi
add dword [ebp - 8], 0xc31d0c8e
mov dword [edi], ebx
mov dword [ebp - 0x10], 0xc43e8f81
add edi, 0xe086feb8
sub edi, 0xe086feb4
add edx, 4
loop 0x10026559
add eax, 0x24c0ccc7
add eax, 0xdb405070
mov ebx, eax
add eax, 5
mov ecx, 0xb27b995d
add ecx, 0x5d8466a3
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c
Function at 0x10001880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058faf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10038dec
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000190b
push eax
push esi
call fcn.1003a330
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x100bf53c
call fcn.10038f94
int3
Function at 0x10006b50
Capabilities:
Create process on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov bl, byte [ebp + 8]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x10006b6d
lea eax, [ebx - 0x41]
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x100b4ff8], 0xf6176fa2
jne 0x10006d63
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
call dword [sym.imp.KERNEL32.dll_GetSystemDEPPolicy]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
push 0
push dword [esp + 8]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
push 0x100bfb7c
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingFromApp]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
push 0
push 0
push 0
push 0x100bfba4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
xor ecx, ecx
lock xadd dword [ecx], eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryThreadProfiling]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
push 0
push 0x100bfbb8
call dword [sym.imp.KERNEL32.dll_LoadModule]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkTransactedW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x10006d74
lea eax, [ebx - 0x47]
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x10006d85
lea eax, [ebx + 4]
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp bl, 0x2b
jne 0x10006d93
mov al, 0x3e
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp bl, 0x2f
pop ebx
setne al
dec al
and al, 0x3f
mov esp, ebp
pop ebp
ret 4
Function at 0x10007670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10003100
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100bf5c4
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x1000777e
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x100bf5e0
push 0x100bf5c4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x1000777e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x1000777e
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x10007760
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100078e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [0x100b5320], 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10004390
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100bf7e0
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x100079f6
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x100bf7fc
push 0x100bf7e0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x100079f6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x100079f6
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x100079d8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007a00
Capabilities:
Manipulate console buffer

Disassembly:
push edi
push 0
call fcn.10043064
push eax
call fcn.1003f79f
add esp, 8
mov dword [0x100b5324], 0
mov ecx, 0xc8
mov byte [0x100b5328], 0
xor eax, eax
mov dword [0x100b5338], 5
mov edi, 0x100b5000
mov dword [0x100b532c], 0
rep stosd dword es:[edi], eax
pop edi
jmp fcn.10003820

Function at 0x10007a50
Capabilities:
Copy file
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 1
push esi
jne 0x10007ac7
mov esi, 0x10005f10
add esi, 0x14b
nop dword [eax]
push 0x14b
push esi
mov byte [0x100b5329], 1
call fcn.1000b5c0
add esp, 8
cmp dword [0x100b4ff8], 0x5ab44873
je 0x10007ad3
mov eax, 0x10005900
add eax, 0x248
push 0x248
push eax
call fcn.1000b5c0
mov eax, 0x10005bc0
add eax, 0x258
push 0x258
push eax
call fcn.1000b5c0
add esp, 0x10
cmp byte [0x100b5329], 0
je 0x10007a70
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push 0
call dword [sym.imp.KERNEL32.dll_InitOnceInitialize]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemFileCacheSize]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push 0
push 0
push 0x100bffb4
call dword [sym.imp.KERNEL32.dll_FindFirstStreamW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddIntegrityLabelToBoundaryDescriptor]
push 0
push 0x100bffec
push 0x100c0010
call dword [sym.imp.KERNEL32.dll_CopyFile2]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPages]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1000a830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], 0x100c0470
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.1003ae5a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1003a232
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.1000a970
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax], 0x100c0348
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x100b5fec]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x100b5ff0]
mov dword [ebx], 0
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10045672
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100456b1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100456b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100456b1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100456b1
cmp dword [ecx + 0x74], 0xe
jbe 0x100456b1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1004bc3c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bb990
push 0x100bb988
push 0x100b92d4
push 0x1f
call fcn.1004bb04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004bc70
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b7764]
call esi
jmp 0x1004bc76
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004bcba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bb9a0
push 0x100bb998
push 0x100b92f8
push 0x21
call fcn.1004bb04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004bcf1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b7764]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004bcf9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bb9a8
push 0x100bb9a0
push 0x100b930c
push 0x22
call fcn.1004bb04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004bd33
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b7764]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004c438
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003bd80
mov eax, dword [0x1005b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10047113
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004c47a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004c5d6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10058190
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100b4bb8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004d24a
mov ecx, dword [esi*4 + 0x100b4bb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004c5cf
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004c5cf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004c5cf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004d24a
add esp, 0x14
test edx, edx
jl 0x1004c5cf
jg 0x1004c545
test eax, eax
jb 0x1004c5cf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004c5cf
jl 0x1004c55f
cmp dword [ebp - 0x1008], eax
ja 0x1004c5cf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004c57d
test ebx, ebx
je 0x1004c5b6
cmp ecx, edi
jae 0x1004c5b6
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004c597
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004c5a3
cmp byte [ecx + 1], 0xa
jne 0x1004c5a3
inc ecx
jmp 0x1004c5a3
movzx eax, al
movsx eax, byte [eax + 0x1005b340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004c57d
cmp edx, ebx
jne 0x1004c57d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004c5d4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003b541
leave
ret
Function at 0x1004d2c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100b4bb8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004d306
cmp byte [ebx], 0xa
jne 0x1004d306
or byte [edi + eax + 0x28], 4
jmp 0x1004d30b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1004d40a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004d3ed
inc eax
cmp dl, 0xd
je 0x1004d337
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004d35d
cmp eax, ecx
jae 0x1004d36b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1004d31f
jmp 0x1004d40a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d3e8
cmp dword [ebp - 0x10], 0
je 0x1004d3e8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b4bb8]
test byte [eax + edi + 0x28], 0x48
je 0x1004d3c2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004d3ad
mov byte [esi], dl
jmp 0x1004d3be
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b4bb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004d40a
cmp byte [ebp - 1], 0xa
jne 0x1004d3d1
cmp esi, ebx
jne 0x1004d3d1
mov byte [esi], 0xa
jmp 0x1004d409
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004d268
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004d40a
mov byte [esi], 0xd
jmp 0x1004d409
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b4bb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004d407
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004d40a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret