joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eaf9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x4292bc]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40eabc
inc dword [esp]
jmp 0x40eacc
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x4292bc]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x40eb00
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x429288]
test eax, eax
jne 0x40ebb6
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.InternetOpenA
push eax
mov dword [0x429288], eax
call esi
mov dword [0x429284], eax
mov eax, dword [0x429288]
push str.InternetCloseHandle
push eax
call esi
mov ecx, dword [0x429288]
push str.InternetOpenUrlA
push ecx
mov dword [0x429280], eax
call esi
mov edx, dword [0x429288]
push str.InternetQueryDataAvailable
push edx
mov dword [0x42927c], eax
call esi
mov dword [0x429278], eax
mov eax, dword [0x429288]
push str.InternetReadFile
push eax
call esi
mov ecx, dword [0x429284]
mov dword [0x429274], eax
test ecx, ecx
pop esi
je 0x40eba8
mov ecx, dword [0x429280]
test ecx, ecx
je 0x40eba8
mov ecx, dword [0x42927c]
test ecx, ecx
je 0x40eba8
mov ecx, dword [0x429278]
test ecx, ecx
je 0x40eba8
test eax, eax
jne 0x40ebad
call fcn.0040ebf0
mov eax, dword [0x429288]
test eax, eax
je 0x40ebdb
mov eax, dword [0x429270]
test eax, eax
jne 0x40ebe0
push eax
push eax
push eax
push eax
push eax
push 7
call fcn.00403700
add esp, 8
push eax
call dword [0x429284]
mov dword [0x429270], eax
ret
mov eax, dword [0x429270]
ret
Function at 0x40ec30
Capabilities:
Copy file
Write file on windows

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
push 7
xor ebp, ebp
push str.file:__
push esi
mov dword [esp + 0x30], ebp
call fcn.00419660
add esp, 0xc
test eax, eax
jne 0x40ecc8
lea eax, [esi + 7]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ec64
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40ec91
cmp byte [esp + eax + 0x30], 0x2f
jne 0x40ec8c
mov byte [esp + eax + 0x30], 0x5c
inc eax
cmp eax, ecx
jl 0x40ec80
lea eax, [esp + 0x30]
push 0x424710
push eax
call fcn.00419490
add esp, 8
test eax, eax
je 0x40ee5e
mov ecx, dword [esp + 0x138]
push 0
dec eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
call fcn.0040eb00
mov edi, eax
test edi, edi
je 0x40ee5e
push 0x1000
call fcn.004190e0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40ee5e
push 0
push 0
push 0
push 0
push esi
push edi
call dword [0x42927c]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40ee55
mov edx, dword [esp + 0x138]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40ee4e
mov esi, dword [esp + 0x144]
mov ebx, dword [esp + 0x148]
xor edi, edi
mov ebp, esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
call dword [0x429278]
test eax, eax
je 0x40ee1e
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40ee1e
cmp eax, 0x1000
jbe 0x40ed87
mov eax, 0x1000
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [0x429274]
cmp eax, 1
jne 0x40edf5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40edf5
mov ecx, dword [esp + 0x20]
add edi, ecx
cmp ebx, esi
je 0x40edfd
mov ecx, dword [esp + 0x140]
test ecx, ecx
jle 0x40edfd
mov eax, ebx
xor edx, edx
sub eax, esi
imul eax, edi
div ecx
add eax, esi
cmp eax, ebp
je 0x40edfd
push eax
mov ebp, eax
call fcn.00401e60
add esp, 4
jmp 0x40edfd
mov dword [esp + 0x10], 1
push 0
call fcn.00404b90
mov eax, dword [0x4296f4]
add esp, 4
test eax, eax
jne 0x40ee37
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ed53
jmp 0x40ee37
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40ee37
push ebx
mov dword [esp + 0x28], 1
call fcn.00401e60
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push esi
call dword [0x429280]
push ebx
call fcn.00419243
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x40ee70
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x429688]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40ef53
push 0x429688
push 0x104
call fcn.00402120
add esp, 8
test eax, eax
jne 0x40eebb
pop edi
pop esi
pop ebp
mov dword [0x429770], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov ebx, 1
mov eax, dword [0x429688]
push eax
push 0x104
call ebp
mov ecx, dword [0x429688]
push ecx
call fcn.00402070
mov edx, dword [0x429688]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.ictmp_d
push ecx
call esi
mov edx, dword [0x429688]
push edx
call fcn.004192d8
add esp, 0x14
test eax, eax
jne 0x40ef1a
inc ebx
cmp ebx, 0x3e7
jl 0x40eec6
jmp 0x40ef2c
mov eax, dword [0x429688]
push eax
call fcn.004192ac
add esp, 4
test eax, eax
je 0x40ef53
mov ecx, dword [0x429688]
mov dword [0x429770], 0x11
push ecx
call fcn.0040a2c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x429688]
push edx
call fcn.00402070
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x429688]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 6]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x429688]
push eax
call fcn.004020b0
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004010a0
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x40f04e
mov eax, dword [0x429674]
mov edx, dword [ebx + 6]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0xa]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040ec30
add esp, 0x24
test eax, eax
je 0x40f027
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004010a0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40f04e
lea edx, [esp + 0x10]
mov dword [0x429770], 0x10
push edx
call fcn.0040a2c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x429770], 0x10
push eax
call fcn.0040a2c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401e60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40f070
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x429688]
test eax, eax
je 0x40f10e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x40f100
push esi
push 1
push 0x118
call fcn.00419192
mov esi, eax
add esp, 8
test esi, esi
je 0x40f0e9
push edi
push esi
push str..bin
call fcn.00419bc2
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40f0df
test byte [esi], 0x10
jne 0x40f0c8
lea eax, [esi + 0x14]
push eax
call fcn.00419510
add esp, 4
push esi
push edi
call fcn.00419c8c
add esp, 8
test eax, eax
je 0x40f0b7
push edi
call fcn.00419d51
add esp, 4
push esi
call fcn.00419243
add esp, 4
pop edi
push 0x424730
call ebx
mov ecx, dword [0x429688]
push ecx
call fcn.00419b98
add esp, 4
pop esi
push 0x429688
call fcn.00402160
add esp, 4
pop ebx
ret

Function at 0x40f190
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.00402120
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f1b5
push 0x5c
push ebx
call fcn.00418f90
add esp, 8
test eax, eax
je 0x40f1d1
inc eax
jmp 0x40f1d3
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40f1dd
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x40f222
mov dword [0x429770], 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x429760]
mov dword [0x429774], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40f216
jmp 0x40f24d
push 2
push esi
mov ebp, 1
call fcn.00418f3d
add esp, 8
test eax, eax
je 0x40f24d
cmp dword [0x4297a4], 0xd
jne 0x40f24d
push 0x180
push esi
call fcn.00418dfc
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.00402160
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x411420
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x411440
push 0x180
push esi
call fcn.00418dfc
add esp, 8
mov eax, dword [0x4296fc]
test eax, eax
je 0x41148b
test esi, esi
jne 0x41146c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x4114be
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
je 0x411520
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x424750
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.004010a0
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x411638
push ebx
push ebp
call fcn.00401220
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.004020e0
add esp, 0xc
test eax, eax
je 0x41162e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401120
add esp, 0xc
test eax, eax
jne 0x411621
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x411621
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x4115f0
cmp byte [edx + 1], 0x79
jne 0x4115f0
cmp byte [edx + 2], 0x7a
jne 0x4115f0
cmp byte [edx + 3], 0x3d
jne 0x4115f0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4115fb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x4115b4
jmp 0x411621
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.004011c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401160
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402160
add esp, 4
push ebp
call fcn.00401320
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x412af0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [0x4292b8]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov byte [eax], 0
push edi
mov eax, dword [esi + 0x20]
xor edi, edi
test eax, eax
je 0x412b36
push str.parent
push eax
call fcn.00418d70
add esp, 8
test eax, eax
je 0x412b31
mov ecx, dword [esi + 0x20]
mov edx, dword [0x42975c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x412b25
jmp 0x412b36
mov edi, 1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x412ba1
mov ecx, dword [esi + 0x28]
cmp ecx, 0x10
jb 0x412b4d
mov ecx, dword [0x424048]
jmp 0x412b54
mov ecx, dword [ecx*4 + 0x424044]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412ba1
mov ecx, dword [0x4292b8]
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x4292b8]
cmp byte [edx], 0
jne 0x412c11
mov eax, dword [esi + 0x38]
test eax, eax
je 0x412c08
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x412c08
mov eax, dword [esi + 0x40]
test eax, eax
je 0x412c08
mov ecx, dword [0x42975c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x412bc7
mov eax, dword [esi + 0x38]
mov ecx, dword [0x42975c]
mov edx, dword [0x4292b8]
push eax
mov eax, dword [esi + 0x40]
push 0x104
push ecx
mov ecx, dword [esi + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov edx, dword [0x4292b8]
test eax, eax
jne 0x412c08
mov byte [edx], al
mov edx, dword [0x4292b8]
cmp byte [edx], 0
je 0x412cc3
push edx
call fcn.004192d8
add esp, 4
test eax, eax
je 0x412c7a
mov eax, dword [0x4292b8]
push 0x5c
push eax
call fcn.00418f90
mov esi, eax
add esp, 8
test esi, esi
je 0x412c71
lea ecx, [esi + 1]
push 0x2e
push ecx
call fcn.00418fd0
add esp, 8
test eax, eax
je 0x412c66
mov byte [esi], 0
mov edx, dword [0x4292b8]
push edx
call fcn.004192d8
add esp, 4
test eax, eax
je 0x412c7a
mov eax, dword [0x4292b8]
mov byte [eax], 0
jmp 0x412c7a
mov ecx, dword [0x4292b8]
mov byte [ecx], 0
jmp 0x412c7a
mov edx, dword [0x4292b8]
mov byte [edx], 0
mov eax, dword [0x4292b8]
cmp byte [eax], 0
je 0x412cc3
test edi, edi
je 0x412c9a
push 0x5c
push eax
call fcn.00418f90
add esp, 8
test eax, eax
je 0x412c9a
mov byte [eax], 0
mov ecx, dword [0x4292b8]
mov edx, dword [0x42975c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x412ca6
mov eax, dword [0x42975c]
cmp byte [eax], 0
je 0x412cc8
push eax
call fcn.00412ce0
add esp, 4
mov eax, dword [0x42975c]
push 0x104
push eax
push eax
call fcn.0040c440
add esp, 0xc
pop edi
pop esi
add esp, 8
ret
Function at 0x418dfc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418e27
test byte [esp + 8], 0x80
je 0x418e16
and al, 0xfe
jmp 0x418e18
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x418e38
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0041a29a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x418f3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418f5d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0041a29a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x418f7e
test byte [esp + 8], 2
je 0x418f7e
mov dword [0x4297a4], 0xd
mov dword [0x4297a8], 5
jmp 0x418f59
xor eax, eax
ret

Function at 0x41d8b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428dd0
cmp edx, dword [eax]
je 0x41d8d7
add eax, 8
inc ecx
cmp eax, 0x428e60
jl 0x41d8c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428dd0]
jne 0x41da05
mov eax, dword [0x429800]
cmp eax, 1
je 0x41d9df
test eax, eax
jne 0x41d908
cmp dword [0x426848], 1
je 0x41d9df
cmp edx, 0xfc
je 0x41da05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41d93f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041cf60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d982
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041cf60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42443c
push edi
call fcn.00419560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c270
lea eax, [ebp - 0xa0]
push 0x421bac
push eax
call fcn.0041c270
push dword [esi + 0x428dd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f215
add esp, 0x2c
pop edi
jmp 0x41da05
lea eax, [ebp + 8]
lea esi, [esi + 0x428dd4]
push 0
push eax
push dword [esi]
call fcn.0041cf60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x5280fb]
shl eax, 2
mov dword [0x5280ff], eax
push edi
push ecx
xor eax, eax
mov edi, 0x53f7d8
mov ecx, 0x566934
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00518e47
pop ecx
push 0x5280c4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x528103], eax
push 0
jmp fcn.005258e8
Function at 0x401864
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebx + 0x638]
cmp eax, 1
jne 0x40187e
lea eax, [ebx + 4]
jmp 0x4018be
cmp eax, 2
jne 0x4018ba
xor eax, eax
mov al, byte [ebx + 0x639]
cmp eax, 1
jne 0x401895
lea eax, [ebx + 4]
jmp 0x4018be
cmp eax, 2
jne 0x4018a1
mov eax, 0x528583
jmp 0x4018be
push 0x20
lea esi, [ebx + 4]
push esi
call fcn.005184e1
add esp, 8
test eax, eax
jne 0x4018b7
mov eax, esi
jmp 0x4018be
inc eax
jmp 0x4018be
xor eax, eax
jmp 0x401919
push 0x52ffb0
push 0x3e7
push 0x555704
push 0x528594
push eax
push 0x52858d
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x528598
push 0x555704
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x4018f7
xor eax, eax
jmp 0x401919
push 0x52859d
push 0x555704
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x401914
mov eax, 1
jmp 0x401919
mov eax, 2
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4040d3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
push 0x180
push dword [ebp + 8]
call sub.KERNEL32.dll_GetWindowsDirectoryA
test eax, eax
jne 0x4040f8
xor eax, eax
jmp 0x40421d
push str.msagentchars_
push dword [ebp + 8]
call fcn.00518300
add esp, 8
push 2
push dword [ebp + 8]
call fcn.00416273
test eax, eax
jne 0x40411d
xor eax, eax
jmp 0x40421d
xor edi, edi
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebx], 0
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x3e7
push 0
push 0
push 0
lea edx, [edi + 1]
push edx
push ebx
push str..acs
push dword [ebp + 8]
call fcn.00463a8c
cmp byte [ebx], 0
je 0x404202
test eax, eax
jle 0x404202
inc edi
push 0x54bcbb
push 0x54bbbb
push 0x54babb
push 0x54bab8
push ebx
call fcn.0051d600
add esp, 0x14
push esi
push edi
mov esi, ebx
mov edi, 0x54bbbb
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x54bcbb
push ebx
call fcn.00518300
add esp, 8
push ebx
call fcn.005207ec
pop ecx
test esi, esi
jle 0x404131
cmp dword [ebp + 0x10], 0
je 0x4041f9
cmp esi, 0x270f
jne 0x4041f9
push dword [ebp + 0x10]
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x4041fa
mov dword [ebp - 4], 1
xor esi, esi
jmp 0x4041fa
dec esi
test esi, esi
jg 0x404131
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp esi, 0x270f
jne 0x40421b
cmp dword [ebp - 4], 0
jne 0x40421b
xor eax, eax
jmp 0x40421d
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x409ff0
Capabilities:
Read .ini file

