joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bbb41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x100bbb84
call fcn.100bf0c6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100bbb84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100bbb9f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100bb6fb
test ebx, ebx
mov esi, eax
je 0x100bbb9d
test edi, edi
je 0x100bbb9d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100bd745
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x100e50bb
call fcn.100cbb05
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100bd76a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100bd7b6
call fcn.100b6562
push eax
lea ecx, [ebp - 0x10]
call fcn.10007fa0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100b6308
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10006930
mov eax, esi
call fcn.100cbba4
ret 8
Function at 0x100be578
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x100e5067
call fcn.100cbb38
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.100bf0c6
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x100be5c3
call fcn.100bf0c6
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x100be5d4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x100be5e1
or eax, 0xffffffff
jmp 0x100be73d
mov ecx, esi
call fcn.100be0bf
mov dword [ebp - 0x14], eax
call fcn.100b90ad
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x100be65f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x100be65f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x100be65f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.100b6790
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x100be65f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x100be65f
mov ecx, ebx
call fcn.100bd646
test eax, eax
je 0x100be65f
push 0
mov ecx, ebx
call fcn.100bd661
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.100baa27
push dword [ebp - 0x14]
call fcn.100b9005
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.100be380
xor edi, edi
cmp eax, edi
je 0x100be6bc
test byte [esi + 0x3c], 0x10
je 0x100be6a6
push 4
pop edi
mov ecx, esi
call fcn.100bd55c
test ax, 0x100
je 0x100be69c
push 5
pop edi
push edi
mov ecx, esi
call fcn.100b8b9b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x100be6bc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.100bd6c8
or dword [ebp - 4], 0xffffffff
jmp 0x100be6e7
cmp dword [ebp - 0x28], edi
je 0x100be6f5
push 1
mov ecx, ebx
call fcn.100bd661
cmp dword [ebp - 0x2c], edi
je 0x100be705
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x100be71e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x100be71e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.100be0f9
cmp dword [esi + 0x58], edi
je 0x100be73a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.100cbba4
ret
Function at 0x100bf5f2
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x100bf690
push 0x10100aec
push 4
push eax
call fcn.100c6466
push eax
call fcn.10005d00
add esp, 0x10
push ebx
push edi
call fcn.100cbc18
mov edi, dword [eax]
call fcn.100cbc18
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.100c5d5b
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.100cbc18
cmp dword [eax], ebx
je 0x100bf6a7
call fcn.100cbc18
push dword [eax]
call fcn.100b64c1
pop ecx
jmp 0x100bf6ae
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x100bf641
jmp 0x100bf720
call fcn.100cbc18
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x100bf71c
cmp dword [ebp - 0x40], esi
jae 0x100bf71c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.100c7d20
add esp, 0xc
push 0x10100720
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x100bf70e
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100bf70e
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x100bf70e
push ebx
push ebx
push esi
jmp 0x100bf714
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x100bf71e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.100c59be
add ebp, 0x1f4
leave
ret
Function at 0x100c59be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10144930]
jne 0x100c59c8
repz ret
jmp fcn.100cd031
Function at 0x100c94a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x100c94e3
cmp dword [ebp + 0x14], edi
je 0x100c94e3
cmp ecx, edi
jne 0x100c94ea
call fcn.100cbc18
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.100c6432
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x100c94fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x100c951f
cmp ebx, 0xffffffff
je 0x100c950e
push ebx
push edi
push ecx
call fcn.100c7d20
add esp, 0xc
cmp esi, edi
je 0x100c94cb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x100c94cb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x100c953b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x100c9542
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x100c9633
test word [esi + 0xc], 0x10c
je 0x100c9596
mov eax, dword [esi + 4]
test eax, eax
je 0x100c9596
jl 0x100c9694
cmp ebx, eax
mov edi, ebx
jb 0x100c9567
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x100c963b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100c5bd3
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x100c962b
cmp ebx, dword [ebp - 0xc]
jb 0x100c9603
cmp dword [ebp - 0xc], 0
je 0x100c95c0
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x100c95b5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x100c95bc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x100c95cb
mov eax, bind
cmp ebx, eax
ja 0x100c95cb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x100c9667
push eax
push dword [ebp - 8]
push esi
call fcn.100d611e
pop ecx
push eax
call fcn.100d765a
add esp, 0xc
test eax, eax
je 0x100c96a6
cmp eax, 0xffffffff
je 0x100c9694
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x100c962b
push esi
call fcn.100d6f79
cmp eax, 0xffffffff
pop ecx
je 0x100c9698
cmp dword [ebp - 4], 0
je 0x100c9667
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x100c954a
mov eax, dword [ebp + 0x14]
jmp 0x100c94e5
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x100c9652
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.100c7d20
add esp, 0xc
call fcn.100cbc18
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x100c94db
cmp dword [ebp + 0xc], 0xffffffff
je 0x100c967d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.100c7d20
add esp, 0xc
call fcn.100cbc18
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x100c94db
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x100c94e5
or dword [esi + 0xc], 0x10
jmp 0x100c9698
Function at 0x100d1725
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10145510]
je 0x100d1740
inc edi
cmp edi, 0x17
jb 0x100d1731
cmp edi, 0x17
jae 0x100d18c0
push ebp
push 3
call fcn.100d7dc9
cmp eax, 1
pop ecx
je 0x100d188c
push 3
call fcn.100d7dc9
test eax, eax
pop ecx
jne 0x100d1774
cmp dword [0x10149214], 1
je 0x100d188c
cmp ebx, 0xfc
je 0x100d18bf
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10149758
push ebp
call fcn.100c87c9
add esp, 0xc
test eax, eax
je 0x100d17aa
push esi
push esi
push esi
push esi
push esi
call fcn.100c6336
add esp, 0x14
push 0x104
mov esi, 0x10149771
push esi
push 0
mov byte [0x10149875], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d17ee
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100c87c9
add esp, 0xc
test eax, eax
je 0x100d17ee
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100c6336
add esp, 0x14
push esi
call fcn.100cae00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100d1833
push esi
call fcn.100cae00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10149a6c
push 0x101014d4
sub ecx, eax
push ecx
push eax
call fcn.100c898b
add esp, 0x14
test eax, eax
je 0x100d1833
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100c6336
add esp, 0x14
jmp 0x100d1835
xor esi, esi
push 0x10101c08
push ebx
push ebp
call fcn.100c8cbc
add esp, 0xc
test eax, eax
je 0x100d1855
push esi
push esi
push esi
push esi
push esi
call fcn.100c6336
add esp, 0x14
push dword [edi*8 + 0x10145514]
push ebx
push ebp
call fcn.100c8cbc
add esp, 0xc
test eax, eax
je 0x100d1877
push esi
push esi
push esi
push esi
push esi
call fcn.100c6336
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100dc820
add esp, 0xc
jmp 0x100d18bf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100d18bf
cmp ebp, 0xffffffff
je 0x100d18bf
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10145514]
push dword [esi]
call fcn.100cae00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100d7af3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100d00bf
xor ebx, ebx
cmp dword [0x10149bc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100d7bc9
push 0x10102314
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x100d7ca9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10102308
push edi
call esi
cmp eax, ebx
je 0x100d7ca9
push eax
call fcn.100d0051
mov dword [esp], 0x101022f8
push edi
mov dword [0x10149bc4], eax
call esi
push eax
call fcn.100d0051
mov dword [esp], 0x101022e4
push edi
mov dword [0x10149bc8], eax
call esi
push eax
call fcn.100d0051
mov dword [0x10149bcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100cc1c1
test eax, eax
pop ecx
pop ecx
je 0x100d7b97
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100c6336
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100d7bc9
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.100d0051
cmp eax, ebx
pop ecx
mov dword [0x10149bd4], eax
je 0x100d7bc9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100d0051
pop ecx
mov dword [0x10149bd0], eax
mov eax, dword [0x10149bd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100d7c4e
cmp dword [0x10149bd4], ecx
je 0x100d7c4e
push eax
call fcn.100d00c8
push dword [0x10149bd4]
mov esi, eax
call fcn.100d00c8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100d7c4e
cmp edi, ebx
je 0x100d7c4e
call esi
cmp eax, ebx
je 0x100d7c1b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100d7c1b
test byte [ebp - 0x18], 1
jne 0x100d7c4e
lea eax, [ebp - 0x10]
push eax
call fcn.100cc1f8
test eax, eax
pop ecx
je 0x100d7c36
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100c6336
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100d7c45
or dword [ebp + 0x10], 0x200000
jmp 0x100d7c89
or dword [ebp + 0x10], 0x40000
jmp 0x100d7c89
mov eax, dword [0x10149bc8]
cmp eax, dword [ebp - 8]
je 0x100d7c89
push eax
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100d7c89
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100d7c89
mov eax, dword [0x10149bcc]
cmp eax, dword [ebp - 8]
je 0x100d7c89
push eax
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100d7c89
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10149bc4]
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100d7ca9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100d7cab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dc820
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100d00bf
xor ebx, ebx
cmp dword [0x10149cdc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100dc8f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100dc9d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100dc9d6
push eax
call fcn.100d0051
mov dword [esp], 0x101022f8
push edi
mov dword [0x10149cdc], eax
call esi
push eax
call fcn.100d0051
mov dword [esp], 0x101022e4
push edi
mov dword [0x10149ce0], eax
call esi
push eax
call fcn.100d0051
mov dword [0x10149ce4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100cc1c1
test eax, eax
pop ecx
pop ecx
je 0x100dc8c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100c6336
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100dc8f6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100d0051
cmp eax, ebx
pop ecx
mov dword [0x10149cec], eax
je 0x100dc8f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100d0051
pop ecx
mov dword [0x10149ce8], eax
mov eax, dword [0x10149ce8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100dc97b
cmp dword [0x10149cec], ecx
je 0x100dc97b
push eax
call fcn.100d00c8
push dword [0x10149cec]
mov esi, eax
call fcn.100d00c8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100dc97b
cmp edi, ebx
je 0x100dc97b
call esi
cmp eax, ebx
je 0x100dc948
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100dc948
test byte [ebp - 0x18], 1
jne 0x100dc97b
lea eax, [ebp - 0x10]
push eax
call fcn.100cc1f8
test eax, eax
pop ecx
je 0x100dc963
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100c6336
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100dc972
or dword [ebp + 0x10], 0x200000
jmp 0x100dc9b6
or dword [ebp + 0x10], 0x40000
jmp 0x100dc9b6
mov eax, dword [0x10149ce0]
cmp eax, dword [ebp - 8]
je 0x100dc9b6
push eax
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100dc9b6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100dc9b6
mov eax, dword [0x10149ce4]
cmp eax, dword [ebp - 8]
je 0x100dc9b6
push eax
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100dc9b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10149cdc]
call fcn.100d00c8
cmp eax, ebx
pop ecx
je 0x100dc9d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100dc9d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x4065cf
repz ret
jmp fcn.004085bb

Function at 0x407bd3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004052cf
and dword [ebp - 0x14], 0
cmp dword [0x43c1f0], 0
mov dword [ebp - 0x18], eax
jne 0x407c86
push 0x4021a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d2e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402194
push ebx
call edi
test eax, eax
je 0x407d2e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402184
push ebx
mov dword [0x43c1f0], eax
call edi
push eax
call esi
push 0x402170
push ebx
mov dword [0x43c1f4], eax
call edi
push eax
call esi
push 0x402154
push ebx
mov dword [0x43c1f8], eax
call edi
push eax
call esi
mov dword [0x43c200], eax
test eax, eax
je 0x407c86
push 0x40213c
push ebx
call edi
push eax
call esi
mov dword [0x43c1fc], eax
mov eax, dword [0x43c1fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407cdf
cmp dword [0x43c200], ecx
je 0x407cdf
push eax
call esi
push dword [0x43c200]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407cdf
test ebx, ebx
je 0x407cdf
call edi
test eax, eax
je 0x407cd6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407cd6
test byte [ebp - 8], 1
jne 0x407cdf
or dword [ebp + 0x10], 0x200000
jmp 0x407d12
mov eax, dword [0x43c1f4]
cmp eax, dword [ebp - 0x18]
je 0x407d12
push eax
call esi
test eax, eax
je 0x407d12
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d12
mov eax, dword [0x43c1f8]
cmp eax, dword [ebp - 0x18]
je 0x407d12
push eax
call esi
test eax, eax
je 0x407d12
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c1f0]
call esi
test eax, eax
je 0x407d2e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407d30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065c5
leave
ret

Function at 0x409eb0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x818
cmp dword [0x4b7d60], 0x37
jne 0x409f16
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x402a58
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov ecx, dword [0x4b7d64]
mov eax, dword [0x4b7444]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x818
ret
Function at 0x40a410
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b7d60]
sub esp, 0x830
cmp eax, 0x422
jne 0x40a46a
push 0
push 0
push 0
call fcn.00402cae
push 0x402aa4
push 0
call fcn.00402cae
push 0
call fcn.00402c7e
push 0
call fcn.00402bc0
push 0
call fcn.00402c7e
push 0x402ab0
push 0x402ab4
push 0x43c540
call fcn.00402cae
mov eax, dword [0x4b7d60]
add esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x40a4bd
push 0x402abc
call esi
push 0
lea eax, [esp + 0x44]
push eax
call edi
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call ebx
dec ebp
mov eax, dword [0x43b8b8]
mov dword [0x4b7d60], eax
jne 0x40a485
mov esi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov edi, 0x79a863
cmp eax, 0x4c5
jne 0x40a4ec
push 0
lea eax, [esp + 0x44]
push eax
push 0
call esi
mov eax, dword [0x4b7d60]
dec edi
jne 0x40a4d5
mov ecx, dword [0x43b8ac]
mov dword [0x4b7d64], ecx
call fcn.0040a120
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x830
ret 0x10

Function at 0x438c89
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
mov eax, ebx
inc eax
call fcn.00438cbd
sub eax, 0x9904a9da
xor dword [edx], edi
inc ebx
add ebx, ebx
or eax, eax
inc edx
dec eax
sub ebx, 1
or ebx, eax
cmp edx, ecx
jne fcn.00438c89
add eax, 1
inc eax
mov eax, ebx
ret
Function at 0x40001098
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x400390a0]
call sym.xprt6.dll__XprtTlsGetValue_4
mov esi, eax
add esi, dword [esp + 8]
push esi
push dword [0x400390a0]
call sym.xprt6.dll__XprtTlsSetValue_8
mov eax, esi
pop esi
ret

Function at 0x400010ba
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, 0x40039288
mov ecx, esi
call sym.xprt6.dll_public:_void___thiscall_XPRT::TSpinLockRE::Lock_void_
xor ebx, ebx
cmp dword [0x40039294], ebx
jne 0x40001137
push dword [esp + 0xc]
call fcn.40009e0e
test al, al
pop ecx
je 0x4000115b
call sym.xprt6.dll_public_virtual:_bool___thiscall_XPRT::TMemStream::Close_void_
test al, al
je 0x4000115b
call sym.xprt6.dll_public_virtual:_bool___thiscall_XPRT::TMemStream::Close_void_
test al, al
je 0x4000115b
call sym.xprt6.dll_public_virtual:_bool___thiscall_XPRT::TMemStream::Close_void_
test al, al
je 0x4000115b
call sym.xprt6.dll_public_virtual:_bool___thiscall_XPRT::TMemStream::Close_void_
test al, al
je 0x4000115b
call fcn.4000a201
test al, al
je 0x4000115b
call fcn.4000a419
test al, al
je 0x4000115b
call fcn.4000b311
test al, al
je 0x4000115b
call fcn.4000e1c7
test al, al
je 0x4000115b
call sym.xprt6.dll__XprtTlsRequestKey_0
cmp eax, 0xffffffff
mov dword [0x400390a0], eax
je 0x4000115b
push dword [0x400390a0]
call sym.xprt6.dll__XprtTlsGetValue_4
test eax, eax
jne 0x4000114b
call fcn.40009eba
inc dword [0x40039294]
xor ebx, ebx
inc ebx
push ebx
call fcn.40001098
pop ecx
mov ecx, esi
call sym.xprt6.dll_public:_void___thiscall_XPRT::TSpinLockRE::Unlock_void_
pop esi
mov al, bl
pop ebx
ret 8