joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d076b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [0x10174460]
mov edi, dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100d07bf
cmp dword [esi + 0xc], 0
jle 0x100d07bf
mov ecx, dword [esi + 0x10]
cmp dword [ecx], 0
je 0x100d07bf
push 0xffffffffffffffff
push dword [ecx]
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
jmp 0x100d07d9
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push str.thread_0x_x
lea eax, [ebp - 0x84]
push 0xffffffffffffffff
push eax
call fcn.1004ba3f
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x10
cmp byte [0x10181cd7], 0
push edi
je 0x100d0802
push ebx
push str._Assert_failure_in__s_xx____.400s_
push 0
push 0
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x18
jmp 0x100d081a
push dword [ebp + 0x10]
push ebx
push str._Assert_failure_in__s__d___.400s_
push 0
push 8
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x1c
cmp byte [0x10181cdb], 0
jne 0x100d08e4
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsNoAssertMsgBox
call fcn.1004ba3f
test al, al
jne 0x100d089f
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push ebx
push eax
push str.Assert_failed__Vframework___s___File__.200s__line__d_nExpression___.400s_n_click_Retry_to_debug_
lea eax, [ebp - 0x484]
push 0xffffffffffffffff
push eax
call fcn.1004ba3f
add esp, 0x1c
mov ecx, str.SoftwareMicrosoftFrontPageServerExtensionsIgnoreAsserts
call fcn.1004ba3f
push 3
pop ecx
push 5
test al, al
pop edx
cmovne ecx, edx
cmp byte [0x1017712c], 0
je 0x100d088d
push 0x12
push 0x1012d1d0
lea eax, [ebp - 0x484]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, eax
cmp ecx, 3
je 0x100d089f
cmp ecx, 4
jne 0x100d08e4
call dword [sym.imp.kernel32.dll_DebugBreak]
jmp 0x100d08e4
test esi, esi
je 0x100d08e4
cmp dword [0x10181be0], 0
je 0x100d08b8
mov ecx, 0x2d0
call fcn.1004ba3f
jmp 0x100d08c4
push 0x2d0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
je 0x100d08dc
lea eax, [esi + 4]
mov dword [esi], vtable.VassertContextStatus.0
push eax
call dword [sym.imp.kernel32.dll_RtlCaptureContext]
jmp 0x100d08de
xor esi, esi
push esi
call fcn.1004ba3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100013fd
leave
ret 0xc
Function at 0x100d08f5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100d0985
mov eax, dword [vtable.VprocessGlobals.0]
push ebx
push edi
push dword [ebp + 0x10]
xor edi, edi
mov ebx, 0x1017e06c
cmp byte [0x10181cdb], 0
push dword [ebp + 0xc]
je 0x100d092a
push str._nUnexpected_status_in_file:__s__line:_xx__n
push edi
push edi
jmp 0x100d0932
push str._nUnexpected_status_in_file:__s__line:__d__n
push edi
push 8
push ebx
call dword [eax + 0x24]
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x18
mov ecx, ebx
push esi
push edi
call dword [eax + 0xc]
mov eax, dword [vtable.VprocessGlobals.0]
push 0x100f02b0
push edi
push edi
push ebx
call dword [eax + 0x24]
add esp, 0x10
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
pop edi
pop ebx
test eax, eax
je 0x100d0979
cmp byte [0x10181cdb], 0
jne 0x100d0979
push esi
call fcn.1004ba3f
test esi, esi
je 0x100d0985
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebp
ret 0xc
Function at 0x100d3b5f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.100d303e
mov edi, dword [ebp + 8]
test edi, edi
je 0x100d3bb0
cmp dword [esi + 0x4c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
je 0x100d3b89
push edi
push dword [esi + 0x4c]
call ebx
test eax, eax
jne 0x100d3b99
cmp dword [esi + 0x50], 0
je 0x100d3b9d
push edi
push dword [esi + 0x50]
call ebx
test eax, eax
je 0x100d3b9d
mov al, 1
jmp 0x100d3bb2
cmp dword [esi + 0x54], 0
je 0x100d3bb0
push edi
push dword [esi + 0x54]
call ebx
test eax, eax
setne al
jmp 0x100d3bb2
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100d7805
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x100ed0ef
call fcn.10001371
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
push 1
xor ebx, ebx
push ebx
push ebx
call fcn.1004ba3f
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov al, byte [ebp + 0xc]
push ebx
mov byte [esi + 0x54], al
mov al, byte [ebp + 0x14]
push ebx
push 8
mov dword [esi], vtable.SMP_HEAP.0
mov byte [esi + 0x55], 1
mov byte [esi + 0x56], al
mov word [esi + 0x34], bx
call fcn.100d57cc
push ebx
push ebx
push 0x14
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.100d57cc
push ebx
push ebx
push 8
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.100d57cc
push ebx
push ebx
push 0xc
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
call fcn.100d57cc
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x48], eax
test ecx, ecx
je 0x100d78d1
cmp dword [esi + 0x3c], ebx
je 0x100d78d1
cmp dword [esi + 0x40], ebx
je 0x100d78d1
test eax, eax
je 0x100d78d1
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov eax, dword [esi + 0x40]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov edi, dword [esi + 0x48]
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
setne cl
mov byte [edi], cl
je 0x100d78db
cmp eax, 0x40000000
jge 0x100d78db
lea eax, [eax*4 + 0xe10]
mov dword [edi + 8], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x34], 1
mov eax, esi
call fcn.1000140a
ret 0x14
mov ecx, str.No_TLS_available
call fcn.1004ba3f
int3

