joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473257
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473285
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4732a3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004731bd
jmp 0x4732a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4732a3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004731bd
test edi, edi
mov eax, edi
jne 0x47328d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x435b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x435b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435b58
mov eax, 1
add ebx, ebx
jne 0x435b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435b70
jne 0x435b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435b70
xor ecx, ecx
sub eax, 3
jb 0x435ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x435c12
mov ebp, eax
add ebx, ebx
jne 0x435bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x435bdc
inc ecx
add ebx, ebx
jne 0x435bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x435bbd
jne 0x435bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x435bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x435bed
jmp 0x435b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x435bfc
add edi, ecx
jmp 0x435b5e
pop esi
mov edi, esi
mov ecx, 0x156
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x435c1a
cmp byte [edi], 2
jne 0x435c1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x435c1f
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x435c97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b934]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b9c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x435c4c
mov ecx, edi
jns 0x435c7b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b9c4]
or eax, eax
je 0x435c91
mov dword [ebx], eax
add ebx, 4
jmp 0x435c69
call dword [esi + 0x5b9c8]
popal
jmp 0x4046dc
Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4014ef
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431d24]
push ebx
xor eax, ebp
push esi
push edi
mov dword [ebp + 0x194], eax
call fcn.0040143a
mov edx, eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x74], bx
mov ecx, 0x81
lea edi, [ebp - 0x72]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x74]
push eax
push edx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x401564
lea eax, [esi + esi]
push eax
call fcn.004114b6
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40156b
xor eax, eax
jmp 0x4015f6
push edi
push esi
push ebx
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov esi, 0x433108
je 0x4015e2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x424860
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4015e2
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
push dword [eax + 0x2c]
mov edx, dword [eax + 8]
push dword [eax + 0x28]
movzx ebx, cx
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
movzx eax, dx
push ecx
push edx
push ebx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call fcn.0041403d
add esp, 0x4c
push edi
call fcn.00414259
mov ax, word [0x433108]
neg ax
pop ecx
sbb eax, eax
and eax, esi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041428f
add ebp, 0x198
leave
ret
Function at 0x40178a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x431d24]
push ebx
mov ebx, dword [ebp + 0x90]
push edi
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x40
xor eax, eax
test ebx, ebx
mov byte [ebp - 0x80], 0
pop ecx
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x4017c6
xor eax, eax
jmp 0x40181a
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
push esi
je 0x401816
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x40180e
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004137a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4017fe
test al, 0x10
jne 0x40180e
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401833
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x4017d4
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x84]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041428f
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x401819

Function at 0x401837
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x431d24]
and word [ebp - 0x7c], 0
mov edx, dword [ebp + 0x198]
xor eax, ebp
push edi
mov dword [ebp + 0x18c], eax
xor eax, eax
test edx, edx
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], edx
stosw word es:[edi], ax
jne 0x401877
xor eax, eax
jmp 0x4018df
lea edi, [edx + 2]
mov ax, word [edi]
test ax, ax
push ebx
push esi
je 0x4018da
mov ebx, edi
sub ebx, edx
cmp ax, 0x5c
jne 0x4018ce
mov esi, ebx
sar esi, 1
shl esi, 1
push esi
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.004137a0
and word [ebp + esi - 0x7c], 0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018bb
test al, 0x10
jne 0x4018cb
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4018f7
mov edx, dword [ebp - 0x80]
inc edi
inc edi
mov ax, word [edi]
inc ebx
inc ebx
test ax, ax
jne 0x401888
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.0041428f
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x4018dd
Function at 0x403243
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032a1
cmp dword [ebp + 0x10], 1
je 0x40327f
cmp dword [ebp + 0x10], 2
jne 0x403296
test edi, edi
mov eax, dword [ebp - 4]
je 0x40329b
test al, 1
jne 0x403296
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40329b
push 0xd
pop eax
jmp 0x4032a1
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40663e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x422cb1
call fcn.00414c98
sub esp, 0x2cc
mov eax, dword [0x431d24]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp dword [0x434a28], esi
je 0x4067d3
push edi
push 0x7f
mov word [ebp - 0x210], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016cc
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x425ecc
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.0041403d
add esp, 0x14
push ebx
lea ecx, [ebp - 0x2a0]
call fcn.00405bd2
mov edi, eax
mov dword [ebp - 4], esi
push 0x425ec8
lea ecx, [ebp - 0x268]
call fcn.00405bd2
mov dword [ebp - 0x230], eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00405bd2
mov byte [ebp - 4], 2
push dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004059b8
mov byte [ebp - 4], 3
push edi
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.004059b8
mov byte [ebp - 4], 4
push 0x425ec4
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00406428
mov byte [ebp - 4], 5
push str._Module_Unloading____n
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00406428
add esp, 0x30
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x284]
call fcn.00403d21
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x2d8]
call fcn.00403d21
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00403d21
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x2bc]
call fcn.00403d21
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0x268]
call fcn.00403d21
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x2a0]
call fcn.00403d21
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop edi
jae 0x4067bb
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00403d21
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x434a28]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041428f
leave
ret
Function at 0x406d87
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x422d1c
call fcn.00414c98
sub esp, 0x4b8
mov eax, dword [0x431d24]
push ebx
push esi
push edi
push 7
pop esi
mov edi, ecx
xor eax, ebp
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x238], esi
call fcn.0040357c
mov dword [ebp - 4], ebx
add edi, 0xf8
push edi
lea ecx, [ebp - 0x4c4]
call fcn.00405b8f
mov byte [ebp - 4], 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.004068d4
pop ecx
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x4c4]
call fcn.0040438e
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x406e17
lea eax, [ebp - 0x24c]
push dword [ebp + 8]
mov dword [ebp - 0x4a4], eax
mov word [ebp - 0x218], bx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x4a8]
stosw word es:[edi], ax
call fcn.0040160e
push eax
push str.TSLOG
push dword [ebp - 0x4a4]
lea eax, [ebp - 0x218]
push str._s_s._s__d_..log
push 0x104
push eax
call fcn.0041403d
add esp, 0x1c
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
lea ecx, [ebp - 0x234]
mov edi, eax
mov dword [ebp - 0x21c], esi
call fcn.0040357c
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
je 0x406f2b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x4a4]
lea ecx, [ebp - 0x234]
call fcn.0040595b
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040593e
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x406edb
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406f15
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x406efb
lea eax, [ebp - 0x230]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push dword [ebp - 0x4a8]
call fcn.0040b256
add esp, 0x14
lea eax, [ebp - 0x4a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406ea3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00403d21
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00403d21
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041428f
leave
ret 4
Function at 0x406f70
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x422d31
call fcn.00414c98
mov eax, 0x1034
call fcn.00414e00
mov eax, dword [0x431d24]
and dword [ebp - 0x101c], 0
and dword [ebp - 0x1018], 0
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1020], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
jle 0x4070b6
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1010], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x100e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1014]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1020]
push dword [eax + ecx*4]
lea eax, [ebp - 0x1010]
push eax
call fcn.00414f86
lea eax, [ebp - 0x1010]
push eax
call fcn.00414e3d
push dword [ebp - 0x1024]
xor eax, eax
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
call fcn.00414f86
lea eax, [ebp - 0x810]
push eax
call fcn.00414e3d
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1040]
call fcn.00405bd2
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
call fcn.00404128
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x1040]
call fcn.00403d21
test bl, bl
jne 0x4070ae
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x406fd6
jmp 0x4070b4
mov dword [ebp - 0x101c], edi
pop edi
pop ebx
push dword [ebp - 0x1020]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x101c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041428f
leave
ret
Function at 0x407562
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov eax, 0x422dc8
call fcn.00414c98
sub esp, 0x33c
mov eax, dword [0x431d24]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x23c], esi
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x21c], 7
call fcn.0040357c
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x218], si
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push str.shell32.dll
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x4075f0
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004057b8
jmp 0x407630
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4076a0
lea ecx, [ebp - 0x240]
push ecx
push esi
push esi
push 0x42437c
mov dword [ebp - 0x240], esi
call eax
cmp eax, esi
jge 0x407640
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004057b8
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0
push esi
jmp 0x40777e
push dword [ebp - 0x240]
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x348], eax
call fcn.0040352a
mov byte [ebp - 4], 2
push dword [ebp - 0x348]
lea eax, [ebp - 0x218]
push eax
call fcn.00414f86
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x344]
cmp dword [ebp - 0x348], eax
je 0x407692
push dword [ebp - 0x348]
call fcn.00414568
pop ecx
push dword [ebp - 0x240]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4076b2
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Thunder_Network_
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 0xffffffff
je 0x4076eb
test al, 0x10
jne 0x4076fe
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407760
push str.XMP4_
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 0xffffffff
je 0x40771e
test al, 0x10
jne 0x407731
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407760
cmp dword [ebp - 0x244], 0
je 0x40774e
push dword [ebp - 0x244]
lea eax, [ebp - 0x218]
push eax
call fcn.00414f5c
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040595b
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
call fcn.004057b8
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 0x234]
push ebx
call fcn.00403d21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x238]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041428f
leave
ret
Function at 0x40ac97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
xor ebx, ebx
cmp dword [0x434a28], ebx
push edi
mov esi, ecx
je 0x40acae
xor eax, eax
jmp 0x40ad6b
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x40ad0f
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x40ad68
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40ad05
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40ad03
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40ad03
push ebx
call edi
cmp eax, 0xffffffff
je 0x40aca7
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00409e4f
jmp 0x40ad68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40ad3b
cmp eax, 0x102
je 0x40aca7
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
jmp 0x40aca7
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
or dword [esi + 0x24], 0xffffffff
push ebx
mov ecx, esi
call fcn.00409e4f
test eax, eax
je 0x40ad68
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret