joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4294b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov al, byte [0x433013]
mov byte [ebp - 0x110], al
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.004097d0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.00425ed0
add esp, 4
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004013a0
push str.TempThirdParty
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004013e0
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004014a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x429566
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004014a0
push eax
push str.Can_not_find_path:__s__return
call fcn.0042a0d0
add esp, 8
xor al, al
jmp 0x4295bc
push 0x436320
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004013e0
mov ecx, dword [ebp - 0x114]
add ecx, 0xc8
call fcn.004014a0
push eax
call fcn.00427280
add esp, 4
test eax, eax
jne 0x4295ad
push str.Delete_ThirdParty_temp_file_err
call fcn.0042a070
add esp, 4
xor al, al
jmp 0x4295bc
push str.Delete_ThirdParty_temp_file_sucessed
call fcn.0042a0d0
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret

Function at 0x4295d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd0c
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
mov ecx, dword [ebp + 8]
call fcn.00403bd0
mov dword [ebp - 0x128], 0
push 0x100
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004097d0
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], edx
jmp 0x42966a
mov eax, dword [ebp - 0x14]
push eax
call fcn.00409690
add esp, 4
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4296d2
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x148]
call fcn.004012e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 2
jne 0x4296be
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401360
jmp 0x429654
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 4
Function at 0x429dc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 1
push 0x433067
mov ecx, dword [ebp + 8]
call fcn.004013a0
mov dword [ebp - 4], 0x104
mov eax, dword [ebp - 4]
push eax
call fcn.0040797a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x429e43
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00407fdf
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.0040797a
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004013a0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407fdf
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x42a130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x42a1f5
push 0x438a60
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x110]
push edx
call fcn.00425f90
add esp, 4
movzx eax, al
test eax, eax
jne 0x42a195
xor al, al
jmp 0x42a204
push 0x438a70
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x110]
push edx
call fcn.00425f90
add esp, 4
movzx eax, al
test eax, eax
jne 0x42a1c1
xor al, al
jmp 0x42a204
mov ecx, dword [ebp - 0x114]
add ecx, 0x38
call fcn.00403b30
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x114]
add ecx, 0x38
call fcn.00401750
push str.GetPCFolderPath_successfully.
call fcn.0042a0d0
add esp, 4
mov al, 1
jmp 0x42a204
push str.GetPCFolderPath_failed.
call fcn.0042a070
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret
Function at 0x42a6f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e5c9
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x168], ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 0x128
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004012e0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x15c], 0
je 0x42a7d2
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00405450
add esp, 8
movzx edx, al
test edx, edx
je 0x42a7b7
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x160], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x160]
jmp 0x42a7fe
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x15c], eax
jmp 0x42a766
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 4

Function at 0x42a820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], ecx
push 0x80
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.004097d0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x80
lea edx, [ebp - 0x88]
push edx
push 0x437b4c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x88]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004013a0
mov eax, dword [ebp + 0x14]
push eax
push 0x437b64
call fcn.004031b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42a89d
xor eax, eax
jmp 0x42a8a2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42a9b0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42a9d6
xor eax, eax
jmp 0x42aa39
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x42aa09
push 0x438648
call fcn.0042a070
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42aa39
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x42aa19
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x42aa09
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x42b410
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], ecx
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x42b45c
mov edx, dword [ebp + 0xc]
push edx
push str.Find_file__s_failed.
call fcn.0042a0d0
add esp, 8
jmp 0x42b498
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
and edx, 1
je 0x42b498
mov eax, dword [ebp - 0x150]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42b4d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x438334
call fcn.0042a070
add esp, 0xc
xor eax, eax
jmp 0x42b4ea
mov eax, dword [ebp + 8]
push eax
push 0x438350
call fcn.0042a0d0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 8
Function at 0x42b500
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 0x110]
push eax
call fcn.00425ed0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x42b543
push 0x437f04
call fcn.0042a070
add esp, 4
xor eax, eax
jmp 0x42b6c1
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x42b591
cmp dword [ebp - 0x118], 0x50
je 0x42b591
cmp dword [ebp - 0x118], 0xb7
jne 0x42b682
lea ecx, [ebp - 0x110]
push ecx
push str.INF:_Create_Temp_Dir_Name:__s__SUC...
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x350
call fcn.004013a0
push str.SysConfig
lea eax, [ebp - 0x110]
push eax
call fcn.00409b60
add esp, 8
push 0x437f50
lea ecx, [ebp - 0x110]
push ecx
call fcn.00409b60
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x42b622
cmp dword [ebp - 0x118], 0x50
je 0x42b622
cmp dword [ebp - 0x118], 0xb7
jne 0x42b657
lea eax, [ebp - 0x110]
push eax
push str._Create_Temp_Dir_Name:__s__SUC...
call fcn.0042a0d0
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x36c
call fcn.004013a0
mov eax, 1
jmp 0x42b6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x437f78
call fcn.0042a070
add esp, 0xc
xor eax, eax
jmp 0x42b6c1
push 0x433046
mov ecx, dword [ebp - 0x11c]
add ecx, 0x350
call fcn.004013a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
push str.ERR:_Failed_to_create_dir__s...Error_Code:_d
call fcn.0042a070
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret
Function at 0xc3a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc3a200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc3a0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3a0c2
add dl, dl
jne 0xc3a0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3a134
xor eax, eax
add dl, dl
jne 0xc3a0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3a1d5
add dl, dl
jne 0xc3a0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3a108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3a113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3a11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc3a12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc3a0cd
mov eax, 1
add dl, dl
jne 0xc3a142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3a14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3a139
sub eax, ebx
mov ebx, 1
jne 0xc3a180
mov ecx, 1
add dl, dl
jne 0xc3a166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3a171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3a15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3a0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc3a197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3a1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3a18e
cmp eax, 0x7d00
jae 0xc3a1c5
cmp eax, 0x500
jb 0xc3a1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3a0cd
cmp eax, 0x7f
ja 0xc3a1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3a0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc3a1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc3a0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x408d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 9], 1
test edi, edi
je 0x408e51
push dword [ebp + 0x10]
call fcn.004088b0
test al, al
jne 0x408e51
cmp dword [ebp + 0x14], esi
je 0x408e51
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c974
cmp dword [ebp - 0x14], 1
jne 0x40c9c5
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408e45
shr ebx, 1
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409842
mov esi, eax
add esp, 4
test esi, esi
je 0x408e4d
xor eax, eax
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c9cd
cmp ax, word [esi]
je 0x40ca27
mov al, byte [ebp - 9]
pop ebx
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [edi], esi
pop edi
pop esi
call fcn.00409c10
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
jmp 0x40ca27
xor al, al
jmp 0x408e2d
xor al, al
jmp 0x408e2e
lea edx, [ebp - 8]
mov dword [ebp - 8], esi
mov ecx, eax
call fcn.004133bb
test eax, eax
je 0x408e4d
push dword [ebp - 8]
mov eax, dword [0x4157a0]
push ebx
push dword [ebp + 0x10]
mov edi, dword [eax]
push 0x16
push 0
push eax
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x41626c]
call edi
mov eax, dword [ebp - 8]
add esp, 0x18
test eax, eax
je 0x408e4d
push eax
call sub.msvcrt.dll_free
add esp, 4
jmp 0x408e4d
push ebx
push dword [ebp + 0x10]
push 0x18
jmp 0x40ca2d
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
mov ecx, eax
call fcn.004133bb
test eax, eax
je 0x40ca15
push dword [ebp - 8]
mov eax, dword [0x4157a0]
push ebx
push dword [ebp + 0x10]
mov edi, dword [eax]
push 0x16
push 0
push eax
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x41626c]
call edi
mov eax, dword [ebp - 8]
add esp, 0x18
test eax, eax
je 0x40ca15
push eax
call sub.msvcrt.dll_free
add esp, 4
push esi
call sub.msvcrt.dll_free
add esp, 4
xor esi, esi
xor al, al
jmp 0x408e2d
push ebx
push dword [ebp + 0x10]
push 0xe
mov eax, dword [0x4157a0]
push 0
push eax
mov edi, dword [eax]
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x41626c]
call edi
add esp, 0x14
jmp 0x408e4d
Function at 0x409c00
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x413940
call fcn.0040a2ec
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x415784
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x409a7d
cmp eax, esi
jne 0x409a70
xor esi, esi
inc esi
mov edi, esi
jmp 0x409a80
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409a54
xor esi, esi
inc esi
cmp dword [0x415788], esi
jne 0x409a92
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x409acc
cmp dword [0x415788], ebx
jne 0x409ac6
mov dword [0x415788], esi
push 0x401030
push 0x401024
call fcn.00409bac
pop ecx
pop ecx
test eax, eax
je 0x409acc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x409ba1
mov dword [0x41536c], esi
cmp dword [0x415788], esi
jne 0x409aef
push 0x401020
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x415788], 2
test edi, edi
jne 0x409afc
xor eax, eax
mov ecx, 0x415784
xchg dword [ecx], eax
cmp dword [0x415794], 0
je 0x409b28
push 0x415794
call fcn.0040a110
pop ecx
test eax, eax
je 0x409b28
push ebx
push 2
push ebx
mov esi, dword [0x415794]
mov ecx, esi
call dword [0x41626c]
call esi
push dword [0x415378]
push dword [0x415374]
push dword [0x415370]
call fcn.004084e0
add esp, 0xc
mov dword [0x415368], eax
cmp dword [0x415380], 0
jne 0x409b86
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x41536c], 0
jne 0x409b9a
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x415368]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a334
ret
call fcn.0040a218
jmp 0x409a38

Function at 0x409fff
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x413980
call fcn.0040a3ac
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a05f
cmp eax, 0xffffffff
je 0x40a05f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40a058
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40a058
cmp edx, 0x10000000
jae 0x40a058
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40a055
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040a3f1
ret 4

Function at 0x40a0c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40a0fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40a0f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40a100
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40a0e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a1e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40a1f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40a211
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40e130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x40e1f4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4159cc]
push edi
mov edi, edx
test edi, edi
je 0x40e243
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40e242
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40e236
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40e242
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed4a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x4159bc]
jne 0x40ede6
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x4024b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ede5
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x402598
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40ede5
push 3
push dword [edi*8 + 0x4025a8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40edd7
inc edi
cmp edi, 0x1c
jb 0x40edb5
jmp 0x40ede5
mov ax, word [edi*8 + 0x4025ac]
mov word [0x4159bc], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x4159bc]
xor ecx, ebp
call fcn.00409c10
mov esp, ebp
pop ebp
ret
Function at 0x410dfe
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x40bcc3
call fcn.0040b3f8
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x410f09
cmp byte [ebx + 0x42], 0
je 0x410f09
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x41626c]
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
jne 0x410e46
xor al, al
jmp 0x410f0b
push ecx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040fe8e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x410e66
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x3c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x44]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x41626c]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x410e9c
sub eax, 1
je 0x410ea0
dec eax
sub eax, 1
je 0x410ef7
xor bl, bl
jmp 0x410ef9
mov byte [ebx + 0x42], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x410eb0
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x410ed9
cmp eax, 0x10
jae 0x410ebf
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x410e98
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x42], 0
je 0x410ef7
test esi, esi
jne 0x410e5a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004113f5
jmp 0x410e54
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004112fa
mov al, bl
jmp 0x410f0b
mov al, 1
call fcn.0040b398
ret