joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486ee0
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.0041afa0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486f25
push 0x5b6040
mov ecx, dword [ebp + 0xc]
call fcn.0041a380
push 0x5b6044
mov ecx, dword [ebp + 0x10]
call fcn.0041a380
xor al, al
jmp 0x487070
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 0x48706e
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.0041afa0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x5b6048
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x486f8c
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 0x5b604c
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x487064
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 0x48703c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041a380
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 0x487064
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0041a380
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 0x487080
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a78b5
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.00415e70
lea eax, [ebp - 0x1c]
push eax
call fcn.0044d000
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x5b62fc
lea ecx, [ebp - 0x10]
call fcn.00414480
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 0x48716b
mov dword [ebp - 0x25c], 0x22c
push 0x228
push 0
lea ecx, [ebp - 0x258]
push ecx
call fcn.005768e0
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 0x487161
mov ecx, dword [ebp - 0x254]
cmp ecx, dword [ebp - 0x20]
jne 0x48714d
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00487480
add esp, 8
jmp 0x487161
lea ecx, [ebp - 0x25c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48712d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00422840
movzx ecx, al
test ecx, ecx
je 0x4871c1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00414340
mov eax, dword [ebp + 8]
push eax
call fcn.0044c810
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.004185a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004185a0
mov eax, dword [ebp + 8]
jmp 0x4871f4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00414340
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004185a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004185a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48c520
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 0x48c53a
jmp 0x48c62b
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 0x48c62b
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 0x48c61d
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 0x4925f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x5dfbfc
mov eax, dword [ebp + 0xc]
push eax
call fcn.00582287
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x492615
jmp 0x492769
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00586cc7
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.00588955
add esp, 4
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00588a6b
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a7400
add esp, 4
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004a53d0
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 0x4926a1
jg 0x492682
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x28]
jbe 0x4926a1
push 0x12
mov edx, dword [ebp + 8]
push edx
call fcn.004a7760
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.005823c3
add esp, 4
jmp 0x492769
mov ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x14]
je 0x4926b7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x4926c3
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.004a44f0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4926f6
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a7690
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.005823c3
add esp, 4
jmp 0x492769
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.005825cc
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 0x492743
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jne 0x492743
push fcn.004a4590
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.004a7590
add esp, 0x14
jmp 0x49275d
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.004a7760
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.004a4590
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.005823c3
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x492940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x8000
push 0x8000
push 0
push 0x5f4460
call fcn.005768e0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0x5f4460
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 0x492985
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jbe 0x49298b
xor eax, eax
jmp 0x492990
mov eax, 0x5f4460
mov esp, ebp
pop ebp
ret
Function at 0x4d29a0
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.004f8570
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x4d29f2
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.004f8570
add esp, 0x14
pop ebp
ret
Function at 0x508d10
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.004f7980
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x508d3c
mov eax, 7
jmp 0x508de6
movzx ecx, byte [0x5e7b44]
test ecx, ecx
je 0x508d58
push 0xc8
call fcn.004ed890
add esp, 4
test eax, eax
je 0x508d6a
push 0x14
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.005768e0
add esp, 0xc
jmp 0x508db7
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 0x508e70
push 0
push 0
call fcn.00581dd2
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x508db7
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.005768e0
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x508ddc
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 0x542140
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.00479210
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 0x542190
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 0x5422d0
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.0041aa60
movzx ecx, al
test ecx, ecx
je 0x5422f8
jmp 0x5423a7
mov edx, dword [ebp - 4]
mov byte [edx + 0x88], 0
mov ecx, dword [ebp - 4]
add ecx, 0x28
call fcn.0041afa0
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.00543ed0
add esp, 4
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.00543560
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call fcn.00543580
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 0x55ded0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a09dd
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.0040af20
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004135a0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x55de50
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.0041afa0
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.00581dd2
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x55df4e
lea ecx, [ebp - 0x14]
call fcn.0043aaf0
jmp 0x55df5f
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.0055f053
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x56251d
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.005624f9
pop esi
leave
ret 8

Function at 0x574910
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0058a15c
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 0x57494f
sub eax, 1
je 0x57494a
sub eax, 1
je 0x574946
xor eax, eax
leave
ret
push 3
jmp 0x574951
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x575fc7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00575a60
mov eax, dword [0x5efeb4]
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.00588244
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58875a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5888b6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005754d0
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 + 0x5fde10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00594f56
mov ecx, dword [esi*4 + 0x5fde10]
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 0x5888af
cmp eax, dword [ecx + edi + 0x24]
jne 0x5888af
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 0x5888af
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00594f56
add esp, 0x14
test edx, edx
jl 0x5888af
jg 0x588825
test eax, eax
jb 0x5888af
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5888af
jl 0x58883f
cmp dword [ebp - 0x1008], eax
ja 0x5888af
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58885d
test ebx, ebx
je 0x588896
cmp ecx, edi
jae 0x588896
mov al, byte [ecx]
cmp al, 0xd
jne 0x588877
lea eax, [edi - 1]
cmp ecx, eax
jae 0x588883
cmp byte [ecx + 1], 0xa
jne 0x588883
inc ecx
jmp 0x588883
movzx eax, al
movsx eax, byte [eax + 0x5f0138]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58885d
cmp edx, ebx
jne 0x58885d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5888b4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00575a94
leave
ret
Function at 0x5893f0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5efeb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c304c
push esi
call fcn.005965b4
pop ecx
pop ecx
test eax, eax
jne 0x58941e
xor al, al
jmp 0x58949b
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.00589131
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x589458
push dword [ebp - 0x210]
call fcn.0057b4d6
xor al, al
jmp 0x589499
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x58945e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x58947e
push edx
call fcn.00589327
pop ecx
test al, al
je 0x589449
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x58948c
mov bl, 1
push dword [ebp - 0x210]
call fcn.0057b4d6
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00575a94
leave
ret

Function at 0x592060
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c4954
push 0x5c494c
push str.FlsAlloc
push 0x1f
call fcn.00591e8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x592094
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ad5fc]
call esi
jmp 0x59209a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5920de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c4964
push 0x5c495c
push str.FlsGetValue
push 0x21
call fcn.00591e8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x592115
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ad5fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x59211d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c496c
push 0x5c4964
push str.FlsSetValue
push 0x22
call fcn.00591e8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x592157
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5ad5fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x592f8b
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 + 0x5fde10]
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 0x592fcb
cmp byte [ebx], 0xa
jne 0x592fcb
or byte [edi + eax + 0x28], 4
jmp 0x592fd0
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 0x5930cf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5930b2
inc eax
cmp dl, 0xd
je 0x592ffc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x593022
cmp eax, ecx
jae 0x593030
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 0x592fe4
jmp 0x5930cf
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 0x5930ad
cmp dword [ebp - 0x10], 0
je 0x5930ad
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5fde10]
test byte [eax + edi + 0x28], 0x48
je 0x593087
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x593072
mov byte [esi], dl
jmp 0x593083
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fde10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5930cf
cmp byte [ebp - 1], 0xa
jne 0x593096
cmp esi, ebx
jne 0x593096
mov byte [esi], 0xa
jmp 0x5930ce
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00594f74
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5930cf
mov byte [esi], 0xd
jmp 0x5930ce
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fde10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5930cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5930cf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret