joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40115e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push eax
push ecx
push 0xe55d000
call dword [sym.imp.USER32.DLL_GetKeyState]
mov dl, 0x4a
or edx, dword [ebp - 4]
push 0x8f86000
call dword [sym.imp.GDI32.DLL_DeleteDC]
mov al, byte [0x41e7d3]
add dword [ebp - 0x6c], 0x7e
push ecx
push 0xa3a2000
call dword [sym.imp.USER32.DLL_EnableWindow]
or cx, word [0x4224f7]
sbb dword [ebp - 0x34], ecx
pop ecx
pop eax
leave
ret

Function at 0x40148b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub edx, edx
mov eax, 0x4c
push 0
dec eax
jg 0x401495
push 0x60965
xadd ebx, ecx
add eax, 0x8f3f176c
mov bl, 0x64
sbb ax, 0x6be2
shld edx, eax, cl
ror cx, 1
bts cx, 0xe6
bswap ebx
sub eax, 0x96c50f2d
dec ebx
push 0
push 0x68ec12a
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sal si, 9
not bx
movsx esi, bl
add ebx, ecx
shr ecx, 1
xchg di, si
and ecx, edi
dec ebx
and dx, 0x49de
mov esi, 0x88fdf091
bsf di, bx
xchg di, si
aam 0xb
mov ebx, 0x73e1b5f7
shl cx, 1
neg ch
push 0
push 0xb3fec29
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 0
push 0xcfecc24
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
bts edx, 0x81
shld eax, edx, cl
bsf edx, ebx
or esi, 0x5727c535
mov eax, 0xfbfcdf06
bt eax, ebx
mov al, 0xb3
mov ebx, 0x829cb976
not cx
and ah, 0x73
sar si, 1
or ecx, 0xffffffef
bts eax, edx
dec dword [esp]
jne 0x40149f
leave
ret 0x10

Function at 0x401598
Capabilities:
Log keystrokes via polling

Disassembly:
push eax
push ecx
push 0x1e47000
call dword [sym.imp.USER32.DLL_GetKeyState]
sbb cl, dh
push dword [ebp - 0x54]
push 0x724c000
call dword [sym.imp.USER32.DLL_GetDlgItem]
mov esi, 0x94f93143
or cl, byte [0x41ad94]
add di, word [0x42189d]
call fcn.0040102b
add bl, 0xe8
pop ecx
pop eax
ret

Function at 0x40164a
Capabilities:
Get file size

Disassembly:
push eax
push ecx
call fcn.00401605
or dl, 0x50
add al, 0x5b
push dword [ebp - 0x6c]
push 0x45cf000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
pop ecx
pop eax
ret 8

Function at 0x401720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esi, esi
mov edx, 0x64
push esi
dec edx
jg 0x40172a
push eax
push ecx
push edx
push ebx
push 0x1f4
push 0x5858000
call dword [sym.imp.USER32.DLL_GetWindowLongA]
xchg di, dx
and byte [ebp - 0x40], cl
adc dword [ebp - 0x40], 0xffffffbe
mov eax, 0x3025c4db
add dword [ebp - 8], edx
xor dword [ebp - 4], esi
mov al, byte [0x4277b4]
push 0x9e1e000
call dword [sym.imp.USER32.DLL_GetKeyState]
sbb byte [ebp - 0x38], bl
push dword [ebp - 4]
push 0xe936000
call dword [sym.imp.USER32.DLL_GetDlgItem]
pop ebx
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x401b52
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push eax
push ecx
push edx
or dword [ebp - 4], esi
or dword [ebp - 0x44], 0xffffff99
push 0x9b03000
call dword [sym.imp.USER32.DLL_GetKeyState]
adc dh, byte [ebp - 0x60]
and byte [ebp - 0x34], dl
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x402505
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push eax
push ecx
push edx
push ebx
push 0x810b000
call dword [sym.imp.USER32.DLL_GetKeyState]
sub dword [ebp - 0x58], 0xfffffff0
push eax
push 0xac8a000
call dword [sym.imp.USER32.DLL_GetWindowLongA]
call fcn.00401ed9
adc byte [ebp - 0x2c], cl
shl ebx, 1
add dword [ebp - 8], 0x79
mov ebx, 0xb187c356
and cl, byte [ebp - 0x44]
mov eax, dword [0x41a40a]
xor bh, byte [ebp - 0x28]
push 0
push 0x7c63000
call dword [sym.imp.GDI32.DLL_SelectClipRgn]
pop ebx
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4025d8
Capabilities:
Log keystrokes via polling

Disassembly:
push eax
push ecx
add bh, byte [0x41e85d]
call fcn.0040110c
mov edx, 0x1e6ec3f1
push 0xf5bfe
push 0x41d967
push 0x423d18
call fcn.00401c59
push 0x5c75000
call dword [sym.imp.USER32.DLL_GetKeyState]
xor bx, word [0x41cdc7]
push edx
push 0x110a000
call dword [sym.imp.USER32.DLL_GetDlgItem]
pop ecx
pop eax
ret

Function at 0x402a51
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
or dword [ebp - 0x68], 0x2c
inc esi
call fcn.00401fec
sbb dword [ebp - 0x30], 0xffffffa3
xor dword [ebp - 0x48], 0x2e
push 0x19ec000
call dword [sym.imp.USER32.DLL_GetKeyState]
add dword [ebp - 0x58], 0xffffffff
add dword [ebp - 0x3c], 0xffffffc9
mov eax, dword [0x428a21]
mov byte [ebp - 0x34], bl
push 0x5c8c000
call dword [sym.imp.GDI32.DLL_GetMapMode]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x402f51
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], esi
or dword [ebp - 0x44], edx
push 0x4154000
push 0x14bb000
call dword [sym.imp.GDI32.DLL_SelectClipRgn]
sub dword [ebp - 0x74], ebx
xor dword [ebp - 0x4c], ecx
or eax, dword [0x41ee6b]
adc dword [ebp - 0x40], 0x3d
push dword [ebp - 0x18]
push 0x9aca000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor ebx, dword [ebp - 0x24]
push 1
push 0x3e8d000
call dword [sym.imp.USER32.DLL_GetDlgItem]
call fcn.004021a2
push edi
push 1
push 0xe52f000
call dword [sym.imp.GDI32.DLL_PlayEnhMetaFile]
leave
ret 8

Function at 0x402ff2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push eax
push ecx
push edx
push ebx
adc dword [ebp - 0x30], ecx
sub byte [ebp - 0x5c], bl
push 0xb36000
push 0x80ee000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x5c], ecx
push ecx
push 0x41b4c3
push edx
call fcn.004028be
mov eax, dword [0x418586]
push 1
push 0x42bd000
call dword [sym.imp.USER32.DLL_EnableWindow]
mov al, byte [0x427b0f]
push 0x1149000
call dword [sym.imp.USER32.DLL_GetParent]
pop ebx
pop edx
pop ecx
pop eax
leave
ret 0xc
Function at 0x403457
Capabilities:
Get file size
Log keystrokes via polling

Disassembly:
push eax
push ecx
aam 0xbd
push 0x417b8c
push 0x421252
push 0x5963c
push eax
call fcn.00402cd9
push eax
push 0x7929000
call dword [sym.imp.USER32.DLL_GetWindowLongA]
push 0x6c90000
push 0xb1a9000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor ebx, dword [0x415918]
push 0xb86e000
call dword [sym.imp.USER32.DLL_GetKeyState]
shld ebx, ebx, cl
mov ax, word [0x41abce]
call fcn.004011e7
push 0xbed1000
call dword [sym.imp.USER32.DLL_GetParent]
add al, 0x31
pop ecx
pop eax
ret

Function at 0x40365c
Capabilities:
Get file size
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esi, esi
mov edi, 0x5c
push 0
dec edi
jne 0x403666
push eax
push ecx
push edx
push ebx
sub byte [ebp - 0x18], dl
push 0x4240000
call dword [sym.imp.USER32.DLL_GetKeyState]
sub edx, dword [ebp - 0x54]
or dword [ebp - 8], 0x66
rol al, 0x17
sub dword [ebp - 0x3c], 0x51
adc di, word [0x41f08f]
push 0x425ec2
push 0x50
push esi
call fcn.00403120
push 0x3a4
push 0x347a000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
rcl bx, 7
add dword [ebp - 0x1c], 0xffffffc0
mov ax, word [0x427c2a]
and dword [ebp - 0x14], 0xffffffa4
pop ebx
pop edx
pop ecx
pop eax
leave
ret

Function at 0x40374d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
xor ebx, ebx
mov eax, 0x5c
push 0
dec eax
jne 0x403757
push eax
push ecx
push edx
push ebx
sub dword [ebp - 0x3c], 0x2b
push dword [ebp - 0x28]
push 0x1f4
push 0x48bb000
call dword [sym.imp.GDI32.DLL_PlayEnhMetaFile]
add dword [ebp - 8], 0xffffffba
or dword [ebp - 0xc], 0xffffffdc
xor byte [ebp - 0x58], cl
push 0xbcc2000
call dword [sym.imp.USER32.DLL_GetKeyState]
sbb byte [ebp - 0x34], dh
adc bh, byte [ebp - 0xc]
pop ebx
pop edx
pop ecx
pop eax
leave
ret

Function at 0x403b69
Capabilities:
Log keystrokes via polling

Disassembly:
push eax
push ecx
push edx
add si, word [0x419d7a]
call fcn.00402621
mov al, byte [0x41aff4]
push 1
push 0x67c4000
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov al, byte [0x41b082]
push 0x105e7000
call dword [sym.imp.USER32.DLL_GetKeyState]
aam 0x6c
pop edx
pop ecx
pop eax
ret 0xc

Function at 0x404198
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
adc dword [ebp - 0x24], 0x1e
push 0x425749
call fcn.00402a18
or esi, dword [0x422862]
adc dword [ebp - 0x14], 0xffffff9f
mov dword [ebp - 0x20], edx
call fcn.0040324e
sub dword [ebp - 0x14], 0x70
ror eax, 0xf
push 0x7746000
call dword [sym.imp.USER32.DLL_GetKeyState]
mov esp, ebp
pop ebp
ret

Function at 0x40423e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push eax
push ecx
push edx
push ebx
push 0xda91
push 0
push edx
push 0x41f06c
push 0x5f
call fcn.00402e0e
sub dword [ebp - 0x34], esi
push esi
push 0xcca1000
call dword [sym.imp.USER32.DLL_EnableWindow]
sbb ebx, dword [ebp - 0x14]
mov byte [ebp - 0x30], dl
call fcn.00401fec
push 0xef13000
call dword [sym.imp.USER32.DLL_GetKeyState]
xor dword [ebp - 0x14], 0xffffff9a
pop ebx
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x404485
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push eax
push ecx
push edx
push ebx
call fcn.004031ff
sub dword [ebp - 0x1c], 0xffffff82
push 0xc7a9000
push 0x31a7000
call dword [sym.imp.GDI32.DLL_SelectClipRgn]
and dl, byte [ebp - 0x40]
mov al, byte [0x426826]
push 0x1b4
push 0xca2b000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub dword [ebp - 0x70], 0x20
and bl, byte [ebp - 0x48]
pop ebx
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4046d7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push eax
push ecx
push edx
push ebx
mov edi, dword [0x4225d4]
sbb dh, byte [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push 0x42fe000
call dword [sym.imp.USER32.DLL_GetKeyState]
xor dword [ebp - 0x2c], ecx
or dword [ebp - 0xc], 0x27
mov edi, 0x6a3544c4
and dword [ebp - 0x38], 0x6f
and edx, dword [ebp - 0x1c]
push 0xbd5c000
push 0x9f9c000
call dword [sym.imp.USER32.DLL_GetDlgItem]
push edx
push 0xffffffffffffffdf
push 0x424179
push 0x429735
call fcn.00403f58
sbb dword [ebp - 4], 0xffffffca
pop ebx
pop edx
pop ecx
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x404976
Capabilities:
Log keystrokes via polling

Disassembly:
push eax
push ecx
push dword [ebp - 0x54]
push 0x428e000
call dword [sym.imp.KERNEL32.DLL_SetStdHandle]
add si, word [0x41fec4]
call fcn.0040374d
push 0x3c77000
call dword [sym.imp.USER32.DLL_GetKeyState]
call fcn.00401d03
mov edx, dword [0x421bac]
push dword [ebp - 0x68]
push 0xd2e2000
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov di, word [0x417f3b]
mov eax, dword [0x416621]
pop ecx
pop eax
ret 0x14

Function at 0x404a1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov esi, 0x68
push edx
dec esi
jg 0x404a26
push eax
push ecx
or bl, byte [ebp - 0xc]
sub dl, byte [0x428721]
sub dword [ebp - 0x2c], 0xffffffe0
add cl, byte [ebp - 0x2c]
mov al, byte [0x416882]
sbb dword [ebp - 0x64], esi
push 0xc9e8000
call dword [sym.imp.USER32.DLL_GetKeyState]
pop ecx
pop eax
leave
ret 0xc

Function at 0x404ac0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push eax
push ecx
push edx
push ebx
adc bh, byte [ebp - 0x5c]
and byte [ebp - 0x14], bl
push 0xffffffffffffffcb
push 0x415d0d
call fcn.0040264d
mov ax, word [0x420e92]
sbb dword [ebp - 8], 1
and dword [ebp - 0x18], ecx
call fcn.004021f2
push 1
push 0x4822000
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
add dword [ebp - 0x2c], 0xffffffb4
sbb dword [ebp - 0xc], edi
pop ebx
pop edx
pop ecx
pop eax
leave
ret 4
Function at 0x1000dcc4
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, 0x100834d0
push edi
call sym.glib_lite.dll_Ordinal_240
xor esi, esi
inc esi
pop ecx
test eax, eax
je 0x1000dcff
push str.G_MAIN_POLL_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, dword [0x100834b0]
test eax, eax
push esi
cmovne ecx, esi
push edi
mov dword [0x100834b0], ecx
call sym.glib_lite.dll_Ordinal_241
add esp, 0xc
push ebx
push 0x70
push esi
call sym.glib_lite.dll_Ordinal_200
mov edi, eax
push edi
call sym.glib_lite.dll_Ordinal_211
lea ecx, [edi + 8]
push ecx
call sym.glib_lite.dll_Ordinal_52
xor ebx, ebx
push ebx
push ebx
call sym.glib_lite.dll_Ordinal_128
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], ebx
mov dword [edi + 0x5c], 0x1001baf7
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
call fcn.100016bb
mov dword [edi + 0x28], eax
mov dword [edi + 0x68], ebx
call fcn.1001c0f2
lea esi, [edi + 0x50]
mov dword [edi + 0x4c], eax
push esi
push eax
call fcn.1001c0de
push esi
push ebx
push edi
call fcn.1000d835
mov esi, 0x100834c4
push esi
call sym.glib_lite.dll_Ordinal_212
push edi
push dword [0x100834cc]
call sym.glib_lite.dll_Ordinal_328
add esp, 0x38
mov dword [0x100834cc], eax
cmp dword [0x100834b0], 0
pop ebx
je 0x1000dd9c
push edi
push str.created_context_p_n
call fcn.100329b0
pop ecx
pop ecx
push esi
call sym.glib_lite.dll_Ordinal_213
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000f4ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10083304]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
lea eax, [ebp - 0x80]
xor esi, esi
push eax
push dword [ebp + 0x19c]
mov dword [ebp - 0x80], esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1000f52c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000f523
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push 0xffffffffffffffff
push eax
call sym.glib_lite.dll_Ordinal_446
add esp, 0x14
mov esi, eax
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100319bd
add ebp, 0x194
leave
ret
Function at 0x10010d21
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1040
call fcn.10031b90
mov eax, dword [0x10083304]
xor eax, esp
mov dword [esp + 0x103c], eax
and dword [esp], 0
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1048]
push edi
mov edi, dword [esp + 0x1058]
push eax
push dword [esp + 0x1054]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
pop ecx
pop ecx
test eax, eax
jns 0x10010d93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
push esi
call sym.glib_lite.dll_Ordinal_364
pop ecx
push eax
push esi
call fcn.100030dd
pop ecx
push eax
call fcn.100031d3
push eax
push edi
call fcn.100329b0
add esp, 0x10
xor eax, eax
jmp 0x10010e72
test dword [esp + 0x12], 0x8000
jne 0x10010dab
push str.Not_a_regular_file
push 1
call fcn.10010763
jmp 0x10010d82
push ebx
mov bl, byte [esi + 0x14]
push esi
call fcn.100106e7
push esi
call fcn.10010bbf
mov eax, dword [esp + 0x1060]
pop ecx
pop ecx
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], eax
push ebp
push 0x1000
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1060]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
test ebp, ebp
je 0x10010e3e
jns 0x10010e20
cmp ebx, 4
je 0x10010e34
cmp ebx, 0xb
je 0x10010e34
push ebx
call sym.glib_lite.dll_Ordinal_364
pop ecx
push eax
push ebx
call fcn.100030dd
pop ecx
push eax
call fcn.100031d3
push eax
push edi
call fcn.100329b0
add esp, 0x10
jmp 0x10010e69
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x54]
push eax
push esi
call fcn.100110da
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010dcb
jmp 0x10010e46
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010e49
push eax
jmp 0x10010e61
lea eax, [esp + 0x10]
push eax
push esi
call fcn.100329b0
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
je 0x10010e6d
push dword [esp + 0x10]
push edi
call fcn.100329b0
pop ecx
pop ecx
xor eax, eax
jmp 0x10010e70
xor eax, eax
inc eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
xor ecx, esp
call fcn.100319bd
add esp, 0x1040
ret
Function at 0x10014c64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10083304]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
push edi
xor edi, edi
mov dword [esp + 0x18], ebx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10014cc9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push esi
jmp 0x10014df3
mov edx, 0x80
test esi, esi
je 0x10014ce0
test ebp, 0x400
mov eax, 0x200080
cmovne edx, eax
mov ecx, edx
mov eax, ebp
push edi
or ecx, 0x2000000
and al, 0x10
cmove ecx, edx
push ecx
push 3
push edi
push 7
push 0x88
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10014cb5
lea eax, [esp + 0x78]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10014de2
push 0x18
lea eax, [esp + 0x64]
push eax
push 1
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10014de2
mov esi, dword [esp + 0x18]
test ebp, 0x400
je 0x10014d9b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
xor edx, edx
test ecx, ecx
push 1
cmovne eax, edx
push eax
push edi
push edi
lea eax, [esp + 0x24]
push eax
xor eax, eax
test ecx, ecx
cmovne eax, ebx
test ecx, ecx
push eax
mov eax, esi
cmovne eax, edx
push eax
call fcn.100329b0
add esp, 0x1c
test eax, eax
jns 0x10014d97
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10014dff
mov edi, dword [esp + 0x14]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x18]
push esi
call fcn.100329b0
push dword [esp + 0x20]
call sym.glib_lite.dll_Ordinal_109
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push edi
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.100329b0
add esp, 0x28
xor eax, eax
jmp 0x10014e02
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [esp + 0x1c]
mov ecx, eax
call fcn.100152e4
add esp, 4
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100319bd
add esp, 0xa0
ret
Function at 0x100199e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push 1
push esi
push 0x10038770
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10019a70
push ebp
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push esi
push esi
push esi
mov ebp, str.TimeZoneKeyName
push ebp
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10019a65
push edi
push dword [esp + 0xc]
call sym.glib_lite.dll_Ordinal_198
mov edi, eax
pop ecx
test edi, edi
je 0x10019a5d
lea eax, [esp + 0xc]
push eax
push edi
push esi
push esi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10019a5d
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
call sym.glib_lite.dll_Ordinal_446
add esp, 0x14
mov esi, eax
jmp 0x10019a64
push edi
call sym.glib_lite.dll_Ordinal_109
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop esi
pop ecx
pop ecx
ret

Function at 0x1001b19d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10083304]
xor eax, ebp
mov dword [ebp - 4], eax
push str.G_DEBUG
mov dword [ebp - 0x1c], str.gc_friendly
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], str.fatal_warnings
mov dword [ebp - 0x10], 0x18
mov dword [ebp - 0xc], str.fatal_criticals
mov dword [ebp - 8], 8
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x1001b1f6
push 3
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.1001b2b4
add esp, 0xc
mov ecx, eax
and eax, 1
and ecx, 0xfffffffc
mov dword [0x10083768], eax
or dword [0x10083210], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100319bd
leave
ret

Function at 0x1001f1fc
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x74]
push eax
xor eax, eax
push eax
push edi
push dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test esi, esi
jne 0x1001f243
push dword [eax]
call sym.glib_lite.dll_Ordinal_364
push eax
push str.Error_creating_thread:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_186
add esp, 0x14
jmp 0x1001f277
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1001f277
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100329b0
mov esi, eax
push esi
push str.Error_closing_thread_handle:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_186
push esi
call sym.glib_lite.dll_Ordinal_109
add esp, 0x18
push 0xffffffffffffffff
push dword [edi + 0x8c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
pop edi
pop esi
ret