joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404406
mov dword [0x447520], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43f020], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f020], eax
leave
ret

Function at 0x4044f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43e0a0
mov dword [ebp - 0x1c], 0x4045b0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f020], 0
mov dword [ebp - 0x44], 0x447530
je 0x404590
jl 0x4045d0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447520]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x404673
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x447b50]
mov eax, 0xffffffff
test edx, edx
je 0x4045ea
mov eax, dword [0x43f024]
test eax, eax
je 0x40462a
xor eax, eax
test eax, eax
jne 0x404620
mov edi, dword [0x43f020]
test edi, edi
js 0x404620
mov dword [ebp - 0x44], 0x447530
mov ebx, dword [0x43f020]
test ebx, ebx
je 0x404590
jmp 0x40453e
xor esi, esi
mov dword [0x43f020], esi
jmp 0x4045f8
mov dword [esp], 0x43f028
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4046b1
mov eax, dword [0x43f024]
test eax, eax
jne 0x4045e8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43f024]
test eax, eax
je 0x40464d
jmp 0x4045e8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4046a5
mov dword [esp + 4], eax
mov eax, dword [0x447520]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4046da
test edx, edx
je 0x4046c5
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f024], eax
jmp 0x4045e8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404586
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4046a1
Function at 0x40b200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040b1e0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b24c
call sym.__errno
cmp dword [eax], 4
je 0x40b220
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d1f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447ba0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d230
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d5e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x447ba0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d6bc
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d6d1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d690
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d628
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d638
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d683
test edx, edx
jne 0x40d676
test ecx, ecx
je 0x40d620
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d6e0
cmp eax, 8
je 0x40d620
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d612
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d604
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d604
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d67b
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d733
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d75e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d73f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40d711
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d722
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d722
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d718
Function at 0x40d860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x447ba0]
test eax, eax
je 0x40d8c0
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d8e0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d900
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40d950
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d882
jmp 0x40d8e0
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d889
jmp 0x40d900
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40d8b1
lea esi, [esi]
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d99d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d9a9
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d97e
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d96d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40d95c
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d963
Function at 0x40d9c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x447ba0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40da54
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40da70
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40da90
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40da48
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40db0f
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dae6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40db00
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dac0
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40da05
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d9e0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d9eb
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d9ee
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40da37
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40da37
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40da29
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40da29
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40db20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40dbb2
mov eax, dword [0x447ba0]
test eax, eax
je 0x40dba6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dc21
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40dbc7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40dc3f
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dc12
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dc30
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dbf3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40db42
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40db57
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40db95
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40db95
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40db80
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40db4d
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40db8b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40de20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40de50
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x410b40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x4114b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x411500
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1002f320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100cffc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100c53b6
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10031da0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002f374
jmp dword [ecx*4 + 0x1002f4dc]
mov al, byte [esi]
test al, al
je 0x1002f3a2
cmp al, 0x20
je 0x1002f38e
cmp al, 0xa1
jne 0x1002f3a2
cmp byte [esi + 1], al
jne 0x1002f3a2
test al, 0x80
je 0x1002f39a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002f3a2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002f381
test ecx, ecx
je case.default.0x1002f374
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002f374
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002f3e8
cmp dl, 0xa1
jne 0x1002f3dc
cmp byte [eax + 1], 0xa1
jne 0x1002f3dc
test ecx, ecx
jne 0x1002f3d4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002f3fc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002f416
jmp 0x1002f3fc
cmp dl, 0x20
jne 0x1002f3fa
test ecx, ecx
jne 0x1002f3f3
mov edi, eax
mov ecx, 1
jmp 0x1002f3fc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002f3bc
cmp ecx, 1
jne case.default.0x1002f374
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002f374
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002f374
mov al, byte [esi]
test al, al
je 0x1002f46e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002f454
mov cl, byte [esi + 1]
test cl, cl
je 0x1002f46e
cmp al, 0xa1
jne 0x1002f444
cmp cl, al
je 0x1002f451
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10032030
inc esi
jmp 0x1002f466
cmp al, 0x20
je 0x1002f466
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10032070
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002f42d
push 0
lea ecx, [esp + 0x14]
call fcn.10032070
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100459c0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002f4a1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100ef368
call fcn.10031fa0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100c5348
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1003c810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d0b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100c50bd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1003c892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100c2899
mov eax, dword [eax]
push 0x10108e30
push eax
call fcn.100b4a64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100c5348
test bl, bl
je 0x1003c892
push 0x10108e30
lea ecx, [esp + 0xc]
call fcn.100c56d8
push 0x10108e3c
lea ecx, [esp + 0xc]
call fcn.100c56d8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1003c8ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100c5348
jmp 0x1003c999
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1003c952
lea edx, [esp + 0x7c]
push 0x10108e38
push edx
call fcn.100b4a64
add esp, 8
test eax, eax
je 0x1003c952
lea eax, [esp + 0x7c]
push 0x10108e34
push eax
call fcn.100b4a64
add esp, 8
test eax, eax
je 0x1003c952
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1003c8e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100c5348
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1003d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1003d202
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1003d210
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d0bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10118450]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x1003d348
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1003d276
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c5348
xor eax, eax
jmp 0x1003d3bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100c5485
push esi
lea ecx, [esp + 0xc]
call fcn.100c5714
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1003d39d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.1003d1a0
test eax, eax
jne 0x1003d39d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.1003d1a0
test eax, eax
jne 0x1003d39d
lea eax, [esp + 0x14]
push 0x10108e4c
push eax
call fcn.100b5bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003d37c
lea ecx, [esp + 0x14]
push 0x10108e48
push ecx
call fcn.100b5b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003d37c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1003d37f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100c5435
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1003d28e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c5348
xor eax, eax
jmp 0x1003d3bf
mov byte [esi], 0
push 0x10108e44
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.100c5348
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4