joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cac0
Capabilities:
Read file on windows

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

Function at 0x47cacb
Capabilities:
Read file on windows

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

Function at 0x47e8da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49ca04
push 0x49c9fc
push str.FlsAlloc
push 0x1e
call fcn.0047e764
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47e90e
push dword [ebp + 8]
mov ecx, esi
call dword [0x493388]
call esi
jmp 0x47e914
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47e958
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49ca14
push 0x49ca0c
push str.FlsGetValue
push 0x20
call fcn.0047e764
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47e98f
push dword [ebp + 8]
mov ecx, esi
call dword [0x493388]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x482c33
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 0x482cd0
push ebx
push esi
call fcn.00482bfc
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.00480f79
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x482c7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482ccf
push edi
push eax
call fcn.0047cf2d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x482c9d
call fcn.0047bb57
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482cce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00480f79
add esp, 0x20
test eax, eax
jne 0x482cbc
push edi
call fcn.0047bb57
jmp 0x482cc4
push ebx
call fcn.0047bb57
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 0x489425
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004893a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x48959d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x48959d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x48954c
jg 0x48947e
test eax, eax
je 0x489542
push 1
push 0x1000
call fcn.0047e466
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4894a4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x489539
push 0x8000
push ebx
call fcn.004790c1
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4894d0
jg 0x4894cb
cmp ecx, 0x1000
jb 0x4894d0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047f750
add esp, 0x10
cmp eax, 0xffffffff
je 0x489515
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4894cb
jl 0x4894fc
test ecx, ecx
jne 0x4894bd
push dword [ebp - 0xc]
push ebx
call fcn.004790c1
push esi
call fcn.0047bb57
add esp, 0xc
xor edi, edi
jmp 0x4895ae
cmp byte [edi + 0x24], 0
je 0x48952c
cmp dword [edi + 0x20], 5
jne 0x48952c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x489537
mov edi, dword [edi + 0x18]
jmp 0x489539
xor edi, edi
push esi
call fcn.0047bb57
pop ecx
jmp 0x4895ae
test ecx, ecx
jg 0x48950e
jl 0x48954c
test eax, eax
jae 0x48950e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047ccdd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48956f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x48950e
jmp 0x4895a6
push ebx
call fcn.00483241
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48950e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4895ae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4895ab
mov edi, dword [edi + 0x18]
jmp 0x4895ae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047ccdd
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48a7b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48a7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48a7dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403908
test esi, esi
jne 0x402792
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039f8
jmp 0x4027b0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402670
mov edi, eax
test esi, esi
je 0x4027b0
cmp dword [ebx], 0
je 0x4027b0
dec esi
jmp 0x402799
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c1c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x408014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f80
xor eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x408014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x408014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40378c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x4037ed
cmp word [0x409208], 0xd7b2
jne 0x4037b5
cmp dword [0x409210], 0
jbe 0x4037b5
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408080
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403814
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x403809
push 0
push 0x408078
push 0x408080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404212
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a74
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dfc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4041fc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404219
lea eax, [ebp - 0x10]
call fcn.00403908
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x402160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov ecx, str.debug
call fcn.004fd0e0
mov edi, dword [ebp + 8]
push str.temp
push 0x400
lea esi, [edi + 0xc58]
push ebx
mov ecx, esi
mov edx, str.tempdir
mov dword [edi + 0xc54], eax
call fcn.004fd410
push str.log1
push 0x400
lea ecx, [edi + 0x854]
push ebx
mov edx, 0x5c77dc
call fcn.004fd410
test esi, esi
je 0x4021e3
cmp byte [esi], 0
je 0x4021e3
mov edi, 0x5cc7f4
mov ebx, esi
call fcn.004015d0
test eax, eax
jne 0x4021e0
push 0x400
mov ebx, edi
mov eax, esi
call fcn.00401570
add esp, 4
mov edi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esi, [edi + 0x450]
test esi, esi
jne 0x4021fc
call dword [sym.imp.MSVCR100.dll_abort]
lea edx, [esi + 0x3ff]
mov eax, esi
cmp esi, edx
jae 0x40221e
mov edi, str.manager
sub edi, esi
nop
mov cl, byte [edi + eax]
test cl, cl
je 0x40221e
mov byte [eax], cl
inc eax
cmp eax, edx
jb 0x402210
pop edi
pop esi
mov byte [eax], 0
pop ebx
pop ebp
ret 4
Function at 0x402560
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1438
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x1058], 0
jne 0x40273c
mov ebx, 1
mov dword [ebp - 0x10], ebx
lea esp, [esp]
cmp ebx, 2
jne 0x4025ac
mov esi, edi
call fcn.00402230
mov eax, dword [edi + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x402725
lea eax, [edi + 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x4025cf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edx
call ebx
test eax, eax
jne 0x4025ec
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
cmp dword [edi + 0xc54], 0
je 0x402626
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x402600
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push ecx
push eax
push str.raising___s__to_run_level___d_
lea ebx, [edi + 0x450]
lea edx, [edi + 0x28]
mov ecx, 1
call fcn.0042b270
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 0xc
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx + 8]
push eax
call edx
cmp dword [edi + 0xc54], 0
je 0x4026c1
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
jne 0x402651
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x20]
push ecx
call ebx
test eax, eax
jne 0x402665
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jmp 0x40266b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
push 0
sbb eax, dword [ebp - 0x24]
push 0x3e8
push eax
push ecx
call fcn.00596e30
mov ecx, dword [0x61023c]
push ecx
mov ecx, dword [0x610238]
push ecx
push edx
push eax
call fcn.00596bf0
cmp dword [esi + 0x20], 0x10
lea ecx, [esi + 0xc]
jb 0x40269f
mov ecx, dword [ecx]
push edx
mov edx, dword [ebp - 0x10]
push eax
push edx
push ecx
push str.raised___s__to_run_level___d__took___I64d__ms
lea ebx, [edi + 0x450]
lea edx, [edi + 0x28]
mov ecx, 1
call fcn.0042b270
add esp, 0x14
cmp byte [esi + 0x31], 0
jne 0x402702
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x31], 0
jne 0x4026e6
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
jne 0x4026e2
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
je 0x4026d8
mov esi, ecx
jmp 0x402702
mov eax, dword [esi + 4]
cmp byte [eax + 0x31], 0
jne 0x402700
nop
cmp esi, dword [eax + 8]
jne 0x402700
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x4026f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x402719
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [edi + 0xc]
jne 0x4025bf
mov ebx, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, 4
jle 0x4025a0
mov dword [edi + 0x1058], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404040
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eb0b
mov eax, dword fs:[0]
push eax
mov eax, 0x40034
call fcn.005965e0
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40034], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x40000
lea ecx, [ebp - 0x40010]
push ecx
push 0x5bc564
push 0
push 0
mov dword [ebp - 0x40030], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x40010], 0
lea ebx, [ebp - 0x40010]
je 0x404228
push ebx
call dword [sym.imp.MSVCR100.dll__strlwr]
mov eax, ebx
add esp, 4
mov dword [ebp - 0x40018], 0xf
mov dword [ebp - 0x4001c], 0
mov byte [ebp - 0x4002c], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040e0
sub eax, esi
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x4002c]
call fcn.00402fe0
mov edx, esi
mov esi, dword [ebp - 0x40034]
push edx
lea eax, [esi + 4]
mov dword [ebp - 4], 0
call fcn.00423810
mov edi, dword [esi + 8]
mov dword [ebp - 0x40038], eax
cmp eax, edi
je 0x404184
mov esi, dword [eax + 0x1c]
mov edx, 0x10
cmp dword [eax + 0x20], edx
jb 0x40412f
mov ecx, dword [eax + 0xc]
jmp 0x404132
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 0x4001c]
cmp eax, esi
jb 0x40413e
mov eax, esi
cmp dword [ebp - 0x40018], edx
mov edx, dword [ebp - 0x4002c]
jae 0x404152
lea edx, [ebp - 0x4002c]
call fcn.00401e30
test eax, eax
jne 0x404175
mov eax, dword [ebp - 0x4001c]
cmp eax, esi
jae 0x40416a
or eax, 0xffffffff
jmp 0x404173
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
test eax, eax
sets al
test al, al
jne 0x404184
lea eax, [ebp - 0x40038]
jmp 0x404190
mov dword [ebp - 0x4003c], edi
lea eax, [ebp - 0x4003c]
mov edx, dword [eax]
mov esi, dword [ebp - 0x40034]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x40018], 0x10
mov dword [esi + 0x14], edx
jb 0x4041bb
mov eax, dword [ebp - 0x4002c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x40018], 0xf
mov dword [ebp - 0x4001c], 0
mov byte [ebp - 0x4002c], 0
cmp eax, dword [esi + 8]
je 0x4041ed
mov ecx, dword [ebp - 0x40030]
push 5
push ebx
push ecx
mov ecx, dword [eax + 0x28]
jmp 0x404207
push esi
xor ecx, ecx
mov edx, ebx
call fcn.00403ec0
test eax, eax
je 0x40420c
mov edx, dword [ebp - 0x40030]
push 5
push ebx
push edx
mov ecx, eax
call fcn.004fe850
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404211
sub eax, edx
cmp byte [ebx + eax + 1], cl
lea ebx, [ebx + eax + 1]
jne 0x4040b3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret 8
Function at 0x405c80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x8c4], ebx
je 0x405d09
mov eax, 5
cmp eax, dword [esi + 0x2c]
lea edx, [esi + 0xc]
sbb ecx, ecx
and ecx, 0xfc
add ecx, eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x405d09
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x69
push ebx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x405d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_80015:_unable_to_report_event__error___d_
mov ecx, 0x610240
call fcn.00504670
add esp, 8
lea ecx, [ebp - 0x138]
push str.started
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], 0x100
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x24], bl
call fcn.00506660
cmp dword [ebp - 0x30], ebx
je 0x405d6a
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x38]
push edx
push eax
push 0x5cb5f8
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x138]
pop esi
pop ebx
cmp eax, ecx
je 0x405d86
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret

Function at 0x405ea0
Capabilities:
Access the windows event log

Disassembly:
push str.stopped
mov ecx, 0x610240
call fcn.00504670
add esp, 4
cmp dword [esi + 0x8c4], 0
je 0x405ef6
mov eax, dword [esi + 4]
test eax, eax
je 0x405ef6
push 0
push 0
push 0
push 0
push 0
push 0x6c
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x405ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_80015:_unable_to_report_event__error___d_
mov ecx, 0x610240
call fcn.00504670
add esp, 8
ret
Function at 0x406be0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_abort]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0xc4]
add esi, 0x4c4
jne 0x406bff
call ebx
test edi, edi
jne 0x406c05
call ebx
mov eax, esi
lea edx, [eax + 0x3ff]
cmp eax, edx
jae 0x406c21
sub edi, esi
mov cl, byte [edi + eax]
test cl, cl
je 0x406c21
mov byte [eax], cl
inc eax
cmp eax, edx
jb 0x406c13
mov byte [eax], 0
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c30
mov ecx, dword [ebp + 8]
sub eax, edx
lea eax, [eax + ecx + 0x4c3]
cmp eax, esi
jbe 0x406c56
cmp byte [eax], 0x5c
je 0x406c53
dec eax
cmp eax, esi
ja 0x406c47
jmp 0x406c56
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x406c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ERROR_80020:_unable_to_set_the_current_working_directory__error___d_
mov ecx, 0x610240
call fcn.00504670
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x4117b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b21b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, edx
cmp dword [ebx + 0x1c6c], 0
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x150], ecx
je 0x4118ed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4118a4
push str.unable_to_read_file_attributes
mov eax, 0x111f1
lea ecx, [ebp - 0x14c]
call fcn.005064b0
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x150]
mov edi, eax
call fcn.005067d0
mov edi, eax
test esi, esi
je 0x411868
cmp byte [esi], 0
je 0x411868
push esi
push str.filename___s_
mov esi, edi
call fcn.00506600
add esp, 8
mov edx, dword [ebp - 0x158]
push edx
lea edx, [ebx + 0x43c]
mov ebx, dword [ebp - 0x154]
mov ecx, edi
mov dword [edi + 0x110], 0
call fcn.0042c010
lea esi, [ebp - 0x14c]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00506520
mov eax, edi
jmp 0x4118ef
test eax, 0x1000
je 0x4118ed
cmp dword [ebp + 0x14], 0
je 0x4118b8
mov eax, 0x11236
jmp 0x4118ef
mov ecx, dword [ebp - 0x150]
push edi
mov edx, str.result.offline
call fcn.004fd6f0
mov eax, dword [ebp - 0x154]
push esi
push str.file___s__is_offline
push 0x11236
lea ecx, [ebx + 0x43c]
push eax
mov ebx, edi
call fcn.0042c130
add esp, 0x10
jmp 0x4118ef
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418ed0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x24]
push edi
mov dword [esp + 0x20], eax
push str.connection_idle
lea eax, [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x134], 1
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x140], bl
call fcn.00506660
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x418f56
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
jne 0x418f6d
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x418f75
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esi + 0xd9e8]
mov edx, dword [0x61023c]
sbb eax, dword [esi + 0xd9ec]
push edx
mov edx, dword [0x610238]
push edx
push eax
push ecx
call fcn.00596bf0
push edx
push eax
push str.duration
push str._s___lld_
lea esi, [esp + 0x30]
call fcn.00506600
add esp, 0x10
cmp dword [esp + 0x130], ebx
je 0x418fdd
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x128]
push eax
push ecx
push 0x5cb5f8
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
mov dword [esp + 0x130], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x418ff3
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret