joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454f92
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x593448
call fcn.0055ebd7
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x455123
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x4550f5
sub eax, 1
je 0x455011
sub eax, 1
je 0x454fe9
sub eax, 1
je 0x455011
push 0x5a0fec
mov ecx, edi
call fcn.004021d0
mov eax, edi
call fcn.0055eb86
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x454fd3
lea eax, [ebp - 0x4e8]
push eax
jmp 0x454fd8
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x454fd3
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.00431a42
test eax, eax
je 0x454fd3
lea ecx, [ebp - 0x700]
call fcn.00402280
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4550ab
test byte [ebp - 0x428], 0x18
jne 0x4550cd
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5a0a48]
mov ecx, ebx
call esi
jmp 0x4550cd
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5a0a48]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00404000
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.0042aec1
jmp 0x454fdf
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x454fd3
lea eax, [ebp - 0x6f0]
jmp 0x45500e
call fcn.0042a6ab
int3

Function at 0x45529b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004a5554
call fcn.0043073f
cmp dword [eax + 0x14], 0
jne 0x4552b6
mov ecx, esi
pop esi
jmp fcn.004545b1
pop esi
ret

Function at 0x455c31
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5fb1a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x455c9b
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x455c80
lea eax, [ebp - 0x2ac]
push eax
jmp 0x455c85
push 0x5abfe0
call fcn.004021d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055e52e
leave
ret 8
call fcn.0042a6ab
int3

Function at 0x456180
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040a500
call fcn.0043073f
cmp dword [eax + 0x14], 0
jne 0x45619b
mov ecx, esi
pop esi
jmp fcn.004559db
pop esi
ret
Function at 0x45f0f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x45f10f
call fcn.004306f1
mov esi, dword [eax + 0xc]
push 0x5ad6cc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f151
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f151
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45f151
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0045f15a
jmp 0x45f153
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4fbe35
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4fbe62
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4fbe77
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4fbe77
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00437efd
jmp 0x4fbf48
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00437efd
cmp eax, edi
jne 0x4fbf52
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4fbee4
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4fbf28
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4fbf52
cmp eax, 0x205
je 0x4fbf52
cmp eax, 0x201
je 0x4fbf52
cmp eax, 0x204
je 0x4fbf52
cmp eax, 0x100
jne 0x4fbf10
cmp dword [ebp - 0x18], 0x1b
je 0x4fbf52
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4fbf48
ja 0x4fbf41
cmp eax, dword [0x603450]
jbe 0x4fbf48
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4fbe99
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4fc32a
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4fc360
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0042f738
test eax, eax
je 0x4fc348
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5163f8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00576790
pop ecx
test eax, eax
jne 0x51643a
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042cc42
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x516400
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x51d3e5
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x592ccb
call fcn.0055eba4
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x51d4d1
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x51d4d1
cmp esi, 0x43
je 0x51d427
cmp esi, 0x2d
jne 0x51d4d1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51d4d1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402280
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5c3690
push eax
call fcn.00404830
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x51d4bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x51d4bf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.0042aec1
push ebx
mov ecx, edi
call fcn.0051a86b
call fcn.0055eb72
ret 4
Function at 0x55f6bc
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x55ffcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x55ff2e
xor esi, esi
jmp 0x55ffcf
cmp eax, 3
je 0x55ff3f
push 0
push edi
call fcn.0055ffd7
test eax, eax
jne 0x55ff27
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x55ffbc
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x55ff58
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x55ff51
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x55ffbc
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0055fefe
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x55ffce
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x55ffb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x55ffa9
xor esi, esi
inc esi
jmp 0x55ffce
test esi, esi
jle 0x55ffce
movzx esi, si
or esi, 0x80070000
jmp 0x55ffce
xor esi, esi
jmp 0x55ffce
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.004436d5
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x55ffd7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x55fffb
test al, 0x10
je 0x55fffb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x55fff8
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x5775ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055e5e0
mov eax, dword [0x5fb1a0]
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.00576eba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x577641
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57779d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055f030
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 + 0x604110]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00583182
mov ecx, dword [esi*4 + 0x604110]
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 0x577796
cmp eax, dword [ecx + edi + 0x24]
jne 0x577796
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 0x577796
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00583182
add esp, 0x14
test edx, edx
jl 0x577796
jg 0x57770c
test eax, eax
jb 0x577796
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x577796
jl 0x577726
cmp dword [ebp - 0x1008], eax
ja 0x577796
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x577744
test ebx, ebx
je 0x57777d
cmp ecx, edi
jae 0x57777d
mov al, byte [ecx]
cmp al, 0xd
jne 0x57775e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57776a
cmp byte [ecx + 1], 0xa
jne 0x57776a
inc ecx
jmp 0x57776a
movzx eax, al
movsx eax, byte [eax + 0x5fb5f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x577744
cmp edx, ebx
jne 0x577744
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x57779b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055e52e
leave
ret

Function at 0x57cd8e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d3db0
push 0x5d3da8
push str.FlsAlloc
push 0x1f
call fcn.0057cbb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57cdc2
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0a48]
call esi
jmp 0x57cdc8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x57ce0c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d3dc0
push 0x5d3db8
push str.FlsGetValue
push 0x21
call fcn.0057cbb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57ce43
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0a48]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x57ce4b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d3dc8
push 0x5d3dc0
push str.FlsSetValue
push 0x22
call fcn.0057cbb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57ce85
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a0a48]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x57e7ca
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5fb1a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x57e80d
call fcn.00566e66
mov dword [eax], 0xf
call fcn.00566e79
mov dword [eax], 0xd
call fcn.00566c6f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e52e
leave
ret
test eax, eax
jne 0x57e814
inc eax
jmp 0x57e801
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x57e7ff
xor eax, eax
cmp ecx, 1
setne al
jmp 0x57e801
Function at 0x5822a6
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 + 0x604110]
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 0x5822e6
cmp byte [ebx], 0xa
jne 0x5822e6
or byte [edi + eax + 0x28], 4
jmp 0x5822eb
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 0x5823ea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5823cd
inc eax
cmp dl, 0xd
je 0x582317
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x58233d
cmp eax, ecx
jae 0x58234b
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 0x5822ff
jmp 0x5823ea
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 0x5823c8
cmp dword [ebp - 0x10], 0
je 0x5823c8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x604110]
test byte [eax + edi + 0x28], 0x48
je 0x5823a2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58238d
mov byte [esi], dl
jmp 0x58239e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x604110]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5823ea
cmp byte [ebp - 1], 0xa
jne 0x5823b1
cmp esi, ebx
jne 0x5823b1
mov byte [esi], 0xa
jmp 0x5823e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005831a0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5823ea
mov byte [esi], 0xd
jmp 0x5823e9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x604110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5823e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5823ea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5823f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x604110]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x582439
cmp word [ebx], dx
jne 0x582439
or byte [eax + edi + 0x28], 4
jmp 0x58243e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5825a1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x582581
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x58247f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5824b5
cmp eax, edx
jae 0x5824c3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x58245a
jmp 0x5825a1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58257c
cmp dword [ebp - 0x18], 0
je 0x58257c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x604110]
test byte [eax + edi + 0x28], 0x48
je 0x582552
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x582516
mov word [esi], cx
jmp 0x58254d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x604110]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x604110]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x604110]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5825a1
pop eax
cmp word [ebp - 4], ax
jne 0x582562
cmp esi, ebx
jne 0x582562
mov word [esi], ax
jmp 0x58259e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005831a0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5825a1
push 0xd
pop eax
jmp 0x58255d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x604110]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x58259b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5825a1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5844b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x584551
push ebx
push esi
call fcn.0058447d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0057e9b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5844fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x584550
push edi
push eax
call fcn.0057c82b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x58451e
call fcn.0057c7f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x58454f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057e9b7
add esp, 0x20
test eax, eax
jne 0x58453d
push edi
call fcn.0057c7f1
jmp 0x584545
push ebx
call fcn.0057c7f1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x584554
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x584565
pop esi
ret
push ebx
push edi
push esi
call fcn.0058447d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057c82b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x58458d
push ebx
push esi
push edi
call fcn.005635d0
add esp, 0xc
push 0
call fcn.0057c7f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x584ce7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00584802

Function at 0x586e3c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0057c316
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x586eab
cmp esi, dword [ebp - 4]
je 0x586ea6
cmp dword [ebp + 0xc], 0
je 0x586ea6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x586e83
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0058698e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x586ead
xor eax, eax
inc eax
jmp 0x586ead
xor eax, eax
pop edi
pop esi
leave
ret