joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40595f
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x455ef1
call fcn.0043cc79
mov esi, ecx
call fcn.004055fb
test al, al
je 0x40597d
xor eax, eax
jmp 0x405aa4
mov ecx, esi
call fcn.0040572c
xor ebx, ebx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.004057b3
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040301c
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401b37
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x28]
inc edi
dec eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
cmp eax, edi
jle 0x405a89
lea ecx, [esi - 0x10]
call fcn.00401b37
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x467c74
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401881
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040301c
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004019fa
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x405a2d
cmp byte [ebp - 0xd], 0
je 0x405a73
push 0x467c74
lea ecx, [ebp - 0x14]
call fcn.00401881
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0040301c
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004019fa
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401b8a
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x20]
jge 0x405a89
jmp 0x4059d1
cmp dword [ebp - 0x18], 1
jle 0x405a81
lea ecx, [ebp - 0x14]
call fcn.00405446
lea ecx, [edi - 0x10]
call fcn.00401b8a
lea ecx, [esi - 0x10]
call fcn.00401b8a
lea ecx, [ebp - 0x2c]
call fcn.00403277
xor eax, eax
cmp ebx, 0xb7
cmovne eax, ebx
call fcn.0043cc42
ret

Function at 0x405aaa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, edx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405ae6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x405ae6
mov dword [esi], eax
mov bl, 1
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x467a50
call fcn.00404635
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c95
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x455f23
call fcn.0043ccad
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
call fcn.00410386
mov ebx, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x47a4b8]
cmp eax, dword [ecx + 4]
jle 0x405d00
push 0x47a4b8
call fcn.0043c37a
cmp dword [0x47a4b8], 0xffffffff
pop ecx
jne 0x405d00
and dword [ebp - 4], 0
sub esp, 0x10
mov ecx, 0x47a4c0
push 0
push 0xa
call fcn.004101f3
or dword [ebp - 4], 0xffffffff
push 0x47a4b8
call fcn.0043c33b
pop ecx
push ecx
push 0x47a4c0
mov ecx, ebx
call fcn.004103e6
test al, al
je 0x405e03
push edi
call fcn.00405e19
test al, al
je 0x405e03
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.0043dd90
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0043dd90
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x467c78
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.00405e8e
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], 1
call fcn.004109ef
mov eax, dword [0x479eec]
test eax, eax
je 0x405db8
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], 1
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, eax
cmp ecx, 1
sete al
mov byte [esi + 4], al
cmp ecx, 1
je 0x405dda
push edi
mov ecx, esi
call fcn.00405e8e
mov dword [ebp - 4], 2
cmp byte [ebp - 0x428], 0
je 0x405e0f
call fcn.004109ef
mov eax, dword [0x479ee8]
test eax, eax
je 0x405e0f
lea ecx, [ebp - 0x42c]
push ecx
call eax
jmp 0x405e0f
push edi
mov ecx, esi
call fcn.00405e8e
mov byte [esi + 4], 0
mov eax, esi
call fcn.0043cc57
ret 4

Function at 0x405e19
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47806c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.00406043
mov ecx, ebx
mov edi, eax
call fcn.00406043
cmp eax, edi
jae 0x405e62
xor al, al
jmp 0x405e7b
test edi, edi
je 0x405e79
mov ax, word [ebx + esi*2]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x405e5e
inc esi
cmp esi, edi
jb 0x405e66
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c1a9
mov esp, ebp
pop ebp
ret 4
Function at 0x405f77
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x455f53
call fcn.0043cc79
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00405c95
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x406014
push eax
lea ecx, [ebp - 0x10]
call fcn.0040411b
mov esi, dword [ebp - 0x10]
test al, al
jne 0x405fc5
push 8
pop edi
jmp 0x40601c
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406014
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x467c74
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40601c
cmp dword [ebp - 0x20], 0
je 0x40601c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x406006
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40601c
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x40601c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [ebp - 0x28], 0
je 0x40602b
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.0043c1dd
pop ecx
push esi
call fcn.0043c1dd
pop ecx
mov eax, edi
call fcn.0043cc42
ret

Function at 0x40628d
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x409d5d
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x409efa
mov edx, 0x10000000
cmp eax, 0x7c
je 0x409efa
cmp eax, 0x29
jne 0x409d96
cmp dword [esi + 0x10], 0
jne 0x409efa
test dword [esi + 0x50], edx
je 0x409f00
cmp eax, 0x2e
jne 0x409db1
push 5
lea ecx, [esi + 0x24]
call fcn.00409fdb
mov ecx, esi
call fcn.00409d38
jmp 0x409ee4
cmp eax, 0x5c
jne 0x409e06
mov ecx, esi
call fcn.00409d38
test byte [esi + 0x50], 0x80
je 0x409dfa
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x409de2
push 4
lea ecx, [esi + 0x24]
call fcn.00409fdb
mov ecx, esi
call fcn.00409d38
jmp 0x409eeb
cmp eax, 0x42
jne 0x409dfa
push 4
lea ecx, [esi + 0x24]
call fcn.00409fdb
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x409dd6
mov ecx, esi
call fcn.0040a47a
jmp 0x409ee4
cmp eax, 0x5b
jne 0x409e66
mov ecx, esi
call fcn.00409d38
lea ecx, [esi + 0x24]
call fcn.0040ad1d
cmp dword [esi + 0x4c], 0x5e
jne 0x409e2e
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00409d38
test dword [esi + 0x50], 0x20000000
je 0x409e4e
cmp dword [esi + 0x4c], 0x5d
jne 0x409e4e
push 0x5d
lea ecx, [esi + 0x24]
call fcn.0040ad65
mov ecx, esi
call fcn.00409d38
mov ecx, esi
call fcn.0040ab0f
cmp dword [esi + 0x4c], 0x5d
je 0x409da5
push 4
jmp 0x409f02
cmp eax, 0x28
jne 0x409e8a
mov ecx, esi
call fcn.00409d38
mov ecx, esi
call fcn.0040a55b
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x409f00
mov ecx, esi
call fcn.00409d38
jmp 0x409ee0
cmp eax, 0x5e
jne 0x409e96
push 2
jmp 0x409dce
cmp eax, 0x24
jne 0x409ea2
push 3
jmp 0x409dce
cmp eax, 0x2a
je 0x409ef6
cmp eax, 0x2b
je 0x409ef6
cmp eax, 0x3f
je 0x409ef6
cmp eax, 0x7b
je 0x409ef6
cmp eax, 0x7d
jne 0x409ec0
test dword [esi + 0x50], edx
je 0x409ef2
cmp eax, 0x5d
jne 0x409eca
test dword [esi + 0x50], edx
je 0x409e5f
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040a6fa
mov ecx, esi
call fcn.00409d38
mov bl, 1
test bl, bl
je 0x409eeb
mov ecx, esi
call fcn.0040a637
mov cl, 1
jmp 0x409d64
push 6
jmp 0x409f02
push 0xa
jmp 0x409f02
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.004090be
int3

Function at 0x40c695
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [esp + 8], edx
jbe 0x40c6bb
push esi
mov esi, dword [esp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [esp + 0xc]
jb 0x40c6a7
pop esi
mov eax, ecx
ret
Function at 0x40e002
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x40e04e
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x40e079
shr ecx, 2
test cl, 1
je 0x40e081
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e0b1
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
cmp eax, 0x20
jbe 0x40e0b1
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e226
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x47806c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor ebp, ebp
push 0x30
pop esi
push esi
mov ebx, ecx
push ebp
push ebx
call fcn.0043dd90
push 0x110
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x114
push ebp
push eax
call fcn.0043dd90
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e285
cmp dword [esp + 0x14], 6
jae 0x40e288
push 0x2c
pop esi
mov dword [ebx], esi
mov esi, dword [esp + 0x138]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x40e2a9
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x478fcc]
mov eax, ebx
pop edi
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x138]
pop esi
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x11c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c1a9
add esp, 0x118
ret 0x18
Function at 0x40ebb3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x47806c]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x4568ee
call fcn.0043cc79
mov esi, 0x105
lea eax, [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ec45
cmp eax, esi
jae 0x40ec45
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402eb5
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x467c74
mov dword [ebp - 4], esi
call fcn.00401881
push str.Kernel32.dll
lea ecx, [ebp - 0x10]
call fcn.00401881
mov edi, dword [ebp - 0x10]
push 0x5c
push edi
call fcn.0043e635
pop ecx
pop ecx
test eax, eax
je 0x40ec36
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401b8a
mov eax, esi
jmp 0x40ec47
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 + 0x20c]
xor ecx, ebp
call fcn.0043c1a9
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x40f385
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea esi, [eax + 1]
push esi
call fcn.0040199d
push esi
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00404f44
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40f7d2
Capabilities:
Delete service

Disassembly:
push 0x14
mov eax, 0x456a67
call fcn.0043cc79
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x10000
push 0xf003f
mov dword [ebp - 0x10], ebx
call fcn.0040ffc5
mov dword [ebp - 0x20], 0x4689e0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x40f904
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40f895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x40f907
call fcn.00411415
test byte [eax + 0x20], 8
je 0x40f907
lea ecx, [ebp - 0x14]
call fcn.0041108a
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0041108a
mov edi, eax
push str.DeleteService_failed_error_code:
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401881
push 0x467a40
mov ecx, edi
call fcn.00401881
push ecx
push ebx
mov ecx, esi
call fcn.004111b0
push eax
push ecx
push edi
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp - 0x14]
jmp 0x40f8fa
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x40f907
call fcn.00411415
test byte [eax + 0x20], 8
je 0x40f907
lea ecx, [ebp - 0x18]
call fcn.0041108a
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.0041108a
mov esi, eax
push str.DeleteService_SUCCESS
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00401881
push 0x467a40
mov ecx, esi
call fcn.00401881
push ecx
push edi
push ecx
push esi
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
jmp 0x40f907
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x4689e0
call fcn.004101ab
mov eax, ebx
call fcn.0043cc42
ret

Function at 0x40ff64
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x14
push SysReAllocString
mov dword [esp + 0x10], esi
call fcn.0040ffc5
mov dword [esp + 0xc], eax
test eax, eax
je 0x40ffa7
push dword [ebp + 0x10]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40ffab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40ffab
mov esi, dword [esp + 4]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x4689e0
call fcn.004101ab
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4100fc
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x47806c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41013e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41018a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x410182
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4101a3
cmp dword [ebp - 0x24], esi
je 0x410187
call edi
sub eax, dword [ebp - 0x30]
cmp eax, 0x7530
ja 0x41019c
cmp dword [ebp - 0x24], esi
jne 0x41014f
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c1a9
mov esp, ebp
pop ebp
ret 8
mov eax, 0x102
jmp 0x410189
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410189
Function at 0x410417
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x454
mov eax, 0x456c4d
call fcn.0043ccad
mov ebx, 0x467a1c
xor edi, edi
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], edi
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], edi
call fcn.0040423b
lea eax, [ebp - 0x444]
push eax
push 0x20119
push edi
push 0x4689e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4105e1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], edi
push eax
push edi
push edi
push str.CurrentMajorVersionNumber
push dword [ebp - 0x444]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x458], 4
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
push edi
push edi
push str.CurrentMinorVersionNumber
push dword [ebp - 0x444]
call esi
mov ecx, dword [ebp - 0x44c]
test ecx, ecx
jne 0x41051f
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push str.CurrentVersion
push dword [ebp - 0x444]
call esi
lea ecx, [ebp - 0x30]
call fcn.00406043
cmp eax, 3
jne 0x410519
movzx ecx, word [ebp - 0x30]
movzx eax, word [ebp - 0x2c]
sub ecx, 0x30
sub eax, 0x30
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x450], eax
jmp 0x41051f
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x450]
mov dword [0x47a044], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [0x47a040], ecx
push eax
push edi
push edi
push str.CurrentBuildNumber
push dword [ebp - 0x444]
mov dword [ebp - 0x45c], 0x208
call esi
test eax, eax
jne 0x41057a
or dword [ebp - 0x454], 0xffffffff
lea edx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004112af
pop ecx
mov dword [0x47a048], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push str.CSDVersion
push dword [ebp - 0x444]
call esi
test eax, eax
jne 0x4105d2
push ecx
lea edx, [ebp - 0x238]
mov ecx, 0x47a050
call fcn.00406053
pop ecx
lea ecx, [ebp - 0x238]
call fcn.00406043
movzx eax, word [ebp + eax*2 - 0x23a]
sub eax, 0x30
mov dword [0x47a04c], eax
call fcn.0040f248
mov byte [0x47a155], al
call fcn.004105f8
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], ebx
call fcn.0040423b
call fcn.0043cc57
ret
Function at 0x410f43
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x410faf
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xfeff
push eax
push 2
lea eax, [ebp - 4]
mov dword [ebp + 0xc], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410faf
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410faf
mov bl, 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x467a50
call fcn.00404635
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410fc8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x456d9f
call fcn.0043cc79
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], 0x467a50
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
cmp ebx, 0xffffffff
je 0x411073
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x411073
mov dword [ebp + 8], esi
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040411b
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41106c
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.0040332b
cmp eax, 4
jne 0x411058
lea eax, [edi - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x411061
cmp eax, 5
jne 0x41106c
shr edi, 1
push edi
push esi
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402e18
push esi
call fcn.0043c1dd
pop ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x467a50
call fcn.00404635
call fcn.0043cc42
ret 4
Function at 0x4114cb
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x456e7d
call fcn.0043cc79
mov eax, ecx
mov dword [ebp - 0x28], eax
push eax
lea ecx, [ebp - 0x30]
call fcn.004119fe
and dword [ebp - 4], 0
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411691
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.0041108a
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
mov esi, dword [esi]
push 0x469248
mov ebx, dword [ecx]
mov ecx, edi
call fcn.00401881
push esi
mov ecx, edi
call fcn.0041109e
mov esi, eax
push str.__PID
mov ecx, esi
call fcn.00401881
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.004111b0
mov esi, eax
push str.Thread
mov ecx, esi
call fcn.00401881
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.004111b0
mov esi, eax
push 0x469274
mov ecx, esi
call fcn.00401881
push ebx
mov ecx, esi
call fcn.0041109e
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401b37
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402825
mov eax, dword [ebp - 0x14]
push 0x78
pop ecx
push 1
sub ecx, dword [eax - 0xc]
pop ebx
test ecx, ecx
cmovle ecx, ebx
push ecx
push 0x20
lea ecx, [ebp - 0x18]
call fcn.004030e9
push 0x46927c
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
call fcn.00411981
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004019fa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004019fa
push 0x4691ec
lea ecx, [ebp - 0x14]
call fcn.00401881
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.00401b8a
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.0041170c
cmp dword [edi + 0x30], 0
je 0x41166c
push 2
push 0
push 0
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00411891
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov al, byte [ebp - 0x2c]
test al, al
jne 0x411689
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x2c]
xchg byte [eax], bl
call fcn.0043cc42
ret 0x10