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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cbf1
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 0x10043f99
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 0x10043fb8
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.100419f0
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 [0x1009e994]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004401f
nop word [eax + eax]
cmp dword [eax], esi
je 0x10044120
mov eax, dword [eax + 8]
test eax, eax
jne 0x10044010
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x60]
push eax
push 0xe8
call fcn.1000b8d0
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], 0x100453e0
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.100454f0
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
call fcn.1000ea70
lea ecx, [ebp - 0xdc]
call fcn.10045350
lea ecx, [ebp - 0x90]
call fcn.1003abd0
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x100440e6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100440e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100440e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10044104
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.1004ff4b
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x1004401f
nop
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10045970
add esp, 8
nop
jmp 0x100440b0
Function at 0x10044370
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1004438a
add ecx, 8
call fcn.1003abd0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100443cf
push dword [0x1009e9b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100443bf
mov edx, dword [eax + 4]
test edx, edx
je 0x100443bf
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100443d2
inc eax
cmp eax, 6
jl 0x100443b0
push esi
call fcn.100502a3
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 0x10044880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cdb6
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.10034cd0
push esi
lea ecx, [ebp - 0x98]
call fcn.10043350
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 [0x1009e994]
mov esi, dword [ebx]
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044921
cmp dword [eax], esi
je 0x10044942
mov eax, dword [eax + 8]
test eax, eax
jne 0x10044916
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf0], eax
cmp byte [edi + 0x400], 0
jne 0x10044963
mov byte [edi + 0x400], 1
jmp 0x10044972
cmp dword [eax + 4], 0
je 0x10044921
nop
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100459a0
add esp, 8
nop
jmp 0x10044a1f
push 0xf8
call fcn.1004ff59
add esp, 4
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x28]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x10045780
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.1002a140
lea eax, [ebp - 0x98]
push eax
lea ecx, [edi + 0x68]
call fcn.10043350
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.1000ea70
lea ecx, [ebp - 0xf0]
call fcn.100456e0
lea ecx, [ebp - 0x98]
call fcn.1003fb00
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x10044a55
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10044a55
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10044a55
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x10044a73
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.1004ff4b
mov esp, ebp
pop ebp
ret
Function at 0x10044ce0
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 0x10044d3a
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x10044d14
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10044d14
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10044d14
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x10044d33
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 0x10044d7f
push dword [0x1009e9b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044d6f
mov edx, dword [eax + 4]
test edx, edx
je 0x10044d6f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10044d83
inc eax
cmp eax, 6
jl 0x10044d60
push esi
call fcn.100502a3
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 0x10044da0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10044dba
add ecx, 8
call fcn.1003fb00
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10044dff
push dword [0x1009e9b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044def
mov edx, dword [eax + 4]
test edx, edx
je 0x10044def
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10044e02
inc eax
cmp eax, 6
jl 0x10044de0
push esi
call fcn.100502a3
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 0x10045060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ce95
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 [0x1009e994]
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 0x100450bb
nop word [eax + eax]
cmp dword [eax], edi
je 0x10045102
mov eax, dword [eax + 8]
test eax, eax
jne 0x100450b0
push esi
push 0x50
mov dword [ebp - 0x18], esi
call fcn.1000b8d0
add esp, 4
mov dword [ebp - 4], 1
mov ecx, eax
push esi
call fcn.1003fea0
mov ecx, dword [ebp + 8]
push eax
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.1000ea70
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 0x100450bb
nop
push esi
push esi
mov dword [ebp - 4], 0
call fcn.10041c20
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 0x10045b50
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 0x10045b79
mov byte [ebp - 8], 0
jmp 0x10045b99
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.100519f0
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x10045bc3
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 0x10045bd0
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 0x10045bf7
xor bl, bl
jmp 0x10045c1c
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.100519f0
add esp, 0xc
test bl, bl
je 0x10045c45
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 0x10045c50
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 0x10045c9e
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 0x10045d21
sub eax, 1
je 0x10045d21
sub eax, 0x16
jne 0x10045d12
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1004b150
add esp, 4
cmp al, 0x15
je 0x10045ccb
cmp al, 0x25
jne 0x10045d12
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 0x10045d05
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.1004b100
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 0x10045d50
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.10045c50
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 0x10045daa
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 0x10045dea
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 0x1004b100
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 0x1004b146
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 0x1004b150
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 0x1004b197
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 0x1004d290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.1004d470
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1004a490
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 0x1004d2ee
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 0x1004d300
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1004d490
cmp eax, 0x16197be9
jne 0x1004d31b
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1004d490
cmp eax, 0x94bf
jne 0x1004d336
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1004d490
cmp eax, 0x94bf
jne 0x1004d351
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1004d490
cmp eax, 0x94bf
jne 0x1004d36c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1004d490
cmp eax, 0x3539f633
jne 0x1004d387
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1004d490
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 0x1004d490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1004d470
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1004a490
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 0x1004d4e9
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 0x1004e4a1
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 0x1004e4c8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1004e4cb
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.1004e47d
pop esi
leave
ret 8

Function at 0x10062cee
Capabilities:
Parse pe header

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

Function at 0x10067179
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100670fb

Function at 0x100684e0
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.1006828b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068514
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007f24c]
call esi
jmp 0x1006851a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006855e
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.1006828b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068595
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 0x1006859d
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.1006828b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100685d7
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 0x1006b767
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10051150
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.10064acc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006b7a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006b905
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100768b0
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.1006c568
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 0x1006b8fe
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006b8fe
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 0x1006b8fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006c568
add esp, 0x14
test edx, edx
jl 0x1006b8fe
jg 0x1006b874
test eax, eax
jb 0x1006b8fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006b8fe
jl 0x1006b88e
cmp dword [ebp - 0x1008], eax
ja 0x1006b8fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006b8ac
test ebx, ebx
je 0x1006b8e5
cmp ecx, edi
jae 0x1006b8e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006b8c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006b8d2
cmp byte [ecx + 1], 0xa
jne 0x1006b8d2
inc ecx
jmp 0x1006b8d2
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 0x1006b8ac
cmp edx, ebx
jne 0x1006b8ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006b903
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004ff4b
leave
ret