joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a37c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40a387
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40a43f
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
add edx, 8
sub esi, 8
dec edi
jne 0x40a3a2
pop edi
test esi, esi
je 0x40a458
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d8d8]
inc edx
dec esi
jne 0x40a443
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x40a460
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov edx, 0xff
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42d8d8]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x42d8d8]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x40aae3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x40ab28
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ab23
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40ab4f
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x40ab38
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0040d2b0
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d205
leave
ret
Function at 0x40b848
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x40b8d0
cmp dword [esi + 4], 0xffffffff
jne 0x40b8d0
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0040f810
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x40b894
cmp eax, 0x2f
je 0x40b894
push 0x42d4e0
push edi
call fcn.00411298
pop ecx
pop ecx
push 0x20
call fcn.0040d8f4
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.0040ade0
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
pop edi
jmp 0x40b8d5
mov eax, 0x1000000
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41c638
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004138b2
mov dword [ebp - 0x14], eax
cmp dword [0x435e18], edi
jne 0x41c729
push 0x800
push edi
push 0x42b3b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41c6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41c809
push 0x42b3b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c809
push 0x42b3cc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c809
push eax
call ebx
push 0x42b3d8
push esi
mov dword [0x435e18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x42b3e8
push esi
mov dword [0x435e1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x42b3fc
push esi
mov dword [0x435e20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435e28], eax
test eax, eax
je 0x41c726
push 0x42b418
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435e24], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41c74e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c741
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41c763
push 4
pop eax
jmp 0x41c80b
cmp dword [ebp - 0x14], edi
je 0x41c763
push dword [0x435e18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41c748
mov eax, dword [0x435e24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41c7c1
cmp dword [0x435e28], esi
je 0x41c7c1
push eax
call ebx
push dword [0x435e28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c7c1
test eax, eax
je 0x41c7c1
call ecx
test eax, eax
je 0x41c7b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c7b6
test byte [ebp - 8], 1
jne 0x41c7c1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41c7f1
mov eax, dword [0x435e1c]
cmp eax, esi
je 0x41c7ee
push eax
call ebx
test eax, eax
je 0x41c7ee
call eax
mov edi, eax
test edi, edi
je 0x41c7ee
mov eax, dword [0x435e20]
cmp eax, esi
je 0x41c7ee
push eax
call ebx
test eax, eax
je 0x41c7ee
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x435e18]
call ebx
test eax, eax
je 0x41c809
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41c80b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d205
leave
ret
Function at 0x41eaac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004145d6
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41eae4
xor eax, eax
jmp 0x41eb10
cmp esi, dword [ebp - 4]
je 0x41eb0d
cmp dword [ebp + 0xc], 0
je 0x41eb0d
push dword [edi + 0x9c]
call fcn.0041e6ba
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040f810
pop ecx
pop ecx
cmp esi, eax
je 0x41eae0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x100071e2
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x100071fb
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x1000721a
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x10007211
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x10007209
mov eax, ebx
leave
ret

Function at 0x10007240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x10007262
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x1000726e
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x100072bd
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x100072a9
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x10007293
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x1001e460
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100b97f0]
xor edx, edx
cmp eax, edx
jne 0x1001e486
xor eax, eax
mov byte [eax + 0x100b96f0], al
inc eax
cmp eax, 0x100
jl 0x1001e46e
mov dword [0x100b97f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100b96f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001e517
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1001e4ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1001e4b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1001e590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1001e5e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1001e5ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100263a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
les ebx, [edx + eax*8]
adc byte [eax], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x10028b80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x10028d18
cmp ebp, ebx
jle 0x10028d18
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x10028bde
dec eax
or eax, 0xfffffff8
inc eax
je 0x10028be5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x10028bf4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x10028bfb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.1005f5ca
add esp, 4
cmp eax, ebx
je 0x10028c1c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
pop es
add byte [eax], al
add byte [ecx + 0x6b890473], cl
or byte [ecx - 0x6f17ebbd], cl
imul eax, dword [ebx], 0x144b8b00
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x10030590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1006beb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.10031110
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x1006e5ec]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi

Function at 0x10040fb0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006caa8
push eax
mov dword fs:[0], esp
and eax, 0
Function at 0x409500
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00409560
Function at 0x40b330
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040a200
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
lea edi, [esp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sub.msvcrt.dll_memcpy
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + esi + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x40b418
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x40b4b3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [edi + eax]
mov eax, 0x20
bt ebx, eax
jae 0x40b44d
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40b445
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40b4b0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0040b2c0
cmp eax, ebx
mov esi, eax
je 0x40b4ca
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0040b2c0
mov esi, eax
jmp 0x40b487
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40b487
mov dword [esp], ebx
call dword [ebp + 0x10]
nop
jmp 0x40b487
Function at 0x40c3c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x41e40c]
test ebx, ebx
je 0x40c3f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x41e40c]
test eax, eax
je 0x40c415
cmp dword [eax], 0xffffffff
je 0x40c438
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
mov ebx, eax
jmp 0x40c3ce
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40c3df
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40d160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
cmp dword [ebp + 0xc], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xfeedbab1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 1
je 0x40d198
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [0x41e40c]
test eax, eax
je 0x40d325
cmp dword [eax], 0xffffffff
je 0x40d18a
mov eax, dword [0x41e40c]
test eax, eax
je 0x40d376
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x40d18a
test byte [eax + 0x20], 0x30
je 0x40d277
mov eax, dword [eax + 0xbc]
test eax, eax
jne 0x40d317
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40d215
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x40d207
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00410800
mov eax, dword [ebp - 0x18]
mov esi, dword [ebx + 0xb8]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
test esi, esi
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x40], eax
je 0x40d39c
mov eax, dword [0x41e40c]
test eax, eax
je 0x40d350
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x18]
test ecx, ecx
jne 0x40d2d1
test eax, eax
je 0x40d291
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xbc]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x70], 1
test eax, eax
jne 0x40d310
test byte [ebx + 0x24], 4
je 0x40d2e8
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x40d20e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x40d20e
test eax, eax
je 0x40d2e1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00410800
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x40], eax
jmp 0x40d18a
call fcn.0040cf80
jmp 0x40d2a9
call fcn.0040cf80
lea esi, [esi]
jmp 0x40d1e3
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40d1a5
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40d253
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40d1b7
mov eax, ebx
call fcn.0040c440
jmp 0x40d246
Function at 0x40e630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call fcn.0040ca10
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xbc]
test eax, eax
jne 0x40e6b1
test byte [ebx + 0x20], 0x30
je 0x40e6b8
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e741
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x40e6a8
cmp dword [eax + 0x14], 0
je 0x40e70e
mov esi, dword [eax + 4]
mov dword [eax + 0x70], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e69b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x40e6cb
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0040cf80
jmp 0x40e64f
add ebx, 0x78
mov dword [esp + 4], 1
mov dword [esp], ebx
call 0x413535
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x14], 0
je 0x40e738
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e767
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x40e6a8
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e725
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x40e6ee
mov eax, ebx
call fcn.0040c440
jmp 0x40e6ee
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40e662
mov dword [esp + 8], 0x40b640
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a50
mov dword [0x41e40c], eax
jmp 0x40e6f7

Function at 0x401031
Capabilities:
Create process on windows

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403220], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403224], eax
push 0xa
push dword [0x403224]
push 0
push dword [0x403220]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, dword [ebp + 0x10]
inc eax
mov dl, byte [eax]
cmp dl, 0x20
jne 0x401044
jmp 0x401046
jmp 0x40103a
inc eax
push eax
push 0x403123
call fcn.00401110
push 0xfa
push 0x403029
push 0xffffffffffffffff
push 0x403123
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov dword [0x403228], 0x44
mov dword [0x403254], 1
mov word [0x403258], 0
push 0x40326c
push 0x403228
push 0
push 0
push 0
push 0x403029
push 0
push 0
push 0x403025
push 0
push str.mima1
call sub.advapi32.dll_CreateProcessWithLogonW
push 0xffffffffffffffff
push dword [0x40326c]
call sub.kernel32.dll_WaitForSingleObject
push dword [0x40326c]
call sub.kernel32.dll_CloseHandle
push dword [0x403270]
call sub.kernel32.dll_CloseHandle
push 0
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebp - 0x44]
leave
ret 0x10