joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447780
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4477b3
push esi
call fcn.0044a870
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4477ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447839
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447822
mov eax, dword [esi + 8]
test eax, eax
je 0x4477d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44781e
cmp eax, 2
je 0x447822
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4477ca
cmp eax, 3
je 0x4477fd
cmp eax, 1
jne 0x4477ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4477ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4477ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447860
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447848
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447860
add esp, 4
pop esi
ret

Function at 0x4556e7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d3e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.0047d2e2
mov eax, dword [0x53ce84]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x522a64
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x455744
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0047e19a
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x460930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x460aed
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x460a66
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x460a66
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x460a4d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x460a4d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.00461ba0
mov ebp, eax
test ebp, ebp
je 0x460a45
push ebp
mov ecx, esi
call fcn.00463090
test eax, eax
je 0x460a45
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x460a45
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x460a06
xor eax, eax
jmp 0x460a0e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.00463a30
inc ebx
xor ebp, ebp
jmp 0x460997
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x460970
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00461eb0
test eax, eax
pop ebx
je 0x460aed
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00461ba0
mov edi, eax
cmp edi, ebp
je 0x460aed
push edi
mov ecx, esi
call fcn.00463090
test eax, eax
je 0x460aed
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004620f0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.00462160
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.00463a30
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4695f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48e4c1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x46962d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.0048624c
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.00485594
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.004624b0
lea ecx, [esp + 8]
call fcn.004864bb
lea ecx, [esp + 0x30]
call fcn.004856f8
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.00485594
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.00462950
lea ecx, [esp + 0x74]
call fcn.004856f8
lea ecx, [esp + 8]
call fcn.004864bc
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.004600c0
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.004623c0
mov ecx, esi
call fcn.00462fd0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.004623c0
mov ecx, esi
call fcn.00462fd0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.004623c0
mov ecx, esi
call fcn.00462fd0
mov ecx, dword [edi + 0x5c]
call fcn.0045f8a0
push eax
mov ecx, esi
call fcn.0045f8b0
mov ecx, dword [edi + 0x5c]
call fcn.0045fe60
push eax
mov ecx, esi
call fcn.0045fe00
mov ecx, dword [edi + 0x5c]
call fcn.0045ff80
push eax
mov ecx, esi
call fcn.0045ff30
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0045f180
push eax
mov ecx, esi
call fcn.0045f190
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.00485670
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.00485670
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004862d5
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x46ae90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48e6e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0047c6f4
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0047c6f4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0046b9b0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x46ba00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48e7c0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00488244
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x46ba33
xor al, al
jmp 0x46bb5f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x46ba55
xor al, al
jmp 0x46bb5f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46ba68
xor al, al
jmp 0x46bb5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46ba7c
xor al, al
jmp 0x46bb5f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0047c7a4
test eax, eax
jne 0x46bab0
xor al, al
jmp 0x46bb5f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x523aa4
mov dword [esp + 0x20], ebp
call fcn.00488244
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00485249
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004852a0
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x46bb44
mov ax, word [ebx]
test ax, ax
je 0x46bb36
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0046bb80
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x46bb1a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004852a0
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x46c0c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004868f9
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x46c106
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0046ddc8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x53cdec
push ecx
call fcn.0046f3c1
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x48080f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x480847
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047e8b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047e88c
jmp 0x480853
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482009
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48204b
call fcn.00488244
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48204b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482042
xor eax, eax
jmp 0x482053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482059
pop edi
pop esi
pop ebx
ret 4

Function at 0x488774
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 0x4887a2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4887c0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004886da
jmp 0x4887c0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4887c0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004886da
test edi, edi
mov eax, edi
jne 0x4887aa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b6b95
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004b6d45
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4b6c93
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4b6c36
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4b6c79
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4b6c4d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4b6c68
test al, 0x40
je 0x4b6c5f
mov ecx, dword [edi + 0x20]
jmp 0x4b6c66
test al, 0x80
je 0x4b6c79
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4b6c79
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4b6c05
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40188b
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4211a4]
push ebx
xor eax, ebp
push esi
push edi
mov dword [ebp + 0x194], eax
call fcn.004016fc
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 0x401900
lea eax, [esi + esi]
push eax
call fcn.0041118c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x401907
xor eax, eax
jmp 0x401993
push edi
push esi
push ebx
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov esi, str.FileVersion_:_4.9.3.1281___FileVersionMS_:_0x00040009__FileVersionLS_:_0x00030501__ProductVersionMS_:_0x00040009__ProductVersionLS_:_0x00030501__Signature_:_0xfeef04bd__FileFlags_:_0x00000000__FileFlagsMask_:_0x0000003f__FileOS_:_0x00000004__FileType_:_0x00000001__FileSubType_:_0x00000000__FileDateMS_:_0x00000000__FileDateLS_:_0x00000000__
je 0x40197f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x414818
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40197f
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 dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x4c
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ax, word [str.FileVersion_:_4.9.3.1281___FileVersionMS_:_0x00040009__FileVersionLS_:_0x00030501__ProductVersionMS_:_0x00040009__ProductVersionLS_:_0x00030501__Signature_:_0xfeef04bd__FileFlags_:_0x00000000__FileFlagsMask_:_0x0000003f__FileOS_:_0x00000004__FileType_:_0x00000001__FileSubType_:_0x00000000__FileDateMS_:_0x00000000__FileDateLS_:_0x00000000__]
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.004113e5
add ebp, 0x198
leave
ret
Function at 0x401b2a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4211a4]
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 0x401b66
xor eax, eax
jmp 0x401bba
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
push esi
je 0x401bb6
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x401bae
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR71.dll_memcpy
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 0x401b9e
test al, 0x10
jne 0x401bae
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401bd3
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x401b74
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x84]
pop edi
xor ecx, ebp
pop ebx
call fcn.004113e5
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x401bb9

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

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4211a4]
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 0x401c17
xor eax, eax
jmp 0x401c7f
lea edi, [edx + 2]
mov ax, word [edi]
test ax, ax
push ebx
push esi
je 0x401c7a
mov ebx, edi
sub ebx, edx
cmp ax, 0x5c
jne 0x401c6e
mov esi, ebx
sar esi, 1
shl esi, 1
push esi
push edx
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCR71.dll_memcpy
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 0x401c5b
test al, 0x10
jne 0x401c6b
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401c97
mov edx, dword [ebp - 0x80]
inc edi
inc edi
mov ax, word [edi]
inc ebx
inc ebx
test ax, ax
jne 0x401c28
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004113e5
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x401c7d
Function at 0x406041
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
xor ebx, ebx
cmp dword [0x421b88], ebx
push edi
mov esi, ecx
je 0x406058
xor eax, eax
jmp 0x406115
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x4060b9
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 0x406112
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, 0xffffffff
jne 0x4060af
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x4060ad
push ebp
call edi
cmp eax, 0xffffffff
jne 0x4060ad
push ebx
call edi
cmp eax, 0xffffffff
je 0x406051
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0040516e
jmp 0x406112
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4060e5
cmp eax, 0x102
je 0x406051
push 0x11f
push ebx
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
jmp 0x406051
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
or dword [esi + 0x24], 0xffffffff
push ebx
mov ecx, esi
call fcn.0040516e
test eax, eax
je 0x406112
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
Function at 0x409d03
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 0x409d61
cmp dword [ebp + 0x10], 1
je 0x409d3f
cmp dword [ebp + 0x10], 2
jne 0x409d56
test edi, edi
mov eax, dword [ebp - 4]
je 0x409d5b
test al, 1
jne 0x409d56
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x409d5b
push 0xd
pop eax
jmp 0x409d61
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x40cf80
Capabilities:
Create thread

Disassembly:
mov eax, 0x412b9e
call fcn.004114d0
sub esp, 0x20
push ebx
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov eax, str.void___cdecl_SendHttpStat_const_wchar_t__const_wchar_t__const_wchar_t__
push eax
push 0x4187b4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406666
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
je 0x40cff6
cmp dword [ebp + 0xc], ebx
je 0x40cff6
push 0xc
call fcn.00411142
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x40cfde
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409f8d
jmp 0x40cfe0
xor eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x40cda2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret