joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40679d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067c2
mov eax, dword [0x40a914]
cmp eax, 0xffffffff
je 0x4067b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a914], 0xffffffff
jmp 0x406835
cmp dword [0x43baa0], ebx
je 0x406835
cmp byte [0x43b6a0], bl
je 0x406801
cmp dword [0x40a914], 0xffffffff
jne 0x40680a
push 4
push 0x40000000
push 0x43b6a0
call fcn.00406165
cmp eax, 0xffffffff
mov dword [0x40a914], eax
je 0x406835
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a914], 0xffffffff
je 0x406835
push esi
mov esi, 0x43fae0
push 0x40aae8
push esi
call fcn.004064b2
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064a5
push eax
push esi
push dword [0x40a914]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4069dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b294], esi
push edi
jne 0x406a17
mov ecx, 0x43b290
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4069f3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b690
jl 0x4069ee
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a4c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b290]
xor eax, esi
inc ecx
dec edx
jne 0x406a2f
pop edi
pop esi
not eax
ret 0xc

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5f9941ac
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x553a48bf
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401290
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
lea edx, [ebp - 0x118]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
lea edx, [ebp - 0x228]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
lea edx, [ebp - 0x338]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
test eax, eax
je 0x40137c
lea eax, [ebp - 0x118]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
jne 0x40135c
lea eax, [ebp - 0x118]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
je 0x40137c
mov eax, dword [ebp - 0x33c]
mov byte [eax], 0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.__chdir
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_tools_AHK_HWord.exe
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], str._r__s_HWord.bin
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x338]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x228]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov eax, 0
leave
ret 0x10

Function at 0x401400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00401960
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x401438
jmp 0x4014d6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x401437
cmp cl, 0x22
je 0x401490
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4014b0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4014b0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x401470
jmp 0x4014b0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x401490
cmp cl, 0x22
je 0x401512
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4014d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x4014c0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4014f4
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4014b0
Function at 0x401b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x407ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret
Function at 0x413ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf720
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
push ebx
push esi
push edi
mov eax, dword [0x5080f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx - 0x10]
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x18], 0x35433244
mov dword [ebp - 0x14], 0x30414231
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], 0x1f
mov dword [eax + ebx - 0x10], 0x4e9a60
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 0xc]
mov dword [eax + ebx - 0x10], 0x4e9a58
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 0x10]
mov dword [eax + ebx - 0x10], 0x4e9a44
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
mov dword [ecx + ebx - 0x14], eax
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 0x10]
lea eax, [ecx - 0x24]
mov dword [ecx + ebx - 0x14], eax
movzx eax, word [0x4e98a0]
mov edi, dword [ebx - 0xc]
movq xmm0, qword [str.log_module]
mov word [ebp - 0x40], ax
movzx eax, byte [0x4e98a2]
mov byte [ebp - 0x3e], al
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
movq qword [ebp - 0x48], xmm0
movq qword [ebp - 0x24], xmm0
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x150]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4d9444]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x150]
call fcn.00414e00
lea ecx, [ebp - 0x150]
call fcn.00415c10
movzx eax, word [0x4e98a0]
mov edi, dword [ebx - 0xc]
movq xmm0, qword [str.log_module]
mov word [ebp - 0x4c], ax
movzx eax, byte [0x4e98a2]
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x49], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x30], 0x35433244
mov dword [ebp - 0x2c], 0x30414231
mov dword [ebp - 0x28], 0x20
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x248]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4d9444]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x248]
call fcn.00414e80
lea ecx, [ebp - 0x248]
call fcn.00415c10
mov edi, dword [ebx - 8]
test edi, edi
je 0x414069
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x414069
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x414069
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416200
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfb0c
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.004837a7
mov byte [ebp - 4], 1
mov ecx, dword [0x51113c]
mov eax, dword [0x513338]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x4162a4
push ecx
lea ecx, [ebp - 0x14]
call fcn.004837a7
cmp dword [0x51113c], 0
jne 0x416293
mov eax, dword [0x511124]
inc eax
mov dword [0x511124], eax
mov dword [0x51113c], eax
lea ecx, [ebp - 0x14]
call fcn.004837ff
mov ecx, dword [0x51113c]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0xc]
jae 0x4162cc
mov eax, dword [edi + 8]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4162ce
mov esi, dword [ebp - 0x24]
test edi, edi
jne 0x416361
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4162ec
mov edi, eax
jmp 0x416361
xor edi, edi
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0x14], 0
je 0x4162b6
call fcn.0048354e
mov edi, dword [ebp - 0x14]
cmp edi, dword [eax + 0xc]
jae 0x4162be
mov eax, dword [eax + 8]
mov edi, dword [eax + edi*4]
jmp 0x4162b6
push 0x18
call fcn.00484da3
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x416309
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040fc10
lea eax, [ebp - 0x3c]
mov dword [edi + 4], 0
push eax
mov dword [edi], vtable.std::ctype_char_.0
call fcn.00483905
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [edi + 8], xmm0
call fcn.0040fce0
mov dword [ebp - 0x18], edi
push edi
mov byte [ebp - 4], 3
call fcn.00483522
mov eax, dword [edi]
add esp, 4
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov dword [0x513338], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004837ff
mov eax, dword [edi]
push 0x20
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x1d], al
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4163af
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret 4
Function at 0x4189a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe65
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x40], esi
cmp dword [esi], eax
jl 0x418b05
call fcn.00419140
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], 0x4e9df8
mov dword [eax + 4], 2
lea eax, [ebp - 0x38]
push eax
call fcn.0041e250
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x44]
movlpd qword [ebp - 0x20], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x60]
test edi, edi
je 0x418a2a
lock inc dword [edi + 4]
mov edi, dword [ebx + 0x60]
mov eax, dword [ebx + 0x5c]
push esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x418a5e
mov eax, dword [eax]
jmp 0x418a61
or eax, 0xffffffff
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418b23
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx], eax
jl 0x418a9c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x418a92
mov eax, dword [eax]
jmp 0x418a95
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test edi, edi
je 0x418ad5
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x418ad5
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x418ad5
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x418b05
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418b3f
push edx
push ecx
call fcn.00484d63
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
call fcn.004a949f
int3
Function at 0x41d2a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d05be
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5080f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
sub esi, edi
mov dword [ebp - 0x18], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea ecx, [esi + 2]
mov dword [ebp - 4], 0
mov eax, 0x55555556
mov dword [ebp - 0x18], 1
imul ecx
xor ecx, ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 4
mul edx
push 0
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, ebx
call fcn.00412000
mov eax, ebx
xor ecx, ecx
cmp dword [eax + 0x14], 0x10
jb 0x41d33d
mov ebx, dword [eax]
cmp esi, 3
jl 0x41d3cc
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
mov dword [ebp - 0x14], edx
lea eax, [edx*4]
sub eax, edx
neg eax
add esi, eax
mov dword [ebp + 8], esi
movzx esi, byte [edi]
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
add edi, 3
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
mov eax, esi
shr eax, 0x12
movzx eax, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx], al
mov eax, esi
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx + 2], al
movzx eax, byte [esi + 0x4e9fe8]
mov byte [ebx + ecx + 3], al
add ecx, 4
sub dword [ebp - 0x14], 1
jne 0x41d362
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
cmp esi, 2
jne 0x41d419
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
or esi, eax
shl esi, 8
mov eax, esi
shr eax, 0x12
mov al, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx], al
mov eax, esi
shr eax, 0xc
and eax, 0x3f
shr esi, 6
and esi, 0x3f
mov dl, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx + 1], dl
lea edx, [ecx + 2]
mov cl, byte [esi + 0x4e9fe8]
mov byte [edx + ebx], cl
mov byte [edx + ebx + 1], 0x3d
jmp 0x41d44b
cmp esi, 1
jne 0x41d44e
movzx edx, byte [edi]
shl edx, 0x10
mov eax, edx
shr edx, 0xc
shr eax, 0x12
and edx, 0x3f
movzx eax, byte [eax + 0x4e9fe8]
mov byte [ebx + ecx], al
movzx eax, byte [edx + 0x4e9fe8]
mov byte [ebx + ecx + 1], al
mov word [ebx + ecx + 2], 0x3d3d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41df70
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x508ba8]
mov dword [ebp - 0x14], esi
push edi
cmp eax, 0xffffffff
jne 0x41dfc5
call fcn.0042b030
test eax, eax
jne 0x41dfc0
mov ecx, 0x4e9154
jmp 0x41dfd6
mov dword [0x508ba8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov ecx, 0x4e9154
cmovne ecx, eax
mov edi, ecx
mov dword [ebp - 8], ecx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x41dfe0
sub edi, edx
je 0x41e090
or esi, 0xffffffff
lea eax, [edi - 1]
cmp eax, esi
cmovb esi, eax
add esi, ecx
cmp byte [esi], 0x3a
je 0x41e00b
cmp esi, ecx
je 0x41e04d
dec esi
cmp byte [esi], 0x3a
jne 0x41e001
sub esi, ecx
cmp esi, 0xffffffff
je 0x41e04d
lea edx, [esi + 1]
cmp edi, edx
jb 0x41e0e3
push dword [ebx + 0xc]
mov eax, edi
add ecx, edx
push dword [ebx + 8]
sub eax, edx
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
call fcn.0042afc0
add esp, 8
test al, al
je 0x41e04d
mov eax, dword [ebp - 8]
cmp edi, esi
mov dword [ebp - 8], eax
cmovb esi, edi
mov edi, esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e0f0
mov ecx, dword [ebp - 8]
sub esp, 0x10
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, esp
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x41e4c0
push 9
mov dword [ecx], 0xfd
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
push 0x4ea090
jmp 0x41e0c5
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e0f0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
sub esp, 0x10
mov dword [ebp - 0xc], 0x41e4c0
mov eax, esp
push 2
mov dword [eax], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
push 0x4e90cc
push esi
call fcn.004820b0
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.00484d55
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00412ac0
int3
Function at 0x42cd30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0de6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5080f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.asw::mi::ModuleDestructions.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
push 0x40
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00484da3
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 2
push 0x40
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00484da3
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov byte [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d0f0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0e31
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42d132
mov byte [eax], 1
test ebx, ebx
jne 0x42d161
mov dword [edi], ebx
push 0x13
xor eax, eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 7
mov ecx, edi
push str.System_Idle_Process
mov word [edi], ax
mov dword [ebp - 4], 0xffffffff
call fcn.004123e0
jmp 0x42d298
cmp ebx, 4
jne 0x42d199
mov dword [edi], 0
push 6
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov ecx, edi
push str.System
mov word [edi], ax
mov dword [ebp - 4], 0xffffffff
call fcn.004123e0
jmp 0x42d298
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x51358c]
cmp eax, dword [ecx + 4]
jle 0x42d1f2
push 0x51358c
call fcn.0048528a
add esp, 4
cmp dword [0x51358c], 0xffffffff
jne 0x42d1f2
mov dword [ebp - 4], 2
call fcn.0043b7f0
test al, al
mov edx, 0x1000
mov ecx, 0x400
cmovne ecx, edx
push 0x51358c
mov dword [0x513590], ecx
call fcn.00485240
add esp, 4
push ebx
push 0
push dword [0x513590]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x42d2b6
push 0x10000
call fcn.00485139
add esp, 4
mov dword [ebp - 0x14], eax
push 0x8000
push eax
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x42d2d9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42d248
mov byte [eax], 0
mov dword [edi], 0
mov byte [ebp - 4], 4
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d270
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.004123e0
push ebx
call fcn.00485360
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret
push ebx
push str.Unable_to_open_process__ld_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042e5a0
push 0x5057bc
lea eax, [ebp - 0x30]
push eax
call fcn.004a0209
push ebx
push str.Unable_to_get_image_path_of_process__ld_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042e5a0
push 0x5057bc
lea eax, [ebp - 0x30]
push eax
call fcn.004a0209
int3