joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b63
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
mov eax, 0x60097c
call fcn.00474a88
sub esp, 0x228
push ebx
push esi
mov ebx, ecx
and dword [ebp - 4], 0
lea esi, [ebx + 0x5b8]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
lea eax, [ebp - 0x234]
push str._sPluginsupx.exe
push eax
call fcn.00475030
add esp, 0xc
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.00403b3f
test eax, eax
jne 0x403bd0
push str._r_nUPX.exe
mov ecx, ebx
call fcn.004032c9
xor esi, esi
jmp 0x403cbc
and byte [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x130], 0
push 0x40
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x130]
push eax
call fcn.004745d0
lea eax, [ebp - 0x130]
push eax
call fcn.00474f30
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x403c55
cmp byte [ebp + eax - 0x130], 0x5c
je 0x403c2c
dec eax
test eax, eax
jg 0x403c1b
jmp 0x403c55
lea edx, [eax + 1]
cmp edx, ecx
jge 0x403c4d
sub ecx, edx
lea esi, [ebp + edx - 0x130]
mov edx, ecx
lea edi, [ebp - 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [ebp + eax - 0x130], 0
lea eax, [ebp - 0x130]
push str.upx.exe
push eax
call fcn.004745d0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
lea eax, [ebp - 0x130]
push eax
call esi
lea eax, [ebp - 0x130]
push 0
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [ebp - 0x2c]
push 0x796570
push eax
push 0x69d0d4
push str.open
push dword [ebx + 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
lea eax, [ebp - 0x130]
push eax
call esi
test eax, eax
je 0x403cac
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405925
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405925
xor eax, eax
ret
push 1
pop eax
ret
Function at 0x405929
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call fcn.00473f70
push 0x2e
push dword [ebp + 8]
call fcn.00475090
add esp, 0x14
cmp eax, edi
je 0x4059ee
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059ee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call fcn.00473f70
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4059f5
xor al, al
jmp 0x405ab7
push esi
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00473f70
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x160]
push 0x69d4f4
push eax
call fcn.00474fb0
pop ecx
cmp eax, esi
pop ecx
jne 0x405a72
lea eax, [ebp - 0x160]
push 0x69d4f0
push eax
call fcn.00474fb0
pop ecx
cmp eax, esi
pop ecx
jne 0x405a72
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x160]
push 0x69d4ec
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x405a7c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x405a99
mov dword [ebp - 0x54], 0x69d4dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x407eb6
push ebx
push dword [ebp + 8]
push 0x69d994
jmp 0x407f7c
mov esi, dword [ebp + 0xc]
mov ecx, edi
push esi
mov word [ebp - 0x18], 0x4d42
mov word [ebp - 0x12], bx
mov word [ebp - 0x10], bx
call fcn.00407e4e
movzx eax, ax
add eax, 0x36
push esi
mov ecx, edi
mov dword [ebp - 0xe], eax
call fcn.00407e5d
imul eax, dword [esi + 8]
add eax, dword [ebp - 0xe]
push ebx
shr eax, 2
mov dword [ebp - 0x16], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push 0xe
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407f6a
cmp dword [ebp - 8], 0xe
jne 0x407f6a
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.00407e5d
mov edi, eax
lea eax, [ebp - 8]
imul edi, dword [esi + 8]
add edi, dword [ebp - 0xe]
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407f56
cmp dword [ebp - 8], edi
jne 0x407f56
mov eax, dword [esi + 8]
push dword [ebp - 4]
shl eax, 1
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x407f85
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp + 8]
push 0x69d984
jmp 0x407f7c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp + 8]
push 0x69d970
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4087f2
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x40880a
mov eax, 0x80
jmp 0x40880c
or al, 0x80
push 0x4010
lea ecx, [ebp - 0x160]
push 0x160
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
leave
ret
Function at 0x40a1e7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x601610
call fcn.00474a88
sub esp, 0x354
push ebx
push edi
push 0x104
lea eax, [ebp - 0x25c]
push 0
mov dword [ebp - 0x18], ecx
push eax
call fcn.00473f70
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
mov dword [ebp + 8], 0x69da70
jne 0x40a231
mov dword [ebp + 8], 0x796570
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x25c]
push ebx
push str._s_s.
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40a26f
xor al, al
jmp 0x40a316
push esi
mov esi, 0x69dad0
cmp byte [ebp - 0x12c], 0x2e
je 0x40a2f2
test byte [ebp - 0x158], 0x10
je 0x40a2b0
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x360]
push dword [ebp + 8]
push ebx
push esi
push eax
call edi
mov ecx, dword [ebp - 0x18]
add esp, 0x14
lea eax, [ebp - 0x360]
push eax
call fcn.0040a1e7
jmp 0x40a2f2
mov eax, dword [0x7815b4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x12c]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push ebx
push esi
push eax
call fcn.005dbdfb
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0xb4]
call fcn.0040c6d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005e3750
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a275
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a34b
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x60162c
call fcn.00474a88
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xb4]
mov byte [esi + 0xdb5], 1
mov ecx, edi
call fcn.0040c70d
lea eax, [ebp - 0x10]
push 1
push eax
mov ecx, esi
call fcn.0040a45a
push 0x796570
xor ebx, ebx
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004750b7
pop ecx
test eax, eax
pop ecx
je 0x40a43f
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.005dba53
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005db9db
push eax
lea ecx, [esi + 0x9bc]
mov byte [ebp - 4], 1
call fcn.005e3889
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005e3750
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40a406
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40a3f3
push 0x69da70
lea ecx, [ebp - 0x10]
call fcn.005e3b2c
push ebx
lea ecx, [ebp - 0x10]
call fcn.005e3b80
push eax
mov ecx, esi
call fcn.0040a1e7
jmp 0x40a411
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040c6d9
cmp dword [esi + 0xc0], ebx
jne 0x40a430
push 0x30
push 0x69daec
push 0x69dae0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a43f
push ebx
mov ecx, esi
call fcn.0040a326
mov ecx, esi
call fcn.0040a822
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40af1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x9a8]
add ecx, 0x24
call fcn.004025ce
mov ecx, dword [esi + 0x9a8]
push 1
add ecx, 0x24
mov dword [ebp - 0x14], eax
call fcn.004025ce
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
xor eax, eax
or eax, dword [ebp - 4]
mov edx, ecx
or edx, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
test eax, eax
jg 0x40afb3
jl 0x40af88
test edx, edx
jae 0x40afb3
mov eax, dword [0x796af0]
mov dword [esi + 0x90], eax
mov eax, dword [0x796af4]
mov dword [esi + 0x94], eax
mov eax, dword [0x796af8]
mov dword [ebp - 8], eax
mov eax, dword [0x796afc]
mov dword [ebp - 4], eax
jmp 0x40b07d
mov dword [0x796af4], eax
mov eax, dword [ebp - 4]
mov dword [0x796af0], edx
mov dword [0x796af8], ecx
mov dword [0x796afc], eax
mov ecx, dword [esi + 0x9a8]
push ebx
add ecx, 0x24
call fcn.0040244b
mov edi, eax
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push eax
sub edi, 9
push dword [ebp - 4]
push dword [esi + 0x7c]
call ebx
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push dword [ebp - 0x14]
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b018
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xf
jl 0x40aff8
cmp dword [ebp - 0xc], 0xf
jne 0x40b04e
test eax, eax
jne 0x40b04e
lea eax, [esi + 0x68]
push 0x69db4c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005e39e5
push 0x30
push 0x69daec
push dword [eax]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x14]
call fcn.005e3750
lea ecx, [ebp - 8]
xor eax, eax
push 1
push ecx
push eax
mov dword [ebp - 4], eax
push dword [esi + 0x7c]
mov dword [ebp - 8], eax
call ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add dword [esi + 0x90], eax
mov ecx, esi
adc dword [esi + 0x94], 0
call fcn.0040b3dd
pop ebx
cmp byte [esi + 0x66], 0
je 0x40b08e
push 1
mov ecx, esi
call fcn.0040b39b
jmp 0x40b0cc
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x1f]
push eax
mov byte [ebp - 0x20], 5
call fcn.00473fd0
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x1b]
push eax
call fcn.00473fd0
add esp, 0x18
mov ecx, dword [esi + 0x9ac]
lea eax, [ebp - 0x20]
push 0
push 9
push eax
push dword [esi + 0x9a8]
call fcn.0040ef7d
pop edi
pop esi
leave
ret
Function at 0x40b896
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x9a8]
add ecx, 0x24
call fcn.004025ce
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
or ecx, eax
or edx, edi
mov dword [esi + 0x90], ecx
mov ecx, esi
mov dword [esi + 0x94], edx
call fcn.0040b3dd
mov ecx, dword [esi + 0x90]
lea eax, [esi + 0x88]
cmp ecx, dword [eax]
jne 0x40b8fb
mov ecx, dword [esi + 0x94]
cmp ecx, dword [eax + 4]
je 0x40b9a5
cmp dword [ebp - 4], 0xffffffff
jne 0x40b90b
cmp dword [ebp - 8], 0xffffffff
je 0x40b9a5
xor ebx, ebx
cmp byte [esi + 0x66], bl
jne 0x40b9a5
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 8]
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x19000
push 0x40
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [edi + 1]
mov byte [edi], 4
push eax
call fcn.00473fd0
lea eax, [ebp - 8]
push 4
push eax
lea eax, [edi + 5]
push eax
call fcn.00473fd0
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [edi + 9]
push 0x18ff7
push eax
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jbe 0x40b99c
mov ecx, dword [esi + 0x9ac]
add eax, 9
push ebx
push eax
push edi
push dword [esi + 0x9a8]
call fcn.0040ef7d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40b9ac
mov ecx, esi
call fcn.0040b1a4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c20e
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637ea0
push 0x475830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0047447d
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40c34e
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40c2b5
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40c2b5
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40c290
cmp al, 0x5c
je 0x40c290
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40c278
cmp byte [esi], 0
je 0x40c299
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40c2ae
cmp al, 0x5c
je 0x40c2ae
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40c296
cmp byte [esi], 0
je 0x40c2d4
jmp 0x40c2d0
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40c2d4
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40c2d4
cmp al, 0x5c
jne 0x40c2d4
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x40c330
cmp al, 0x5c
jne 0x40c322
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40c30c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c31f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x40c311
and eax, 0x10
cmp al, 0x10
je 0x40c31f
push edi
call fcn.00474394
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40c352
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40c2d7
mov dword [ebp - 4], ebx
push edi
call fcn.00474394
pop ecx
mov al, 1
jmp 0x40c354
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40da84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 2
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 4], ebx
jne 0x40dac7
push esi
push dword [ebp + 8]
push 0x69df08
call fcn.0040d989
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40dc27
cmp dword [ebp + 0xc], esi
je 0x40dc1c
push 0xe
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, esi
je 0x40dc1a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40dc1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x40dc1a
movzx eax, word [ebx + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.0047447d
mov edi, eax
pop ecx
cmp edi, esi
jne 0x40db3a
push esi
push dword [ebp + 8]
push 0x69def8
call fcn.0040d989
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40dc1a
movzx eax, word [ebx + 4]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [edi + 0x20c], eax
lea eax, [edi + 0x108]
push eax
call esi
lea eax, [edi + 4]
push 0x796570
push eax
call esi
and dword [ebp - 8], 0
cmp dword [edi + 0x20c], 0
jbe 0x40dc1c
add ebx, 0x12
lea esi, [edi + 0x21c]
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
push 3
movzx eax, word [eax]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40dc13
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x40dc13
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esi + 4], eax
call fcn.0047447d
pop ecx
mov dword [esi], eax
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00473fd0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [esi - 0xc]
push eax
call fcn.0040d99d
test eax, eax
je 0x40dbfb
inc dword [ebp - 8]
add dword [ebp + 0xc], 0xe
mov eax, dword [ebp - 8]
add esi, 0x20
cmp eax, dword [edi + 0x20c]
jb 0x40db7e
jmp 0x40dc1c
push 0
push dword [ebp + 8]
push 0x69dedc
call fcn.0040d989
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00474394
pop ecx
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40dc2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push 0
push eax
push 2
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [ebp - 4], 0
pop edi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40dc5a
xor eax, eax
jmp 0x40dca1
cmp dword [ebp - 8], edi
jne 0x40dc56
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x40dc56
cmp dword [ebp - 8], edi
jne 0x40dc56
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x40dc56
xor eax, eax
cmp dword [ebp - 8], edi
sete al
pop edi
pop esi
leave
ret 8
Function at 0x40dcd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x40dd1c
push ebx
push dword [ebp + 0xc]
push 0x69df4c
call fcn.0040d989
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40de38
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push dword [edi + 0x20c]
push esi
call fcn.0040dc2e
test eax, eax
jne 0x40dd4f
push ebx
push dword [ebp + 0xc]
push 0x69df38
call fcn.0040d989
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
jmp 0x40de32
cmp dword [edi + 0x20c], ebx
jbe 0x40ddde
lea esi, [edi + 0x224]
mov al, byte [esi - 0x14]
and byte [ebp - 0x19], 0
mov byte [ebp - 0x1c], al
mov al, byte [esi - 0x10]
mov byte [ebp - 0x1b], al
mov eax, dword [esi]
mov dx, word [eax + 0xc]
mov word [ebp - 0x18], dx
mov ax, word [eax + 0xe]
mov word [ebp - 0x16], ax
movzx ecx, ax
movzx eax, dx
imul ecx, eax
cmp ecx, 8
jl 0x40dd97
and byte [ebp - 0x1a], 0
jmp 0x40dd9e
mov al, 1
shl al, cl
mov byte [ebp - 0x1a], al
mov eax, dword [esi - 4]
mov ecx, dword [ebp - 0xc]
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.0040dca7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40de38
cmp dword [ebp - 4], 0x10
jne 0x40de38
inc ebx
add esi, 0x20
cmp ebx, dword [edi + 0x20c]
jb 0x40dd61
xor ebx, ebx
cmp dword [edi + 0x20c], ebx
mov dword [ebp + 0xc], ebx
jbe 0x40de2f
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebx, dword [eax + 0x14]
and dword [eax + 0x14], 0
lea eax, [ebp - 4]
push eax
push dword [esi - 4]
push dword [esi - 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40de38
mov eax, dword [ebp - 4]
cmp eax, dword [esi - 4]
jne 0x40de38
mov eax, dword [esi]
inc dword [ebp + 0xc]
add esi, 0x20
mov dword [eax + 0x14], ebx
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x20c]
jb 0x40ddef
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x40df98
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x601aab
call fcn.00474a88
sub esp, 0x104
and dword [ebp - 0x10], 0
push dword [ecx + 4]
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 3
push 0x100
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.005e37be
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005e3750
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005e3750
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 0x10