Function at 0x100d7dbc
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x100d7df6
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d7de4
lea ecx, [eax + 8]
mov eax, dword [ecx]
pop esi
mov eax, dword [eax + 0xc]
pop ebp
jmp eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100d56ca
jmp 0x100d7df8
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10008
call fcn.0040b940
mov eax, dword [0x413004]
xor eax, esp
mov dword [esp + 0x10004], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40108a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 8]
push 0
push eax
push 0x10000
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
je 0x401082
nop word [eax + eax]
cmp dword [esp + 8], 0x10000
jb 0x401082
push 0
lea eax, [esp + 0xc]
push eax
push 0x10000
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x401060
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x10008]
pop esi
xor ecx, esp
call fcn.00401364
add esp, 0x10008
ret
Function at 0x10004f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10004f1f
pop dword [ebp - 0x28]
mov eax, 0x10004f1f
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x89adf308
sub dword [ebp - 0x38], 0x3b5badbd
mov dword [ebp - 0x34], 0xf7621b44
add dword [ebp - 0x34], 0x3ad13101
mov dword [ebp - 0x30], 0xb2bbe831
sub dword [ebp - 0x30], 0x666fa403
mov dword [ebp - 0x2c], 0x4e761b20
add dword [ebp - 0x2c], 0xb189e4e0
lea eax, [ebp - 0x38]
push eax
mov eax, 0xb7f87fbe
add eax, 0x580ba076
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe6c70a8a
add dword [ebp - 0x38], 0x8dab5ecc
mov dword [ebp - 0x34], 0xf2824d7a
sub dword [ebp - 0x34], 0xb115ec05
mov dword [ebp - 0x30], 0x5eaa03f3
add dword [ebp - 0x30], 0x4c56879
mov dword [ebp - 0x2c], 0x95a54413
add dword [ebp - 0x2c], 0x6a5abbed
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x8a827d50
sub eax, 0x7a7e5d04
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x476ea
push 0
call eax
mov ecx, 0x6918f09a
add ecx, 0x96e758b1
mov ebx, eax
mov edx, 0x10057e00
add edx, dword [ebp - 0x28]
mov edi, 0xcfcd0bf9
add edi, 0xbefe680e
mov esi, dword [edx]
mov dword [ebp - 4], 0xea3218aa
sub esi, edi
xor dword [ebp - 0x1c], 0xb2e04101
mov dword [ebx], esi
add dword [ebp - 8], ecx
add ebx, 4
add edx, 0xa3b654af
sub edx, 0xa3b654ab
loop 0x10005036
add eax, 0x117ff
mov ebx, eax
add eax, 0x175fa768
add eax, 0xe8a0589d
mov ecx, 0x3a9c7b67
sub ecx, 0x2a9c7b67
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402c00
pop dword [ebp - 0x48]
mov eax, 0x3dc45c21
sub eax, 0x3d843021
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x7136dc8f
sub dword [ebp - 0x58], 0x22e49744
mov dword [ebp - 0x54], 0x449b2f87
add dword [ebp - 0x54], 0xed981cbe
mov dword [ebp - 0x50], 0x640ef0c6
sub dword [ebp - 0x50], 0x17c2ac98
mov dword [ebp - 0x4c], 0x5bbe47bc
add dword [ebp - 0x4c], 0xa441b844
lea eax, [ebp - 0x58]
push eax
mov eax, 0x7b34a12
sub eax, 0x772d9ae
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc1cf96e4
sub dword [ebp - 0x58], 0x4d5d2d8e
mov dword [ebp - 0x54], 0xfa0637b
add dword [ebp - 0x54], 0x31cbfdfa
mov dword [ebp - 0x50], 0xf5faeb48
add dword [ebp - 0x50], 0x6d748124
mov dword [ebp - 0x4c], 0x7ee8e34f
add dword [ebp - 0x4c], 0x81171cb1
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4ecc3f34
sub eax, 0x4e8bce8c
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x377be
push 0
call eax
mov ecx, 0x3bfbdc04
add ecx, 0xc4046f2a
mov esi, eax
mov edi, 0xe7d6e6c6
sub edi, 0xe795e6c6
add edi, dword [ebp - 0x48]
mov edx, 0x4fc7cf12
add edx, 0x687f8ed8
add dword [ebp - 0x3c], edx
mov ebx, dword [edi]
add dword [ebp - 0x1c], ecx
add ebx, edx
xor dword [ebp - 0x28], 0xae38459f
mov dword [esi], ebx
add dword [ebp - 0x24], 0xaa182513
add esi, 0xed1c0c09
sub esi, 0xed1c0c05
add edi, 4
loop 0x402d22
add eax, 0xce34aa9f
add eax, 0x31cc74ec
xor ebx, ebx
add ebx, eax
add eax, 0x48d5a511
add eax, 0xb72a5af4
mov ecx, 0x34ac1931
add ecx, 0xcb93e6cf
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10002ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002ad2
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebp + 0x10]
mov byte [esi], al
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002b00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push 0x40
push edi
call ebx
test eax, eax
jne 0x10002b28
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x1c], 0
jne 0x10002b7b
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
test eax, eax
je 0x10002b1e
push esi
mov esi, dword [ebp + 0x14]
push esi
push edi
push eax
call fcn.100048a0
mov eax, dword [ebx]
add esp, 0xc
mov cl, byte [ebp + 0x10]
mov byte [eax + esi + 1], cl
lea ecx, [edi + esi]
mov eax, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add eax, esi
sub ecx, eax
sub ecx, 5
pop esi
mov dword [eax + 2], ecx
jmp 0x10002b86
mov eax, dword [ebp + 0x18]
lea ecx, [edi + 5]
add ecx, dword [edi + 1]
mov dword [eax], ecx
mov al, byte [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x40
push edi
call ebx
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40673a
pop dword [ebp - 0x40]
mov eax, 0x440355b4
add eax, 0xbc3d1186
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb44559e9
add dword [ebp - 0x50], 0x9a0ceb62
mov dword [ebp - 0x4c], 0x9d737f90
sub dword [ebp - 0x4c], 0x6b40334b
mov dword [ebp - 0x48], 0xb94df04c
add dword [ebp - 0x48], 0x92fe53e2
mov dword [ebp - 0x44], 0xfd32f3b9
sub dword [ebp - 0x44], 0xfd32f3b9
lea eax, [ebp - 0x50]
push eax
mov eax, 0x990de3da
sub eax, 0x98cd62d6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x5770536d
add dword [ebp - 0x50], 0x1d0215e9
mov dword [ebp - 0x4c], 0xf8242c95
sub dword [ebp - 0x4c], 0xb6b7cb20
mov dword [ebp - 0x48], 0x4e2f88bf
sub dword [ebp - 0x48], 0xeac01c53
mov dword [ebp - 0x44], 0x130b5db
sub dword [ebp - 0x44], 0x130b5db
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xc3ed9fa1
add eax, 0x3c52e15f
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab65
push 0
call eax
mov ecx, 0xc52ea656
sub ecx, 0xc52e518d
xor edi, edi
add edi, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x40]
mov ebx, 0x5e379de9
add ebx, 0xffe4492a
mov edx, dword [esi]
xor edx, ebx
xor dword [ebp - 0x30], eax
mov dword [edi], edx
xor dword [ebp - 0x2c], 0xa956d8bf
add edi, 4
add esi, 0x7ae14c05
sub esi, 0x7ae14c01
loop 0x406858
add eax, 0xe18c58fc
add eax, 0x1e74ecfb
xor ebx, ebx
add ebx, eax
add eax, 0xdc4931f3
sub eax, 0xdc4931ee
mov ecx, 0xefbab98f
sub ecx, 0xef7ab98f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4047ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40480e
pop dword [ebp - 0xc]
mov eax, 0x40480e
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x5819b344
add dword [ebp - 0x1c], 0xf6389207
mov dword [ebp - 0x18], 0x9de6abbc
sub dword [ebp - 0x18], 0x6bb35f77
mov dword [ebp - 0x14], 0x1431092
add dword [ebp - 0x14], 0x4b09339c
mov dword [ebp - 0x10], 0xb24e5c3d
add dword [ebp - 0x10], 0x4db1a3c3
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x94a0f4d9
sub eax, 0x945d5429
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd177e20b
sub dword [ebp - 0x1c], 0x5d0578b5
mov dword [ebp - 0x18], 0x39821135
add dword [ebp - 0x18], 0x7ea5040
mov dword [ebp - 0x14], 0xed31bed5
sub dword [ebp - 0x14], 0x89c25269
mov dword [ebp - 0x10], 0xec1220eb
add dword [ebp - 0x10], 0x13eddf15
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4068e
push 0
call eax
mov ecx, 0x508c
mov edi, eax
mov edx, 0x7e8b7d84
add edx, 0x81b9fc7c
add edx, dword [ebp - 0xc]
mov esi, 0x84c5d5f2
add esi, 0x3cd4a82e
mov ebx, dword [edx]
sub dword [ebp - 8], 0x34f0c397
add ebx, esi
xor dword [ebp - 4], edi
mov dword [edi], ebx
xor dword [ebp - 4], 0x455be0c0
add edi, 0xbbd747bc
sub edi, 0xbbd747b8
add edx, 0xbf368ce
add edx, 0xf40c9736
loop 0x404920
add eax, 0x13503
xor ebx, ebx
add ebx, eax
add eax, 0x1381233a
sub eax, 0x13812335
mov ecx, 0xae893dd8
sub ecx, 0xae493dd8
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40bacb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40baec
jl 0x40bae3
test edi, edi
jne 0x40baec
xor eax, eax
xor edx, edx
jmp 0x40bbad
cmp dword [ebx + 0x38], 0
je 0x40bb01
push eax
push edi
push dword [ebp + 8]
call fcn.0040bbb3
jmp 0x40bbad
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40bb48
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bb48
cmp eax, edi
jb 0x40bb22
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d240
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40bb4e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40bba2
mov ecx, ebx
call fcn.0040b362
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40bb8d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00417d57
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40bba2
jmp 0x40bb60
test edx, edx
je 0x40bba2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00417d57
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40d08b
Capabilities:
Parse pe header

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

