joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
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 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5ef02ff0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x707b0405
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x4022e0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x40374f]
call dword [sym.imp.pdh.dll_PdhCloseQuery]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x40230e
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401775], eax
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
mov ecx, 0x589d72a2
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x34597924
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x10005e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10005e62
jl 0x10005e55
test ecx, ecx
jne 0x10005e62
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10005f22
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10007600
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10005ece
jg 0x10005e8d
test esi, esi
je 0x10005ece
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10005ea5
mov eax, dword [esp + 0x10]
jl 0x10005e9f
cmp eax, esi
jae 0x10005ea5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10010370
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10005eef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10005f0b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10005e74
jl 0x10005f0b
test ecx, ecx
jne 0x10005e74
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10005f66
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10005f66
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10010370
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10005fd7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10005f8c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10005fc2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10015726
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10005fd7
cmp edi, eax
ja 0x10005fa0
test edi, edi
je 0x10005fd7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10015726
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b2d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000b4a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b3ad
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000b31a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10036004]
ja 0x1000b31a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b2ea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100108f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000b33f
jmp 0x1000b3ad
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b393
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b393
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b376
mov eax, dword [ebp - 8]
jmp 0x1000b3af
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b386
xor eax, eax
jmp 0x1000b3af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b3a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000b4a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b2ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000b3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000b4d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000b495
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000b405
mov eax, dword [ebp - 4]
cmp eax, dword [0x10036004]
ja 0x1000b405
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b3d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100108f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000b42a
jmp 0x1000b495
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b47e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b47e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b461
mov eax, dword [ebp - 8]
jmp 0x1000b497
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b471
xor eax, eax
jmp 0x1000b497
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b490
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000b4d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b3d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b500
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b8f0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10036ff4], 0
jne 0x1000b53d
cmp dword [0x10036ff0], 0
je 0x1000b53d
mov eax, dword [0x10036ff0]
mov dword [0x10036ff4], eax
cmp dword [0x10036ff4], 0
je 0x1000b5ba
mov ecx, dword [0x10036ff4]
cmp dword [ecx + 8], 0
je 0x1000b5ba
mov edx, dword [0x10036ff4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000b5ba
mov ecx, dword [0x10036ff4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000b5ba
mov eax, dword [0x10036ff4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000b589
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000b590
xor eax, eax
jmp 0x1000b6d9
mov ecx, dword [0x10036ff4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100108f0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000b6d9
mov edx, dword [0x10036ff0]
mov dword [0x10036ff4], edx
jmp 0x1000b5d6
mov eax, dword [0x10036ff4]
mov ecx, dword [eax + 4]
mov dword [0x10036ff4], ecx
cmp dword [0x10036ff4], 0
je 0x1000b616
cmp dword [0x10036ff4], 0
je 0x1000b614
mov edx, dword [0x10036ff4]
cmp dword [edx + 8], 0
je 0x1000b614
mov eax, dword [0x10036ff4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000b614
mov edx, dword [0x10036ff4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000b614
jmp 0x1000b56e
jmp 0x1000b5c8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b6e0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000b6d7
mov eax, dword [ebp - 0x18]
mov dword [0x10036ff4], eax
mov ecx, dword [0x10036ff4]
mov dword [ecx], 0x52727464
mov edx, dword [0x10036ff4]
mov dword [edx + 8], 0
mov eax, dword [0x10036ff4]
mov ecx, dword [0x10036ff0]
mov dword [eax + 4], ecx
mov edx, dword [0x10036ff4]
mov dword [0x10036ff0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10036ff4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000b6a7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000b6c7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000b69e
mov eax, dword [0x10036ff4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000b56e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10036ff0]
mov dword [ebp - 4], eax
jmp 0x1000c439
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c460
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000c45e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c462
jmp 0x1000c430
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c900
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10037000], eax
je 0x1000c91d
mov eax, 0x10dd
jmp 0x1000ca00
mov eax, dword [0x10037010]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000c99c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000c978
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000c978
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000b980
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000f0df
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000c925
mov dword [0x10037010], 0
call fcn.1000c260
mov ecx, dword [0x1003700c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000c9ea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000f0df
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000c9b4
mov dword [0x1003700c], 0
mov dword [0x10037000], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000cee0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10037004], 0
je 0x1000cef9
mov eax, dword [0x10037004]
jmp 0x1000cf98
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000cf0a
xor eax, eax
jmp 0x1000cf98
push 8
call fcn.1000f0af
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000cf62
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000cf4b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000f0df
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10037004], eax
mov dword [0x10037008], 0
mov eax, dword [ebp - 8]
jmp 0x1000cf98
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000cf7a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000cf2a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003700c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003700c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a6bc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b698
push 0x1002b690
push str.FlsAlloc
push 0x1e
call fcn.1001a586
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a6f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281a0]
call esi
jmp 0x1001a6f6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a73a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b6a8
push 0x1002b6a0
push str.FlsGetValue
push 0x20
call fcn.1001a586
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a771
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001bdf2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001bc63

Function at 0x1001c311
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000fd30
mov eax, dword [0x10036054]
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.100180c4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001c353
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001c4af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10026f40
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 + 0x10037998]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001d10c
mov ecx, dword [esi*4 + 0x10037998]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001c4a8
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001c4a8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c4a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001d10c
add esp, 0x14
test edx, edx
jl 0x1001c4a8
jg 0x1001c41e
test eax, eax
jb 0x1001c4a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001c4a8
jl 0x1001c438
cmp dword [ebp - 0x1008], eax
ja 0x1001c4a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001c456
test ebx, ebx
je 0x1001c48f
cmp ecx, edi
jae 0x1001c48f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001c470
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001c47c
cmp byte [ecx + 1], 0xa
jne 0x1001c47c
inc ecx
jmp 0x1001c47c
movzx eax, al
movsx eax, byte [eax + 0x100362e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001c456
cmp edx, ebx
jne 0x1001c456
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001c4ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000ee9f
leave
ret
Function at 0x1001c5aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10037998]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001c5ea
cmp byte [ebx], 0xa
jne 0x1001c5ea
or byte [eax + edi + 0x28], 4
jmp 0x1001c5ef
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001c6ed
mov al, byte [edx]
cmp al, 0x1a
je 0x1001c6cf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1001c61e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001c643
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1001c64d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1001c600
jmp 0x1001c6ed
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c6ca
cmp dword [ebp - 0xc], 0
je 0x1001c6ca
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10037998]
test byte [eax + edi + 0x28], 0x48
je 0x1001c6a4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001c68f
mov byte [esi], dl
jmp 0x1001c6a0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10037998]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001c6ed
cmp byte [ebp - 1], 0xa
jne 0x1001c6b3
cmp esi, ebx
jne 0x1001c6b3
mov byte [esi], 0xa
jmp 0x1001c6ec
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001d12a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c6ed
mov byte [esi], 0xd
jmp 0x1001c6ec
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10037998]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001c6e9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001c6ed
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret