joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491c60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041afc0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x491ca5
push 0x5bc1f0
mov ecx, dword [ebp + 0xc]
call fcn.0041a3a0
push 0x5bc1f4
mov ecx, dword [ebp + 0x10]
call fcn.0041a3a0
xor al, al
jmp 0x491df0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x491dee
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.0041afc0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x5bc1f8
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x491d0c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 8]
push edx
push 0x5bc1fc
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x491de4
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx]
push eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx]
push ecx
push str.StringFileInfo_04x_04xFileDescription
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax]
push edx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x491dbc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041a3a0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x491de4
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0041a3a0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x491e00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae395
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.unknown
call fcn.00415e60
lea eax, [ebp - 0x1c]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x5bc4ac
lea ecx, [ebp - 0x10]
call fcn.00414470
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x20], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x491eeb
mov dword [ebp - 0x25c], 0x22c
push 0x228
push 0
lea ecx, [ebp - 0x258]
push ecx
call fcn.0057ccd0
add esp, 0xc
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x491ee1
mov ecx, dword [ebp - 0x254]
cmp ecx, dword [ebp - 0x20]
jne 0x491ecd
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00492200
add esp, 8
jmp 0x491ee1
lea ecx, [ebp - 0x25c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x491ead
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00422920
movzx ecx, al
test ecx, ecx
je 0x491f41
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00414330
mov eax, dword [ebp + 8]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004185c0
mov eax, dword [ebp + 8]
jmp 0x491f74
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414330
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004185c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4974b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4974ca
jmp 0x4975bb
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
push 0x100
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4975bb
mov edx, 3
mov word [ebp - 0x38], dx
mov dword [ebp - 0x30], 0xc354
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
mov eax, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0xc], eax
push 0x7533
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x24]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4975ad
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 8], eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov esp, ebp
pop ebp
ret 4
Function at 0x49d7b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x5e6bfc
mov eax, dword [ebp + 0xc]
push eax
call fcn.0058d262
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49d7d5
jmp 0x49d929
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.0058ca41
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.0058ed55
add esp, 4
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
push eax
call fcn.0058ee6b
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b25c0
add esp, 4
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b0590
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jl 0x49d861
jg 0x49d842
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x28]
jbe 0x49d861
push 0x12
mov edx, dword [ebp + 8]
push edx
call fcn.004b2920
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.0058bd78
add esp, 4
jmp 0x49d929
mov ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x14]
je 0x49d877
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x49d883
xor ecx, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004af6b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49d8b6
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b2850
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.0058bd78
add esp, 4
jmp 0x49d929
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.0058c629
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x30]
jne 0x49d903
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jne 0x49d903
push fcn.004af750
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b2750
add esp, 0x14
jmp 0x49d91d
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.004b2920
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.004af750
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.0058bd78
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x49db00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x8000
push 0x8000
push 0
push 0x5fb4d0
call fcn.0057ccd0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0x5fb4d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49db45
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jbe 0x49db4b
xor eax, eax
jmp 0x49db50
mov eax, 0x5fb4d0
mov esp, ebp
pop ebp
ret
Function at 0x4ddb80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov eax, dword [ebp + 8]
push eax
call fcn.00503750
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x4ddbd2
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov ecx, dword [ebp + 8]
push ecx
call fcn.00503750
add esp, 0x14
pop ebp
ret
Function at 0x513ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.00502b60
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x513f1c
mov eax, 7
jmp 0x513fc6
movzx ecx, byte [0x5eeb44]
test ecx, ecx
je 0x513f38
push 0xc8
call fcn.004f8a70
add esp, 4
test eax, eax
je 0x513f4a
push 0x14
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0057ccd0
add esp, 0xc
jmp 0x513f97
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x514050
push 0
push 0
call fcn.005881eb
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x513f97
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0057ccd0
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x513fbc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
push eax
call dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x54d320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov byte [edx + 0x88], 1
lea eax, [ebp - 0xc]
push eax
call fcn.00484340
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], edx
mov esp, ebp
pop ebp
ret

Function at 0x54d370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x98], 1
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x54d4b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.0041aa80
movzx ecx, al
test ecx, ecx
je 0x54d4d8
jmp 0x54d587
mov edx, dword [ebp - 4]
mov byte [edx + 0x88], 0
mov ecx, dword [ebp - 4]
add ecx, 0x28
call fcn.0041afc0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 8
push edx
call fcn.0054f0b0
add esp, 4
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.0054e740
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call fcn.0054e760
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x564450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6dad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ae60
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00413590
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x5643d0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.0041afc0
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.005881eb
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x5644ce
lea ecx, [ebp - 0x14]
call fcn.0043ab20
jmp 0x5644df
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.005654a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x568971
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0056894d
pop esi
leave
ret 8

Function at 0x57ad64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0059040c
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x57ada3
sub eax, 1
je 0x57ad9e
sub eax, 1
je 0x57ad9a
xor eax, eax
leave
ret
push 3
jmp 0x57ada5
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x57c3b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x57c3f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57c3f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57c3f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57c3f6
cmp dword [ecx + 0x74], 0xe
jbe 0x57c3f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x58eb18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0057be50
mov eax, dword [0x5f6eb4]
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.0058e644
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58eb5a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x58ecb6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0057b930
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 + 0x604e50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0059a9b1
mov ecx, dword [esi*4 + 0x604e50]
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 0x58ecaf
cmp eax, dword [ecx + edi + 0x24]
jne 0x58ecaf
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 0x58ecaf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059a9b1
add esp, 0x14
test edx, edx
jl 0x58ecaf
jg 0x58ec25
test eax, eax
jb 0x58ecaf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58ecaf
jl 0x58ec3f
cmp dword [ebp - 0x1008], eax
ja 0x58ecaf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58ec5d
test ebx, ebx
je 0x58ec96
cmp ecx, edi
jae 0x58ec96
mov al, byte [ecx]
cmp al, 0xd
jne 0x58ec77
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58ec83
cmp byte [ecx + 1], 0xa
jne 0x58ec83
inc ecx
jmp 0x58ec83
movzx eax, al
movsx eax, byte [eax + 0x5f7128]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58ec5d
cmp edx, ebx
jne 0x58ec5d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x58ecb4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0057be84
leave
ret
Function at 0x58f7f0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f6eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c907c
push esi
call fcn.0059c865
pop ecx
pop ecx
test eax, eax
jne 0x58f81e
xor al, al
jmp 0x58f89b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0058f531
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x58f858
push dword [ebp - 0x210]
call fcn.005818c6
xor al, al
jmp 0x58f899
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x58f85e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x58f87e
push edx
call fcn.0058f727
pop ecx
test al, al
je 0x58f849
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x58f88c
mov bl, 1
push dword [ebp - 0x210]
call fcn.005818c6
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057be84
leave
ret

Function at 0x598312
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ca934
push 0x5ca92c
push str.FlsAlloc
push 0x1f
call fcn.0059813d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x598346
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b35f0]
call esi
jmp 0x59834c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x598390
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ca944
push 0x5ca93c
push str.FlsGetValue
push 0x21
call fcn.0059813d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5983c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b35f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5983cf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ca94c
push 0x5ca944
push str.FlsSetValue
push 0x22
call fcn.0059813d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x598409
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b35f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x599c47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x604e50]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x599c87
cmp byte [ebx], 0xa
jne 0x599c87
or byte [edi + eax + 0x28], 4
jmp 0x599c8c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x599d8b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x599d6e
inc eax
cmp dl, 0xd
je 0x599cb8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x599cde
cmp eax, ecx
jae 0x599cec
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x599ca0
jmp 0x599d8b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599d69
cmp dword [ebp - 0x10], 0
je 0x599d69
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x604e50]
test byte [eax + edi + 0x28], 0x48
je 0x599d43
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x599d2e
mov byte [esi], dl
jmp 0x599d3f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x604e50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x599d8b
cmp byte [ebp - 1], 0xa
jne 0x599d52
cmp esi, ebx
jne 0x599d52
mov byte [esi], 0xa
jmp 0x599d8a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0059a9cf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x599d8b
mov byte [esi], 0xd
jmp 0x599d8a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x604e50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x599d88
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x599d8b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret