joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb8f0dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0xb8f0e4
push ecx
push ebx
push esi
mov eax, 0xb8cd0c
call fcn.00a17920
mov esi, dword [0xba9da8]
xor eax, eax
push ebp
push 0xb8f2b8
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00a134b4
cmp eax, 2
jne 0xb8f175
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00a13514
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00a1a908
call fcn.00af314c
mov ebx, 0x64
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00a13514
mov eax, dword [ebp - 0x18]
call fcn.00a15890
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00a13514
mov eax, dword [ebp - 0x1c]
call fcn.00a1af08
test al, al
je 0xb8f175
push 0xa
call sub.kernel32.dll_Sleep_2
dec ebx
jne 0xb8f137
movzx eax, byte [0xb8f2c8]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00a13514
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0xb8f2d4
call fcn.00a206b8
mov eax, dword [ebp - 0x20]
call fcn.00a15890
push eax
push 0
push 0
call fcn.00a17c44
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0xb8f1ee
push 0x40
push 0xb8f2d8
lea edx, [ebp - 0x2c]
mov eax, dword [0xba9ee8]
call fcn.00a1779c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00ae2058
mov eax, dword [ebp - 0x28]
call fcn.00a15890
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0xb8f29d
mov dl, 1
mov eax, dword [0xa2ac9c]
call fcn.00a14440
mov edx, dword [0xbaa0ec]
mov dword [edx], eax
mov eax, dword [0xbaa0ec]
mov eax, dword [eax]
call fcn.00af013c
test al, al
jne 0xb8f220
mov eax, dword [0xbaa0ec]
mov eax, dword [eax]
call fcn.00a14470
jmp 0xb8f29d
mov eax, dword [esi]
call fcn.00a8701c
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.00a878dc
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00a1b380
mov eax, dword [ebp - 0x30]
call fcn.00a1b6ec
mov ecx, dword [0xba9b70]
mov eax, dword [esi]
mov edx, dword [0xb7ffb8]
call fcn.00a87034
mov ecx, dword [0xbaa000]
mov eax, dword [esi]
mov edx, dword [0xb8bf10]
call fcn.00a87034
mov ecx, dword [0xba9c34]
mov eax, dword [esi]
mov edx, dword [0xb8b434]
call fcn.00a87034
mov ecx, dword [0xba9e7c]
mov eax, dword [esi]
mov edx, dword [0xb8a7fc]
call fcn.00a87034
mov eax, dword [esi]
call fcn.00a8716c
push ebx
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb8f2bf
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00a15414
ret
Function at 0x181828e
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
push ecx
mov ch, 0x14
jmp 0x188c862
not esi
rdtsc
cbw
inc esi
rol bp, 0xd8
ror esi, 1
inc edi
inc esi
adc ebp, ecx
shr ebp, 0xc7
neg esi
stc
cdq
setae al
ror esi, 2
sbb bx, 0x15e4
lea esi, [esi + 0x33ef5680]
lea esi, [esi + ecx]
mov edi, esp
xor eax, 0x7b1168b4
btr ebx, 0x40
bt eax, edx
lea esp, [esp - 0xc0]
mov ebx, esi
mov eax, 0
sal ebp, 0x9b
sub ebx, eax
cmc
add ebp, 0x12211dd5
bswap dx
lea ebp, [0x18356fc]
shr edx, 0xc
setns dl
adc dl, 0x80
mov edx, dword [esi]
lea esi, [esi + 4]
cmc
clc
xor edx, ebx
jmp 0x1884cea
add ebp, edx
jmp 0x18a02c0
ror edx, 1
test bp, 0x6004
lea edx, [edx + 0x54240e81]
neg edx
stc
clc
rol edx, 3
dec edx
xor edx, 0x69ff0a68
clc
bswap edx
cmp al, 0xc
xor ebx, edx
cmc
stc
jmp 0x183a119
push esi
push ebx
push edx
mov esi, esp
not di
cwd
pushfd
btr dx, 0xef
bts cx, cx
btr dx, cx
push ebp
movzx cx, al
movzx edx, dx
push eax
bswap esi
rcl ebp, 0x3b
mov ecx, 0
push ecx
rdtsc
mov esi, dword [esp + 0x28]
setbe bh
cmovnp bx, bp
rol esi, 3
add esi, 0x232954a2
shld ax, cx, 0xa0
neg esi
btc edx, esi
btc eax, 0x27
rcr bh, cl
ror esi, 3
sub esi, 0x3c722e7c
xchg dx, di
ror esi, 1
not edi
jmp 0x18356a5
jmp ebp
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x4010a6
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4010a6
mov edx, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x401097
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0051ec07
mov esi, eax
add esp, 4
test esi, esi
je 0x401092
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push edi
push esi
call fcn.005226e0
add esp, 0xc
cmp dword [ebp - 4], edi
jbe 0x401097
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push esi
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x401097
push esi
call fcn.0051ebab
mov edx, dword [ebp + 8]
add esp, 4
xor esi, esi
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xe
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x57
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5366f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], esp
xor ebx, ebx
xor eax, eax
mov esi, 7
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
lea ecx, [ebp + 0x24]
mov word [edi], ax
push ecx
or eax, 0xffffffff
call fcn.00401dd0
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp + 8]
xor edx, edx
push eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
or eax, 0xffffffff
mov word [edi], dx
call fcn.00401dd0
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 1
call fcn.00401960
mov edi, 8
add esp, 0x3c
cmp dword [eax + 0x14], edi
jb 0x4017a9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], edi
jb 0x4017c1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0051ebab
add esp, 4
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp + 0x1c], edi
jb 0x4017e1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051ebab
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], edi
jb 0x401805
mov eax, dword [ebp + 0x24]
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x401b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5347e9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
cmp dword [eax + 0x10], ebx
jne 0x401b75
lea ecx, [ebp - 0x2c]
call fcn.0051ec87
push 0x564318
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], vtable.BadOparationException.0
call fcn.005210ab
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], vtable.CFileRW.0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x401b95
mov eax, dword [eax]
lea esi, [ebp - 0x2c]
call fcn.00449600
mov edi, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
cmp edi, 0xffffffff
je 0x401bcb
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push edi
call esi
cmp eax, ebx
jne 0x401bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x401bd2
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x10], ebx
cmp edi, 0xffffffff
je 0x401bf7
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push edi
call esi
cmp eax, ebx
jne 0x401bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x401bfe
mov dword [ebp - 0x28], 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0051e808
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401500
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401c5a
test eax, eax
je 0x401c5a
cmp edi, 0xffffffff
je 0x401c51
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
push edi
call esi
test eax, eax
jne 0x401c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x401c61
mov dword [ebp - 0x28], 0xc
jmp 0x401c73
mov dword [ebp - 0x28], 0x57
cmp edi, 0xffffffff
je 0x401c73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
push eax
sub esp, 8
mov eax, esp
mov dword [ebp - 0x10], esp
push ebx
mov ebx, dword [ebp - 0x1c]
mov dword [eax], 0
mov dword [eax + 4], 0
push eax
mov eax, ebx
call fcn.00401430
mov ecx, esi
mov esi, dword [ebp + 8]
call fcn.00401230
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
test ebx, ebx
je 0x401cdd
lea ecx, [ebx + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x401cdd
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x401cdd
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
cmp edi, 0xffffffff
je 0x401ce9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x2b
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x54ef24
mov byte [ecx], 0
call fcn.00402700
lea ecx, [ebp - 0x20]
call fcn.004025c0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x402e29
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x40], esi
test eax, eax
je 0x402e5d
cmp word [eax], si
je 0x402e5d
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x402e5a
mov dword [ebp - 0x40], esi
jmp 0x402e5d
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x44], esi
jb 0x402e72
mov edx, dword [ebp - 0x20]
push edx
call fcn.0051ebab
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
test esi, esi
je 0x402efa
xor ecx, ecx
cmp byte [ebp + 8], al
setne cl
sub esp, 0x1c
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x48], ecx
mov ecx, esp
push 0x17
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push str.GoogleAnalyticsAccepted
mov byte [ecx], al
call fcn.00402700
lea ecx, [ebp - 0x3c]
call fcn.004025c0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x402ec8
mov eax, dword [eax]
test eax, eax
je 0x402ede
push 4
lea edx, [ebp - 0x48]
push edx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x28], 8
jb 0x402ef0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x403050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x2b
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x54ef24
mov byte [ecx], 0
call fcn.00402700
lea ecx, [ebp - 0x20]
call fcn.004025c0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x403099
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x40], esi
test eax, eax
je 0x4030cd
cmp word [eax], si
je 0x4030cd
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4030ca
mov dword [ebp - 0x40], esi
jmp 0x4030cd
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x44], esi
jb 0x4030e2
mov edx, dword [ebp - 0x20]
push edx
call fcn.0051ebab
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
test esi, esi
je 0x403166
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x48], 1
push 0xe
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push 0x54ef50
mov byte [ecx], al
call fcn.00402700
lea ecx, [ebp - 0x3c]
call fcn.004025c0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x403134
mov eax, dword [eax]
test eax, eax
je 0x40314a
push 4
lea ecx, [ebp - 0x48]
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x28], 8
jb 0x40315c
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0051ebab
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x2b
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x54ef24
mov byte [ecx], 0
call fcn.00402700
lea ecx, [ebp - 0x20]
call fcn.004025c0
mov edi, 8
add esp, 0x1c
cmp dword [eax + 0x14], edi
jb 0x4031ce
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 0x40], esi
test eax, eax
je 0x403202
cmp word [eax], si
je 0x403202
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4031ff
mov dword [ebp - 0x40], esi
jmp 0x403202
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0xc], edi
jb 0x403216
mov edx, dword [ebp - 0x20]
push edx
call fcn.0051ebab
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
test esi, esi
je 0x403283
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0xe
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push 0x54ef50
mov byte [ecx], al
call fcn.00402700
lea ecx, [ebp - 0x3c]
call fcn.004025c0
add esp, 0x1c
cmp dword [eax + 0x14], edi
jb 0x403260
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x28], edi
jb 0x403279
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0051ebab
add esp, 4
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x403e40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5365eb
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x575494]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push edi
mov eax, dword [0x575494]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
xor al, al
mov dword [esp + 0x20], edx
mov byte [esp + 0x12], al
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp dword [esi], ebx
je 0x40401d
cmp byte [esi + 4], bl
je 0x404014
cmp ecx, ebx
je 0x40400b
cmp word [ecx], bx
je 0x40400b
cmp edx, ebx
je 0x40400b
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00404330
mov dword [esp + 0x288], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x403ff5
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
je 0x403efb
push eax
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
je 0x403fdc
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edi, eax
cmp edi, ebx
je 0x403fdc
mov ecx, dword [esp + 0x14]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x403fb9
movzx edx, word [edi + 0x44]
movzx eax, word [edi + 0x46]
add eax, edx
cmp byte [esp + 0x13], 1
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
push edi
mov dword [esp + 0x28], ebx
push ecx
jne 0x403f89
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fb9
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x16], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00404440
mov al, byte [esp + 0x12]
jmp 0x404024
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403fb9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
mov byte [eax], 1
mov byte [esp + 0x16], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00404440
mov al, byte [esp + 0x12]
jmp 0x404024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00404440
mov al, byte [esp + 0x12]
jmp 0x404024
mov eax, esi
call fcn.00404400
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], eax
call fcn.00404440
mov al, byte [esp + 0x12]
jmp 0x404024
lea ecx, [esp + 0x14]
mov dword [esi + 0xc], 0x65b
call fcn.00404440
mov al, byte [esp + 0x12]
jmp 0x404024
mov dword [esi + 0xc], 0x57
jmp 0x404024
mov dword [esi + 0x10], 0x47
jmp 0x404024
mov dword [esi + 0x10], 6
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x404050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5365b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor al, al
mov byte [ebp - 0xd], al
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp dword [esi], ebx
je 0x4041c1
cmp byte [esi + 4], bl
je 0x4041a9
cmp ecx, ebx
je 0x404191
cmp word [ecx], bx
je 0x404191
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00404330
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], ebx
je 0x404150
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
je 0x404144
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edi, eax
cmp edi, ebx
je 0x404144
mov ecx, dword [ebp - 0x14]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404139
movzx eax, word [edi + 0x46]
movzx edx, word [edi + 0x44]
push 0
lea ecx, [ebp - 0x18]
push ecx
add eax, edx
push eax
push edi
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404127
push ebx
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404157
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404157
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
jmp 0x404157
mov eax, esi
call fcn.00404400
mov dword [esi + 0x10], eax
jmp 0x404157
mov dword [esi + 0xc], 0x65b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40417d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 0x47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x539cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x575494]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov esi, 2
call fcn.00406c90
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x14], ebx
jle 0x406a0a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x4069c8
mov ecx, 0x54ee24
lea edx, [esp + 0x1c]
push edx
call fcn.00470370
xor eax, eax
cmp dword [esp + 0x24], ebx
jle 0x4069fa
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4069e7
mov eax, 0x54ee24
push eax
push 2
push str.CopyrightType
push str.CopyrightInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x4c], bl
call fcn.004702d0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406a23
push eax
call fcn.0051ebab
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407230
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539968
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004081f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov edi, eax
test eax, eax
jne 0x40727b
mov edi, 0x54ee24
mov byte [ebp + 0xb], 0
test esi, esi
js 0x4072d0
push esi
mov ecx, str.AdditionalImgApp
mov esi, ebx
call fcn.00407850
test al, al
je 0x4072cd
test edi, edi
je 0x4072cd
cmp word [edi], 0
je 0x4072cd
cmp dword [ebx + 0x28], 0
jle 0x4072cd
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4072b0
mov eax, 0x54ee24
push eax
push 0
push edi
push str.SupportFileType
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4072cd
mov ecx, ebx
call fcn.00407af0
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4072e4
push eax
call fcn.0051ebab
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4