joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b4b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x43b4d2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x43b677
mov eax, dword [0x502aa0]
test eax, eax
je 0x43b558
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x43b578
mov dword [eax + 0x18], 0x4eb2f0
mov eax, 0x4eb2f0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x43b543
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x43b580
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x43b532
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x43b628
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x502aa0]
test ecx, ecx
je 0x43b4f0
test eax, eax
jne 0x43b578
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x43b4fc
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x43b595
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x43b618
mov eax, dword [0x502aa0]
test eax, eax
je 0x43b5f0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x43b610
mov dword [eax + 0x18], 0x4eb2f0
mov eax, 0x4eb2f0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x502aa0]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x43b5b9
test eax, eax
jne 0x43b610
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x43b5c5
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x43b5a9
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sym._CloseHandle_4
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x14], 0
sub esp, 4
test ecx, ecx
jne 0x43b654
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x502aa0]
test eax, eax
jne 0x43b5b2
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x502aa0]
jne 0x43b603
jmp 0x43b5b9
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x43d2d0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x43d2e8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x43d338
call sym._IsDebuggerPresent_0
test eax, eax
je 0x43d2df
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x43d327

Function at 0x43d370
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x502b00
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x43d438
mov edx, dword [0x502aa0]
mov eax, dword [edx + 4]
test eax, eax
je 0x43d400
cmp edx, 0x502aa0
jne 0x43d3e5
mov dword [0x502aa0], eax
cmp eax, 0x502aa0
je 0x43d3ec
lea esi, [esi]
test eax, eax
je 0x43d414
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x502aa0
jne 0x43d3d8
mov eax, dword [0x502aa4]
mov dword [edx + 4], eax
test eax, eax
je 0x43d414
mov edx, eax
jmp 0x43d3e2
mov dword [esp], 0x502b40
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43d454
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x43d414
Function at 0x43d470
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x502b01], al
mov byte [edx + edx + 0x502b00], cl
add edx, 1
cmp edx, 4
jne 0x43d482
xor eax, eax
mov edx, 0x5f
jmp 0x43d4bf
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x502b08], dl
add eax, 1
cmp eax, 0x1a
jne 0x43d4b8
xor eax, eax
mov edx, 0x5f
jmp 0x43d4e7
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x502b40], dl
add eax, 1
cmp eax, 0x19
jne 0x43d4e0
mov dword [esp + 8], 0x502b00
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x502b59], 0x2d
mov dword [0x502b5a], 0x61616161
mov dword [0x502b5e], 0x61616161
mov dword [0x502b62], 0x61616161
mov dword [0x502b66], 0x61616161
mov dword [0x502b6a], 0x61616161
mov dword [0x502b6e], 0x61616161
mov dword [0x502b72], 0x61616161
mov dword [0x502b76], 0x61616161
mov byte [0x502b7a], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x43d6ca
mov dword [esp], 0x502b40
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x43d620
mov edx, 0x502aa0
mov eax, 0x20
nop
bt edx, eax
jae 0x43d5c0
mov ecx, eax
neg ecx
mov byte [ecx + 0x502b7a], 0x41
sub eax, 1
jne 0x43d5b0
mov dword [esp], 0x502b40
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x43d6b9
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x502aa0], 0x502aa0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x502aa0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x502b40
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x43d6e9
lea esi, [esi]
cmp byte [eax + 0x502b5a], 0x41
jne 0x43d66b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x43d658
mov eax, esi
mov dword [0x502aa0], eax
jmp 0x43d68c
cmp edx, 0x502aa0
je 0x43d5f3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x43d680
cmp edx, 0x502aa0
je 0x43d5f3
mov dword [edx + 4], 0x502aa0
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x43d5f3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43d60e
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x43d675
Function at 0x448370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x448444
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00433710
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4f2d84
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x448450
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x448440
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x448440
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x448490
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x448402
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x448402
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x448402
mov eax, esi
jmp 0x448402
mov esp, ebx
jmp 0x448444
Function at 0x10002880
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov edx, 0x4b
push esi
push edi
mov esi, 0x10079b20
xor edi, edi
mov ecx, edi
mov eax, edi
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebp + edi*4 - 0x400], eax
inc edi
cmp edi, 0x100
jl 0x10002897
or eax, 0xffffffff
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x400]
sub edx, 1
jne 0x10002934
pop edi
pop esi
not eax
mov esp, ebp
pop ebp
ret 8

Function at 0x10002eb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
mov esi, ecx
movlpd qword [esp + 0x4c], xmm0
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], 0x10002c40
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], str.GraphWindowClass
mov dword [esp + 0x58], 6
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x190
push 0x258
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Quadratic_Equation_Graph
push str.GraphWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100d66c8], eax
test eax, eax
je 0x10002fa9
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100d66c8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10002fa9
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10002f86
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10004e10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0x10002a60
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], str.UltraFlagClass
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x12c
push 0x190
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Kiss_to_h3r_p33zy_a__
push str.UltraFlagClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100d66d8], eax
test eax, eax
je 0x10004f07
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100d66d8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004f07
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004ee4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004f10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0x10003fe0
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], str.PianoWindowClass
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0xfa
push 0x1a4
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Piano
push str.PianoWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100d66cc], eax
test eax, eax
je 0x10005007
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100d66cc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10005007
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004fe4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005010
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0x10003ce0
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], str.FebroWClass
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x190
push 0x190
push 0x80000000
push 0x80000000
push 0xcf0000
push str.FebroW
push str.FebroWClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100d66f4], eax
test eax, eax
je 0x10005107
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100d66f4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10005107
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x100050e4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100089a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10060e60
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x1006b884
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10039393
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10038859
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10008940
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004acd5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004ad14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004ad14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004ad14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1004ad14
cmp dword [ecx + 0x74], 0xe
jbe 0x1004ad14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005117f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100673f8
push 0x100673f0
push str.FlsAlloc
push 0x1f
call fcn.10050fea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100511b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x100632c0]
call esi
jmp 0x100511b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100511fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067408
push 0x10067400
push str.FlsGetValue
push 0x21
call fcn.10050fea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10051234
push dword [ebp + 8]
mov ecx, esi
call dword [0x100632c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005123c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067410
push 0x10067408
push str.FlsSetValue
push 0x22
call fcn.10050fea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10051276
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100632c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10051a17
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003a260
mov eax, dword [0x10079080]
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.1004d1da
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10051a59
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10051bb5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005ed70
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 + 0x100d6278]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10053535
mov ecx, dword [esi*4 + 0x100d6278]
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 0x10051bae
cmp eax, dword [ecx + edi + 0x24]
jne 0x10051bae
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 0x10051bae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10053535
add esp, 0x14
test edx, edx
jl 0x10051bae
jg 0x10051b24
test eax, eax
jb 0x10051bae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10051bae
jl 0x10051b3e
cmp dword [ebp - 0x1008], eax
ja 0x10051bae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10051b5c
test ebx, ebx
je 0x10051b95
cmp ecx, edi
jae 0x10051b95
mov al, byte [ecx]
cmp al, 0xd
jne 0x10051b76
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10051b82
cmp byte [ecx + 1], 0xa
jne 0x10051b82
inc ecx
jmp 0x10051b82
movzx eax, al
movsx eax, byte [eax + 0x10079a08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10051b5c
cmp edx, ebx
jne 0x10051b5c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10051bb3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10039a71
leave
ret
Function at 0x10055be7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10055c84
push ebx
push esi
call fcn.10055bb0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10050965
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10055c31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10055c83
push edi
push eax
call fcn.1004c269
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10055c51
call fcn.1004c22f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10055c82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10050965
add esp, 0x20
test eax, eax
jne 0x10055c70
push edi
call fcn.1004c22f
jmp 0x10055c78
push ebx
call fcn.1004c22f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10055c87
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10055c98
pop esi
ret
push ebx
push edi
push esi
call fcn.10055bb0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c269
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10055cc0
push ebx
push esi
push edi
call fcn.1003aa10
add esp, 0xc
push 0
call fcn.1004c22f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10056090
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10055cd5

Function at 0x10059d2c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004d6d4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10059d9b
cmp esi, dword [ebp - 4]
je 0x10059d96
cmp dword [ebp + 0xc], 0
je 0x10059d96
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10059d73
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005987e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10059d9d
xor eax, eax
inc eax
jmp 0x10059d9d
xor eax, eax
pop edi
pop esi
leave
ret