joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec48
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040ec24
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
push ecx
test ebx, ebx
je 0x40ecbb
nop
mov al, byte [ebx]
cmp al, 0x20
je 0x40ec82
cmp al, 9
jne 0x40ec88
inc ebx
jmp 0x40ec78
cmp al, 0x22
jne 0x40ec9b
jmp 0x40eca8
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x40ed00
cmp al, 9
je 0x40ed04
test al, al
jne 0x40ec90
jmp 0x40ecb3
test al, al
je 0x40ecb3
inc ebx
mov al, byte [ebx]
cmp al, 0x22
jne 0x40eca4
nop
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x40ecb0
cmp al, 9
je 0x40ecb0
test byte [ebp - 0x30], 1
je 0x40ecf8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004049e4
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
leave
lea esp, [ecx - 4]
ret
mov esi, 0xa
jmp 0x40ecc5
mov al, 0x20
jmp 0x40ecb3
mov al, 9
jmp 0x40ecb3

Function at 0x40f024
Capabilities:
Allocate thread local storage

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x41a3b4]
test ebx, ebx
je 0x40f09c
mov eax, dword [0x41a38c]
test eax, eax
je 0x40f05a
test ebx, ebx
je 0x40f05a
mov edi, dword [ebx]
test edi, edi
je 0x40f070
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f100
mov eax, dword [eax]
test eax, eax
jns 0x40f069
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f0ac
mov dword [eax], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
push esi
test eax, eax
jne 0x40f091
jmp 0x40f0b8
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
push ecx
mov edx, dword [ebx]
test edx, edx
je 0x40f084
jmp 0x40f047
call fcn.0040f000
mov ebx, eax
mov dword [0x41a3b4], eax
jmp 0x40f034
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f063
mov esi, dword [0x41a3b8]
test esi, esi
je 0x40f125
mov edi, dword [0x41a3bc]
test edi, edi
je 0x40f117
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40f110
mov dword [edi], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00410270
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov dword [ebx], 1
jmp 0x40f047
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f054
call fcn.004101bc
jmp 0x40f0e8
call fcn.0040efb8
mov edi, eax
mov dword [0x41a3bc], eax
jmp 0x40f0cc
call fcn.0040efdc
mov esi, eax
mov dword [0x41a3b8], eax
jmp 0x40f0c2
Function at 0x40f210
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, eax
mov ebx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov eax, dword [ebx]
jmp 0x40f25c
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f388
mov dword [esp + 4], edi
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40f32c
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x40f318
mov ebp, dword [eax + 0x18]
xor edi, edi
mov eax, 0xa
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [esp + 0x28]
test eax, eax
jne 0x40f354
cmp edi, 5
je 0x40f359
test ebp, ebp
je 0x40f2e1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
mov edi, eax
cmp eax, 7
je 0x40f359
cmp eax, 8
jne 0x40f354
mov eax, dword [ebx]
mov edi, dword [eax]
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f364
mov eax, dword [eax]
test eax, eax
js 0x40f338
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f348
mov eax, dword [eax]
test eax, eax
jne 0x40f230
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f374
mov dword [eax], edi
jmp 0x40f256
xor ebp, ebp
mov edi, 5
mov eax, 0x1a
jmp 0x40f26e
call fcn.004101bc
jmp 0x40f256
call fcn.0040f024
mov eax, dword [0x41a3b8]
test eax, eax
jne 0x40f2fd
nop
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f2fd
mov edi, 2
mov eax, edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f2ee
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov dword [eax], edi
jmp 0x40f256
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f23d
Function at 0x40f398
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f454
mov edi, dword [eax]
test edi, edi
js 0x40f448
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f464
mov esi, dword [eax]
test esi, esi
je 0x40f424
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f474
mov edi, dword [eax]
call fcn.004101bc
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [ebx], edi
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f4a4
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40f43c
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f484
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.004101bc
call fcn.0040f024
jmp 0x40f3b9
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f3af
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f3c6
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f3d9
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov edx, dword [eax]
mov dword [ebx], edx
test eax, eax
jne 0x40f431
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov dword [eax], ebx
jmp 0x40f433
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f405

Function at 0x40f4b4
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f530
mov eax, dword [eax]
test eax, eax
js 0x40f51c
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f524
mov eax, dword [eax]
test eax, eax
je 0x40f500
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f54c
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40f510
add esp, 0x18
pop ebx
ret
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f53c
mov dword [eax], ebx
add esp, 0x18
pop ebx
ret
add esp, 0x18
pop ebx
jmp fcn.004101bc
call fcn.0040f024
jmp 0x40f4cd
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f4d6
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f4c7
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov dword [eax], ebx
jmp 0x40f50b
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f4e5
Function at 0x40f5e8
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f6fa
mov edi, dword [eax]
test edi, edi
js 0x40f6f0
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f709
mov esi, dword [eax]
test esi, esi
je 0x40f6ac
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f729
mov edi, dword [eax]
call fcn.004101bc
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [esp + 0x2c], edi
test edi, edi
je 0x40f69d
mov eax, edi
lea esi, [esp + 0x2c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40f68f
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x40f6bc
cmp eax, 8
jne 0x40f6e4
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x40f658
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f718
mov edi, dword [eax]
jmp 0x40f64a
mov dword [ebx + 0xc], 0
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov dword [esp + 0x2c], edi
mov edx, esi
mov eax, ebx
call fcn.0040ef0c
cmp eax, 7
jne 0x40f6a2
mov eax, esi
call fcn.0040f134
nop
mov eax, 3
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call fcn.0040f024
jmp 0x40f609
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f5ff
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f616
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov edi, dword [eax]
jmp 0x40f64a
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f62d

Function at 0x40f814
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f8b5
mov eax, dword [eax]
test eax, eax
js 0x40f8ab
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f8c4
mov eax, dword [eax]
test eax, eax
je 0x40f890
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f8e1
mov edi, dword [eax]
call fcn.004101bc
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edi
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push eax
mov dword [esp + 0x1c], edi
lea esi, [esp + 0x1c]
mov edx, esi
mov eax, ebx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x40f89d
call fcn.0040ef0c
cmp eax, 7
je 0x40f8a4
call sub.msvcrt.dll_abort
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f8d3
mov edi, dword [eax]
jmp 0x40f86e
call fcn.0040f210
jmp 0x40f886
mov eax, esi
call fcn.0040f134
call fcn.0040f024
jmp 0x40f831
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f82b
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f83e
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov edi, dword [eax]
jmp 0x40f86e
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f851
Function at 0x40f8f0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40f910
mov dword [esp], ebx
call fcn.0040f5e8
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f9a0
mov edi, dword [eax]
test edi, edi
js 0x40f98c
mov eax, dword [0x41a3b8]
test eax, eax
je 0x40f9b0
mov esi, dword [eax]
test esi, esi
je 0x40f97c
mov eax, dword [0x41a3bc]
test eax, eax
je 0x40f9d0
mov edi, dword [eax]
call fcn.004101bc
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.dll_TlsGetValue
push edx
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
push ecx
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x1c]
mov eax, ebx
call fcn.0040f210
cmp eax, 7
je 0x40f994
call sub.msvcrt.dll_abort
lea esi, [esi]
mov eax, dword [0x41a3c0]
test eax, eax
je 0x40f9c0
mov edi, dword [eax]
jmp 0x40f960
call fcn.0040f024
jmp 0x40f923
lea eax, [esp + 0x1c]
call fcn.0040f134
lea esi, [esi]
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f91d
call fcn.0040efdc
mov dword [0x41a3b8], eax
jmp 0x40f930
call fcn.0040ef94
mov dword [0x41a3c0], eax
mov edi, dword [eax]
jmp 0x40f960
call fcn.0040efb8
mov dword [0x41a3bc], eax
jmp 0x40f943

Function at 0x40fbe4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
sub esp, 0x28
call fcn.004101bc
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
push ecx
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_SetLastError
push ebx
mov eax, dword [esp + 0x1c]
add esp, 0x28
pop ebx
ret

Function at 0x40fc14
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40fc38
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004101bc
Function at 0x40ff20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov dword [ebp - 0x1c], ecx
not dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x4e
and eax, 0xfffffff0
call fcn.0040fb00
sub esp, eax
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov esi, str.gcc_shmem_tdm2
mov ecx, 0xe
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + 0xe], 0x2d
lea eax, [ebx + 0xf]
mov edi, eax
mov esi, edx
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
lea edx, [ebx + eax + 0xf]
mov cl, 0x20
mov al, 0x61
mov edi, edx
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x1c]
add edi, 0x2f
mov byte [ebx + edi], 0
mov esi, dword [ebp - 0x1c]
mov byte [ebx + esi + 0xe], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov byte [ebx + esi + 0xe], 0x2d
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x40ffd5
int3
mov dword [esp], ebx
call sub.KERNEL32.dll_FindAtomA
push ecx
test ax, ax
jne 0x410068
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x20], eax
add eax, ebx
mov ecx, 0x20
mov edx, esi
shr edx, cl
and edx, 1
je 0x410010
mov byte [eax], 0x41
inc eax
dec ecx
jne 0x410004
mov dword [esp], ebx
call sub.KERNEL32.dll_AddAtomA
push edx
test ax, ax
je 0x410064
movzx eax, ax
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov ecx, edi
mov edx, ebx
call fcn.0040feb0
mov ebx, eax
cmp eax, esi
je 0x410081
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseMutex
push eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
movzx eax, ax
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [esp], edx
mov ecx, edi
mov edx, ebx
call fcn.0040feb0
mov ebx, eax
jmp 0x410042
xor eax, eax
mov edi, esi
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410042
mov dword [esp], esi
call dword [ebp + 0x10]
jmp 0x410042
Function at 0x402f0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402da8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402da8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f4f
inc ebx
jmp 0x402f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f6c
lea eax, [ebp - 8]
call fcn.00404744
ret

Function at 0x402f74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404744
test esi, esi
jne 0x402fab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404834
jmp 0x402fcc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402da8
mov dword [esp], eax
test esi, esi
je 0x402fcc
cmp dword [ebx], 0
je 0x402fcc
dec esi
jmp 0x402fb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4032a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x526008], 0x8088405
inc edx
mov dword [ebx + 0x526008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403724
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x526024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40379c
xor eax, eax
push ebp
push 0x403795
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40379c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x526024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x526024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53604c], 0
je 0x40457d
cmp word [0x536220], 0xd7b2
jne 0x404545
cmp dword [0x536228], 0
jbe 0x404545
mov eax, 0x53621c
call dword [0x536238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x526074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x526034], 0
jne 0x404599
push 0
push 0x52606c
push 0x526074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ca0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406d06
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004049c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406cf0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d0d
lea eax, [ebp - 0x10]
call fcn.00404744
ret

Function at 0x40a1b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c14
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a1d1
test al, 0x10
jne 0x40a1d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d7d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d811
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404834
jmp 0x40d81a
mov eax, ebx
mov edx, esi
call fcn.00404798
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d824
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d845
mov al, byte [esp]
jmp 0x40d847
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e844
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e91a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004047dc
lea eax, [ebp - 8]
call fcn.00404c64
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c14
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e904
mov eax, ebx
call fcn.00402b10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e8fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c14
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e8e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e92c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e8e7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e904
mov eax, dword [ebp - 0x10]
call fcn.00402b40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e921
lea eax, [ebp - 8]
call fcn.00404744
ret
Function at 0x40ef78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40efdc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004049c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409da0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efe3
lea eax, [ebp - 0xc]
call fcn.00404744
ret

Function at 0x40fdb8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404744
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404c14
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40fdfd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404834
jmp 0x40fe16
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404da4
push ebx
mov eax, dword [esi]
call fcn.00404c14
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4262c4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004260f0
dec esi
jne 0x4262e6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x427428
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5368b4
cmp dword [edi], 0
jne 0x4274a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5368b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5266d8
mov ecx, 2
call fcn.00402d68
mov edx, 0x427400
lea eax, [esi + 5]
call fcn.00427420
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427420
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x427479
mov dword [0x5368b0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x428a70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x428a76
ret