Disassembly:
push 0x52ffb0
push 0x3e7
push 0x543bd3
push 0x528c59
push 0x528c53
push 0x528c4c
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x528c64
push 0x543bd3
call fcn.005185a0
add esp, 8
test eax, eax
je 0x40a04b
mov dword [0x528c40], 1
push 0
push 0x85
push 0x111
push dword [0x537420]
call sub.USER32.dll_PostMessageA
ret
call fcn.004a9914
ret
Function at 0x40ff83
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x543bd3
mov esi, 0x543330
mov edi, 0x52902c
mov ebp, 0x543344
push 0x7f02
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov dword [0x543334], eax
push 0x52ffb0
push 0x3e7
push ebx
lea eax, [edi + 0x36]
push eax
lea edx, [edi + 0x2d]
push edx
lea ecx, [edi + 0x26]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [ebx], 0
je 0x40fffa
push 0x52ffb0
push ebx
lea eax, [edi + 0x42]
push eax
lea edx, [edi + 0x3a]
push edx
call fcn.00486c04
push 0x52ffb0
push 0
lea ecx, [edi + 0x4d]
push ecx
lea eax, [edi + 0x46]
push eax
call fcn.00486c04
call fcn.0040faec
xor edx, edx
mov dword [ebp], edx
mov ecx, dword [ebp]
inc dword [ebp]
push ecx
lea eax, [edi + 0x56]
push eax
push 0x543338
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x52ffb0
push 0x3e7
push ebx
lea edx, [edi + 0x63]
push edx
push 0x543338
lea ecx, [edi + 0x5b]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [ebx], 0
je 0x410058
push ebx
call fcn.00416498
push 1
push ebx
call fcn.00416273
test eax, eax
je 0x410004
push ebx
call fcn.0040fd9f
jmp 0x410004
cmp dword [0x529024], 0
jne 0x410080
push 0x52feac
lea eax, [edi + 0x67]
push eax
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push ebx
call fcn.0040fd9f
push 0
call fcn.0041013b
xor edx, edx
mov dword [ebp], edx
mov ecx, dword [0x529024]
mov dword [esi], ecx
jmp 0x4100bd
mov edx, dword [ebp]
cmp edx, dword [0x529028]
jne 0x4100a6
mov dword [eax + 0x134], 1
jmp 0x4100b0
mov eax, dword [esi]
xor ecx, ecx
mov dword [eax + 0x134], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x158]
mov dword [esi], edx
inc dword [ebp]
mov eax, dword [esi]
test eax, eax
jne 0x41008f
push dword [0x543334]
call sub.USER32.dll_SetCursor
pop ebp
pop edi
pop esi
pop ebx
ret