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

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000b4df
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x10051670], 0
mov dword [0x10051680], eax
jne 0x1000b44f
cmp al, 3
jne 0x1000b426
test eax, 0x80000000
je 0x1000b426
push 2
call fcn.1000c420
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000b44f
push str.IsTNT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b44f
push 1
call fcn.1000c420
add esp, 4
call fcn.1000b780
test eax, eax
jne 0x1000b45d
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x10051680]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x1005168c], edx
mov dword [0x10051688], eax
shl eax, 8
mov dword [0x10051680], ecx
add eax, edx
mov dword [0x10051684], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10053b34], eax
call fcn.1000c260
cmp dword [0x10053b34], 0
mov dword [0x10051660], eax
je 0x1000b4d5
test eax, eax
je 0x1000b4d5
call fcn.1000b800
call fcn.1000c050
call fcn.1000bb00
call fcn.1000ba10
call fcn.1000b620
inc dword [0x1005165c]
mov eax, 1
ret 0xc
call fcn.1000b7c0
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000b4cd
mov eax, dword [0x1005165c]
test eax, eax
jle 0x1000b512
dec eax
cmp dword [0x100516b8], 0
mov dword [0x1005165c], eax
jne 0x1000b500
call fcn.1000b690
call fcn.1000b9e0
call fcn.1000b7c0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x1000b6b0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x100516bc], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x1000b6ce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100516b8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x100516b4], bl
jne 0x1000b728
cmp dword [0x10053b2c], 0
je 0x1000b716
mov edi, dword [0x10053b1c]
sub edi, 4
cmp edi, dword [0x10053b2c]
jb 0x1000b716
mov eax, dword [edi]
test eax, eax
je 0x1000b70b
call eax
sub edi, 4
cmp edi, dword [0x10053b2c]
jae 0x1000b703
push 0x1004f514
push 0x1004f410
call fcn.1000b760
add esp, 8
push 0x1004f71c
push 0x1004f618
call fcn.1000b760
add esp, 8
test ebx, ebx
jne 0x1000b74f
mov dword [0x100516bc], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x1000c260
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x100518ec], ebx
jne 0x1000c2af
call esi
cmp eax, ebx
mov edi, eax
je 0x1000c28d
mov dword [0x100518ec], 1
jmp 0x1000c2af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1000c2a5
mov dword [0x100518ec], 2
jmp 0x1000c2af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x100518ec], 1
jne 0x1000c35e
test edi, edi
jne 0x1000c2d2
call esi
mov edi, eax
test edi, edi
jne 0x1000c2d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x1000c2ec
add esi, 2
cmp word [esi], 0
jne 0x1000c2da
add esi, 2
cmp word [esi], 0
jne 0x1000c2da
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1000c34d
push ebp
call fcn.1000d0d0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1000c34d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000c33c
push ebx
call fcn.1000d180
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x100518ec], 2
jne 0x1000c3e2
test ebx, ebx
jne 0x1000c381
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x1000c381
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x1000c396
inc ebp
cmp byte [ebp], 0
jne 0x1000c388
inc ebp
cmp byte [ebp], 0
jne 0x1000c388
sub ebp, ebx
inc ebp
push ebp
call fcn.1000d0d0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1000c3bb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x8f068bf
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x16ea01fd
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40208b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0
push 2
push 0x404052
push 0x404044
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
jne 0x402103
mov byte [0x404067], al
push 0x404067
push 0x404070
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp eax, 1
jne 0x402103
call fcn.00403535
push edx
mov eax, eax
push 0
push 2
push 0x404052
push 0x404054
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
add edx, eax
push edx
push 2
push 0x404069
push 0x404070
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
pop edx
add dl, byte [0x404069]
add edx, 0x100
call edx
xor eax, eax
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x43b031
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x43b03a
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
lea edx, [0x43b047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.0040a5f8
Function at 0x1006380
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1020dd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0xc], 0x1000000
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x11c], 1
cmp dword [0x1022ae4], 0
je 0x10063e8
push 0x1002484
call fcn.0100c4df
add esp, 4
mov eax, 1
jmp 0x1006609
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1006409
push 0x1002450
call fcn.0100c4df
add esp, 4
mov eax, 1
jmp 0x1006609
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0x100
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0100c6aa
add esp, 0x24
movsx edx, byte [ebp - 0x110]
test edx, edx
jne 0x1006460
mov dword [ebp - 4], 1
mov eax, dword [0x1022068]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x102206c]
mov dword [ebp - 0x114], ecx
jmp 0x10064b2
push 0x1002448
lea edx, [ebp - 0x110]
push edx
call fcn.0100c653
add esp, 8
test eax, eax
jne 0x100649b
mov eax, dword [0x1022068]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x102206c]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x11c], 1
jmp 0x10064b2
mov edx, dword [0x1022190]
mov dword [ebp - 0x118], edx
mov eax, dword [0x1022194]
mov dword [ebp - 0x114], eax
push 0
call fcn.01006620
lea ecx, [ebp - 0x220]
push ecx
push 0x100
push 0x10225c0
call fcn.0100c132
add esp, 0xc
push 0x100
push 0x10226c0
push 0x10225c0
call fcn.01005960
cmp dword [ebp - 0x11c], 0
jne 0x1006549
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100653a
mov byte [0x10225c0], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002430
call fcn.0100c4df
add esp, 0xc
mov eax, 1
jmp 0x1006609
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x1022084]
push eax
call dword [sym.imp.dbghelp.dll_SymLoadModuleEx]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x118]
or ecx, dword [ebp - 0x114]
jne 0x10065bc
mov byte [0x10225c0], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002430
call fcn.0100c4df
add esp, 0xc
mov eax, 1
jmp 0x1006609
mov eax, dword [ebp + 8]
push eax
push 0x100
push 0x10221b0
call fcn.0100c132
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [0x1022060], ecx
mov edx, dword [ebp - 0x114]
mov dword [0x1022064], edx
cmp dword [ebp - 8], 0xffffffff
je 0x10065fa
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10224b8], 1
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0100c443
mov esp, ebp
pop ebp
ret 4
Function at 0x1008850
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x1020dd0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x101
lea eax, [ebp - 0x220]
push eax
push 0x101
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0100c6aa
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x1003030
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0100c111
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10088cd
mov eax, 1
jmp 0x10089e2
push 0
push 0
push 1
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x1008914
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003014
call fcn.0100c4df
add esp, 0xc
xor eax, eax
jmp 0x10089e2
mov dword [ebp - 0x114], 0
jmp 0x100892f
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0x64
jge 0x10089d0
mov edx, dword [ebp - 0x114]
push edx
push 0x1002ff0
push 0x104
lea eax, [ebp - 0x328]
push eax
call fcn.0100c111
add esp, 0x10
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x330], ecx
mov edx, dword [ebp - 0x330]
add edx, 1
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x330]
mov cl, byte [eax]
mov byte [ebp - 0x335], cl
add dword [ebp - 0x330], 1
cmp byte [ebp - 0x335], 0
jne 0x1008977
mov edx, dword [ebp - 0x330]
sub edx, dword [ebp - 0x334]
mov dword [ebp - 0x33c], edx
push 0
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1008920
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100c443
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b2c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov byte [0x10225c0], 0
mov dword [0x1022060], 0
mov dword [0x1022064], 0
mov dword [0x1022068], 0x1000000
mov dword [0x102206c], 0
mov dword [0x1022190], 0x1000000
mov dword [0x1022194], 0
xor eax, eax
mov dword [0x1022198], eax
mov dword [0x102219c], eax
mov dword [0x10221a0], eax
mov dword [0x10221a4], eax
mov dword [0x10221a8], eax
mov dword [0x10221ac], eax
push 0x1003d0c
call fcn.01005900
add esp, 4
push 0x100
push 0x10223b8
push 0x1003cfc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x100b35b
mov byte [0x10223b8], 0
push 0x10223b8
push 0x1003ce8
call fcn.01005900
add esp, 8
mov dword [0x10227c0], 0xc11
cmp dword [0x1022ad8], 0
je 0x100b394
mov ecx, dword [0x10227c0]
or ecx, 0x4000
mov dword [0x10227c0], ecx
jmp 0x100b3a6
mov edx, dword [0x10227c0]
or edx, 0x10002
mov dword [0x10227c0], edx
cmp dword [0x1022adc], 0
je 0x100b3be
mov eax, dword [0x10227c0]
or eax, 0x80000000
mov dword [0x10227c0], eax
mov ecx, dword [0x10227c0]
push ecx
call dword [sym.imp.dbghelp.dll_SymSetOptions]
mov dword [0x10227c0], eax
mov edx, dword [0x10227c0]
push edx
push 0x1003cd8
call fcn.01005900
add esp, 8
cmp dword [0x1022ae4], 0
jne 0x100b3f8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1022084], eax
xor eax, eax
cmp dword [0x1022ae4], 0
setne al
push eax
push 0x10223b8
mov ecx, dword [0x1022084]
push ecx
call dword [sym.imp.dbghelp.dll_SymInitialize]
mov dword [0x10224bc], eax
cmp dword [0x10224bc], 0
jne 0x100b440
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003cb4
call fcn.0100c4df
add esp, 8
mov eax, dword [0x10224bc]
jmp 0x100b49e
push 0
push 0
push 0x100b250
mov edx, dword [0x1022084]
push edx
call dword [sym.imp.dbghelp.dll_SymRegisterCallback64]
mov dword [0x10224bc], eax
cmp dword [0x10224bc], 0
jne 0x100b48b
mov eax, dword [0x1022084]
push eax
call dword [sym.imp.dbghelp.dll_SymCleanup]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003c88
call fcn.0100c4df
add esp, 8
mov eax, dword [0x10224bc]
jmp 0x100b49e
cmp dword [0x1022ae4], 0
je 0x100b499
call fcn.010092d0
mov eax, dword [0x10224bc]
mov esp, ebp
pop ebp
ret
Function at 0x100d423
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x1020de8]
je 0x100d449
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x100d437
cmp esi, 0x17
jae 0x100d5a3
push 3
call fcn.01014597
pop ecx
cmp eax, 1
je 0x100d56d
push 3
call fcn.01014597
pop ecx
test eax, eax
jne 0x100d47c
cmp dword [0x1020b4c], 1
je 0x100d56d
cmp edi, 0xfc
je 0x100d5a3
push 0x10045d4
mov edi, 0x314
push edi
mov esi, 0x1022f58
push esi
call fcn.0100c132
add esp, 0xc
test eax, eax
je 0x100d4b2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100f4e9
add esp, 0x14
mov byte [0x1023075], bl
push 0x104
mov ebx, 0x1022f71
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d4f5
push 0x10045bc
push 0x2fb
push ebx
call fcn.0100c132
add esp, 0xc
test eax, eax
je 0x100d4f5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100f4e9
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100ce59
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x100d513
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100f4e9
add esp, 0x14
push 0x10045b8
push edi
push esi
call fcn.0100ce59
add esp, 0xc
test eax, eax
je 0x100d533
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100f4e9
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x1020dec]
push edi
push esi
call fcn.0100ce59
add esp, 0xc
test eax, eax
je 0x100d558
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100f4e9
add esp, 0x14
push 0x12010
push 0x1004590
push esi
call fcn.010143d0
add esp, 0xc
jmp 0x100d5a3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100d5a3
cmp edi, 0xffffffff
je 0x100d5a3
mov edx, dword [esi*8 + 0x1020dec]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d58c
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e309
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1004600
call dword [0x1022034]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100e35b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100466c
push edi
call esi
push 0x1004660
push edi
mov dword [0x102337c], eax
call esi
push 0x1004654
push edi
mov dword [0x1023380], eax
call esi
push 0x100464c
push edi
mov dword [0x1023384], eax
call esi
mov dword [0x1023388], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x102337c], ebx
je 0x100e381
cmp dword [0x1023380], ebx
je 0x100e381
cmp dword [0x1023384], ebx
je 0x100e381
cmp dword [0x1023388], ebx
jne 0x100e3a5
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1023380], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x102337c], 0x100dfcb
mov dword [0x1023384], esi
mov dword [0x1023388], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1020f4c], eax
cmp eax, 0xffffffff
je 0x100e418
push dword [0x1023380]
push eax
call esi
test eax, eax
je 0x100e418
call fcn.0100d3dc
push dword [0x102337c]
call fcn.0100decd
push dword [0x1023380]
mov dword [0x102337c], eax
call fcn.0100decd
push dword [0x1023384]
mov dword [0x1023380], eax
call fcn.0100decd
push dword [0x1023388]
mov dword [0x1023384], eax
call fcn.0100decd
add esp, 0x10
mov dword [0x1023388], eax
call fcn.0100f8ea
test eax, eax
jne 0x100e41e
call fcn.0100e00a
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x100e1b9
push dword [0x102337c]
call fcn.0100df53
pop ecx
call eax
mov dword [0x1020f50], eax
cmp eax, 0xffffffff
je 0x100e413
push 0x214
push 1
call fcn.0101495a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100e413
push esi
push dword [0x1020f50]
push dword [0x1023384]
call fcn.0100df53
pop ecx
call eax
test eax, eax
jne 0x100e471
push esi
call fcn.0100c8d2
pop ecx
jmp 0x100e413
push ebx
push esi
call fcn.0100e04c
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100e41a