Function at 0x41eb9b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4304a8
push 0x4304a0
push str.FlsAlloc
push 0x1f
call fcn.0041ea06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ebcf
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c130]
call esi
jmp 0x41ebd5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ec19
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4304b8
push 0x4304b0
push str.FlsGetValue
push 0x21
call fcn.0041ea06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec50
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41ec58
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4304c0
push 0x4304b8
push str.FlsSetValue
push 0x22
call fcn.0041ea06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec92
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421034
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d1f0
mov eax, dword [0x437040]
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.0041e40c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421076
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4211d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ada0
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 + 0x438a98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00422031
mov ecx, dword [esi*4 + 0x438a98]
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 0x4211cb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4211cb
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 0x4211cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422031
add esp, 0x14
test edx, edx
jl 0x4211cb
jg 0x421141
test eax, eax
jb 0x4211cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4211cb
jl 0x42115b
cmp dword [ebp - 0x1008], eax
ja 0x4211cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421179
test ebx, ebx
je 0x4211b2
cmp ecx, edi
jae 0x4211b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x421193
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42119f
cmp byte [ecx + 1], 0xa
jne 0x42119f
inc ecx
jmp 0x42119f
movzx eax, al
movsx eax, byte [eax + 0x437308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421179
cmp edx, ebx
jne 0x421179
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4211d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c404
leave
ret
Function at 0x4214c9
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 + 0x438a98]
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 0x421509
cmp byte [ebx], 0xa
jne 0x421509
or byte [edi + eax + 0x28], 4
jmp 0x42150e
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 0x42160d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4215f0
inc eax
cmp dl, 0xd
je 0x42153a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x421560
cmp eax, ecx
jae 0x42156e
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 0x421522
jmp 0x42160d
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 0x4215eb
cmp dword [ebp - 0x10], 0
je 0x4215eb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438a98]
test byte [eax + edi + 0x28], 0x48
je 0x4215c5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4215b0
mov byte [esi], dl
jmp 0x4215c1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42160d
cmp byte [ebp - 1], 0xa
jne 0x4215d4
cmp esi, ebx
jne 0x4215d4
mov byte [esi], 0xa
jmp 0x42160c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042204f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42160d
mov byte [esi], 0xd
jmp 0x42160c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42160a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42160d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret