joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec966
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x6560e8]
cmp dword [eax + 0x224], 0
je 0x4ec97f
mov ecx, dword [esp + 4]
mov dword [eax + 0x228], ecx
ret
push ebp
push esi
push edi
push str._nMIRACL_error_from_routine
call fcn.004ecb9a
pop ecx
mov eax, dword [0x6560e8]
mov ecx, dword [eax + 0x1c]
mov ebp, 0x64d358
cmp ecx, 0x18
jge 0x4ec9ac
mov eax, dword [eax + ecx*4 + 0x20]
push dword [eax*4 + 0x64c0a0]
jmp 0x4ec9ad
push ebp
call fcn.004ecb9a
pop ecx
mov edi, 0x64e1d0
push edi
push 0xa
call fcn.004fc63d
mov eax, dword [0x6560e8]
pop ecx
pop ecx
mov esi, dword [eax + 0x1c]
dec esi
js 0x4eca10
push ebx
lea ebx, [esi*4 + 0x20]
push str.______________called_from
call fcn.004ecb9a
cmp esi, 0x18
pop ecx
jge 0x4ec9f6
mov eax, dword [0x6560e8]
mov eax, dword [ebx + eax]
push dword [eax*4 + 0x64c0a0]
jmp 0x4ec9f7
push ebp
call fcn.004ecb9a
pop ecx
push edi
push 0xa
call fcn.004fc63d
dec esi
pop ecx
sub ebx, 4
pop ecx
test esi, esi
jge 0x4ec9d5
pop ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
cmp eax, 0x1c
pop ebp
ja case.default.0x4eca21
jmp dword [eax*4 + 0x4ecb26]
push str.Number_base_too_big_for_representation_n
jmp 0x4ecb19
push str.Division_by_zero_attempted_n
jmp 0x4ecb19
push str.Overflow___Number_too_big_n
jmp 0x4ecb19
push str.Internal_result_is_negative_n
jmp 0x4ecb19
push str.Input_format_error_n
jmp 0x4ecb19
push str.Illegal_number_base_n
jmp 0x4ecb19
push str.Illegal_parameter_usage_n
jmp 0x4ecb19
push str.Out_of_space_n
jmp 0x4ecb19
push str.Even_root_of_a_negative_number_n
jmp 0x4ecb19
push str.Raising_integer_to_negative_power_n
jmp 0x4ecb19
push str.Attempt_to_take_illegal_root_n
jmp 0x4ecb19
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x4ecb19
push str.Flash_overflow_n
jmp 0x4ecb19
push str.Numbers_too_big_n
jmp 0x4ecb19
push str.Log_of_a_non_positive_number_n
jmp 0x4ecb19
push str.Flash_to_double_conversion_failure_n
jmp 0x4ecb19
push str.I_O_buffer_overflow_n
jmp 0x4ecb19
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x4ecb19
push str.Illegal_modulus__n
jmp 0x4ecb19
push str.No_modulus_defined_n
jmp 0x4ecb19
push str.Exponent_too_big_n
jmp 0x4ecb19
push str.Unsupported_Feature___check_mirdef.h_n
jmp 0x4ecb19
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x4ecb19
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x4ecb19
push str.Unable_to_control_Floating_point_rounding_n
jmp 0x4ecb19
push str.Base_must_be_binary__MR_ALWAYS_BINARY_defined_in_mirdef.h____n
jmp 0x4ecb19
push str.No_irreducible_basis_defined_n
jmp 0x4ecb19
push str.Composite_modulus_n
jmp 0x4ecb19
push str.Input_output_error_when_reading_from_RNG_device_node_n
jmp 0x4ecb19
push str.Undefined_error_n
call fcn.004ecb9a
pop ecx
push 0
call fcn.004f9488
sub dl, cl
dec esi
add byte [edx], dh
retf 0x4e
Function at 0x4f3e50
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi]
test esi, esi
je 0x4f3ebd
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [edi], 0
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4f3e7b
mov eax, esi
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
add ebx, ecx
sub esi, ecx
add edx, ecx
test eax, eax
mov dword [edi], edx
je 0x4f3eb2
test ecx, ecx
je 0x4f3ebd
test esi, esi
jbe 0x4f3ebd
jmp 0x4f3e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4f4090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x658960
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x4f40a0
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x658d60
jb 0x4f4099
cmp esi, 0x800
jae 0x4f40fa
lea ecx, [esi*4 + 0x658960]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x658960]
xor edx, eax
cmp ecx, 0x65a960
mov dword [ecx - 4], edx
jb 0x4f40d2
mov dword [0x6560ec], fcn.004f4d60
call fcn.004f4f40
pop edi
pop esi
test eax, eax
jne 0x4f4119
mov dword [0x6560ec], 0x4f4e10
ret
Function at 0x4f9df2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f9e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fd14e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f9e35
test byte [esp + 8], 2
je 0x4f9e35
call fcn.004fd1c1
mov dword [eax], 0xd
call fcn.004fd1ca
mov dword [eax], 5
jmp 0x4f9e0e
xor eax, eax
ret
Function at 0x511ac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004f9e40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x511b8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x511b8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x511b3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x511b49
or bh, 8
and edi, 0x8000000
je 0x511b64
mov eax, dword [0x65bd5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x511b8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x511f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x511f8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x511faf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x511fca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x513e80
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x513e9a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x513e9a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x515a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00517460
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x515aa3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.004fc9c4
mov edx, dword [ebp - 4]
push edx
call fcn.00513e20
push esi
push eax
call fcn.004fca40
add esp, 0x14
test eax, eax
je 0x515adf
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517680
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00513ee0
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x515b49
push 0
call fcn.00514610
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x515b37
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.00514610
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x515b18
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x515bc1
test edi, edi
je 0x515bba
mov bl, byte [edi]
push 0
call fcn.00514610
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x515b8d
cmp bl, 0x31
jne 0x515b82
push 0
call fcn.00514610
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x515b8d
cmp byte [edi], 0x30
jne 0x515bc1
cmp byte [edi + 2], 0x39
jge 0x515bc1
test edi, edi
je 0x515bba
push 0
call fcn.00514610
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.004fcd28
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00513c40
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x515c0f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517650
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x515c08
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x515c4c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00517600
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517500
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005173e0
mov edx, dword [ebp - 4]
push edx
call fcn.00516170
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522d30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x522d60
push esi
call fcn.00523230
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x522d59
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x522de3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x522dcf
mov eax, dword [esi + 8]
test eax, eax
je 0x522d84
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x522dcb
cmp eax, 2
je 0x522dcf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x522d77
cmp eax, 3
je 0x522daa
cmp eax, 1
jne 0x522d77
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x522d77
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x522d77
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00522e10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x522e03
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00522e10
add esp, 4
pop esi
ret
Function at 0x551c0e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x551c46
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00554992
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00554969
jmp 0x551c52
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x551c56
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x657af0
mov ecx, edi
call fcn.0055466b
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x551ca9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x551cbc
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00554992
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00554969
jmp 0x551cbc
mov ecx, esi
call fcn.00553e1b
test eax, eax
je 0x551cbc
push edi
mov ecx, eax
call fcn.00551c0e
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x553591
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5535d3
call fcn.00565826
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x5535d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5535ca
xor eax, eax
jmp 0x5535db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005535e1
pop edi
pop esi
pop ebx
ret 4
Function at 0x565ddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00565826
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x565e1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x565e1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x565e1e
xor eax, eax
jmp 0x565e9c
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00550d29
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x565e56
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x565e40
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00565f8d
push ebx
mov edi, eax
call fcn.00550d52
test edi, edi
pop ecx
je 0x565e98
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00565d56
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00565ea1
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x1000aa80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1000a6a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000aab2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x10038158]
call dword [ebp - 8]
jmp 0x1000aabc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x10023220
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.100107a0
lea ecx, [ebp - 4]
call fcn.100231f0
movzx eax, al
test eax, eax
jne 0x1002325d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.10023130
mov eax, dword [ebp - 0x18]
jmp 0x10023385
lea ecx, [ebp - 4]
call fcn.1000d5f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100231b0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.1000d5f0
push eax
push 0
push 0
call fcn.10023070
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100232c3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.10023130
mov eax, dword [ebp - 0x20]
jmp 0x10023385
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10010030
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.100089b0
lea ecx, [ebp - 8]
call fcn.100089f0
movzx edx, al
test edx, edx
jne 0x1002330c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.10008ef0
lea ecx, [ebp - 4]
call fcn.10023130
mov eax, dword [ebp - 0x24]
jmp 0x10023385
lea ecx, [ebp - 8]
call fcn.10008a40
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.1000d5f0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.10023070
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10023367
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.10008ef0
lea ecx, [ebp - 4]
call fcn.10023130
mov eax, dword [ebp - 0x34]
jmp 0x10023385
lea ecx, [ebp - 8]
call fcn.10011450
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.10008ef0
lea ecx, [ebp - 4]
call fcn.10023130
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret

Function at 0x10023b50
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10023450
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10023b84
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x10038158]
call dword [ebp - 8]
jmp 0x10023b8a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10023be0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10023490
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10023c14
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x10038158]
call dword [ebp - 8]
jmp 0x10023c1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x10023c30
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.100234b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10023c68
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x10038158]
call dword [ebp - 8]
jmp 0x10023c76
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x10030290
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.10036ae0
mov eax, dword [0x10049004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1004a280]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x10030468
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x100303b7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x100303b7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x10030395
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x10030319
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10030421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x10030488
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x10030463
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10030488
jmp 0x100302f2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008340
mov esp, ebp
pop ebp
ret