joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043be0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ca91
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x10098140]
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 esi, edx
mov edi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0xd0], eax
mov al, byte [esi + 0x10]
mov byte [ebp - 0xc8], al
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10043c59
mov eax, dword [ecx]
lea edx, [ebp - 0xc0]
push edx
call dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
test eax, eax
je 0x10043c78
lock inc dword [eax + 4]
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x44]
push edi
mov dword [ebp - 0x94], eax
call fcn.100416b0
mov eax, dword [edi + 0x78]
movq xmm0, qword [edi + 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x7c]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov ebx, dword [esi]
push dword [0x1009e624]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10043cdf
nop word [eax + eax]
cmp dword [eax], esi
je 0x10043de0
mov eax, dword [eax + 8]
test eax, eax
jne 0x10043cd0
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x60]
push eax
push 0xe8
call fcn.1000b700
add esp, 8
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xd0]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x100450a0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.100451b0
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
call fcn.1000e890
lea ecx, [ebp - 0xdc]
call fcn.10045010
lea ecx, [ebp - 0x90]
call fcn.1003a890
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x10043da6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10043da6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10043da6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10043dc4
mov edx, dword [ecx]
lea eax, [ebp - 0xc0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1004fde9
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x10043cdf
nop
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10045630
add esp, 8
nop
jmp 0x10043d70
Function at 0x10044030
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1004404a
add ecx, 8
call fcn.1003a890
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1004408f
push dword [0x1009e9a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004407f
mov edx, dword [eax + 4]
test edx, edx
je 0x1004407f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10044092
inc eax
cmp eax, 6
jl 0x10044070
push esi
call fcn.10050141
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x90]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10044540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cc56
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10098140]
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 edi, edx
mov esi, ecx
mov eax, dword [edi + 8]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xe0], eax
lea eax, [edi + 0x10]
push eax
call fcn.10034990
push esi
lea ecx, [ebp - 0x98]
call fcn.10043010
mov eax, dword [esi + 0x80]
movq xmm0, qword [esi + 0x78]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x84]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea ebx, [edi + 4]
mov eax, dword [edi]
push dword [0x1009e624]
mov esi, dword [ebx]
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100445e1
cmp dword [eax], esi
je 0x10044602
mov eax, dword [eax + 8]
test eax, eax
jne 0x100445d6
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf0], eax
cmp byte [edi + 0x400], 0
jne 0x10044623
mov byte [edi + 0x400], 1
jmp 0x10044632
cmp dword [eax + 4], 0
je 0x100445e1
nop
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10045660
add esp, 8
nop
jmp 0x100446df
push 0xf8
call fcn.1004fdf7
add esp, 4
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x28]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x10045440
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0xe0]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.10029e10
lea eax, [ebp - 0x98]
push eax
lea ecx, [edi + 0x68]
call fcn.10043010
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [ebp - 0xe4]
movq qword [edi + 0xe0], xmm0
mov eax, dword [ebp - 0x18]
push edi
mov dword [edi + 0xe8], eax
mov eax, dword [ebp - 0x14]
push ebx
mov dword [edi + 0xec], eax
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xec], 0
call fcn.1000e890
lea ecx, [ebp - 0xf0]
call fcn.100453a0
lea ecx, [ebp - 0x98]
call fcn.1003f7c0
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x10044715
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10044715
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10044715
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x10044733
mov edx, dword [ecx]
lea eax, [ebp - 0xc8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1004fde9
mov esp, ebp
pop ebp
ret
Function at 0x100449a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x100449fa
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x100449d4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100449d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x100449d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x100449f3
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10044a3f
push dword [0x1009e9a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044a2f
mov edx, dword [eax + 4]
test edx, edx
je 0x10044a2f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10044a43
inc eax
cmp eax, 6
jl 0x10044a20
push esi
call fcn.10050141
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x88]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x10044a60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10044a7a
add ecx, 8
call fcn.1003f7c0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10044abf
push dword [0x1009e9a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044aaf
mov edx, dword [eax + 4]
test edx, edx
je 0x10044aaf
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10044ac2
inc eax
cmp eax, 6
jl 0x10044aa0
push esi
call fcn.10050141
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10044d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cd35
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10098140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [0x1009e624]
mov edi, dword [eax + 0x2c]
lea ebx, [eax + 0x2c]
mov ecx, dword [eax + 0x28]
lea esi, [eax + 0x30]
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044d7b
nop word [eax + eax]
cmp dword [eax], edi
je 0x10044dc2
mov eax, dword [eax + 8]
test eax, eax
jne 0x10044d70
push esi
push 0x50
mov dword [ebp - 0x18], esi
call fcn.1000b700
add esp, 4
mov dword [ebp - 4], 1
mov ecx, eax
push esi
call fcn.1003fb60
mov ecx, dword [ebp + 8]
push eax
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.1000e890
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x10044d7b
nop
push esi
push esi
mov dword [ebp - 4], 0
call fcn.100418e0
add esp, 8
nop
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 0x100458f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x10045919
mov byte [ebp - 8], 0
jmp 0x10045939
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.10051890
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x10045963
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10045970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10045997
xor bl, bl
jmp 0x100459bc
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.10051890
add esp, 0xc
test bl, bl
je 0x100459e5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100459f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x10045a3e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x10045ac1
sub eax, 1
je 0x10045ac1
sub eax, 0x16
jne 0x10045ab2
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1004b050
add esp, 4
cmp al, 0x15
je 0x10045a6b
cmp al, 0x25
jne 0x10045ab2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10045aa5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.1004b000
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.100459f0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x10045b4a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x10045b8a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004b000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x1004b046
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004b050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x1004b097
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004d190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.1004d370
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1004a390
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1004d1ee
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x1004d200
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1004d390
cmp eax, 0x16197be9
jne 0x1004d21b
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1004d390
cmp eax, 0x94bf
jne 0x1004d236
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1004d390
cmp eax, 0x94bf
jne 0x1004d251
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1004d390
cmp eax, 0x94bf
jne 0x1004d26c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1004d390
cmp eax, 0x3539f633
jne 0x1004d287
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1004d390
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x1004d390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1004d370
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1004a390
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1004d3e9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004e342
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1004e369
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1004e36c
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1004e31e
pop esi
leave
ret 8

Function at 0x10062b8e
Capabilities:
Parse pe header

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

Function at 0x1006701a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10066f9c

Function at 0x10068382
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100839ac
push 0x100839a4
push str.FlsAlloc
push 0x1f
call fcn.1006812d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100683b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007f24c]
call esi
jmp 0x100683bc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10068400
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100839bc
push 0x100839b4
push str.FlsGetValue
push 0x21
call fcn.1006812d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068437
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007f24c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006843f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100839c4
push 0x100839bc
push str.FlsSetValue
push 0x22
call fcn.1006812d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068479
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007f24c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006b60c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10050ff0
mov eax, dword [0x10098140]
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.1006496c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006b64e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006b7aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10076760
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 + 0x1009e188]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006c40d
mov ecx, dword [esi*4 + 0x1009e188]
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 0x1006b7a3
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006b7a3
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 0x1006b7a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006c40d
add esp, 0x14
test edx, edx
jl 0x1006b7a3
jg 0x1006b719
test eax, eax
jb 0x1006b7a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006b7a3
jl 0x1006b733
cmp dword [ebp - 0x1008], eax
ja 0x1006b7a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006b751
test ebx, ebx
je 0x1006b78a
cmp ecx, edi
jae 0x1006b78a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006b76b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006b777
cmp byte [ecx + 1], 0xa
jne 0x1006b777
inc ecx
jmp 0x1006b777
movzx eax, al
movsx eax, byte [eax + 0x10098598]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006b751
cmp edx, ebx
jne 0x1006b751
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006b7a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004fde9
leave
ret