joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cbf0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x50
mov eax, 0x532478
call fcn.004e49d2
mov dword [ebp - 0x4c], ecx
mov eax, 0x3a98
xor ebx, ebx
mov dword [ebp - 0x44], eax
push 2
pop edi
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45cd14
lea eax, [ebp - 0x44]
push eax
push esi
push 0
push 0xe
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x45cc61
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc ebx
cmp ebx, 3
jge 0x45cce3
mov eax, dword [ebp - 0x44]
jmp 0x45cc09
test edi, edi
jne 0x45cce3
mov eax, esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x45ccd4
push 2
pop edx
mov ecx, dword [ebx + 0xc]
cmp word [ecx], dx
jne 0x45ccca
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x16
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_inet_ntop]
test eax, eax
je 0x45ccc7
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0042738f
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00424286
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00427ba9
push 2
pop edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45cc77
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x45cc6d
mov esi, dword [ebp - 0x50]
jmp 0x45ccfa
push edi
push str.GetLocalIPv4Addresses
push str._s___GetAdaptersAddresses_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
test esi, esi
je 0x45cd0e
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.004e497c
ret
push str.GetLocalIPv4Addresses
push str._s___HeapAlloc_failed
push 0
push 0
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x5c]
push str.GetLocalIPv4Addresses:2192:_memory_allocation_failed
call fcn.0040ea4b
push 0x5e02b8
lea eax, [ebp - 0x5c]
push eax
call fcn.004fda0a
int3
Function at 0x4750b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528b46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5e3390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0050c82a
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4750ff
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x475110
push 0x44
push esi
call fcn.004e460c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x47ce10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5341c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5e3390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [0x5eb884], 0
jne 0x47ce5d
call fcn.0046eac0
mov dword [0x5eb884], 0x464210
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.00473e30
mov ecx, 8
call fcn.0047ed50
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b1640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
and edi, 0xf
inc eax
mov dword [ebp - 8], 0
movzx ecx, ax
xor esi, esi
mov dword [ebp - 4], 0x409
mov dword [ebp + 8], ecx
movzx eax, word [ebp + esi*4 - 8]
push eax
push ecx
push 6
push dword [0x5eea58]
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
test eax, eax
je 0x4b16c5
push eax
push dword [0x5eea58]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4b16c5
push eax
call ebx
test eax, eax
je 0x4b16c5
test edi, edi
jle 0x4b16be
mov edx, edi
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub edx, 1
jne 0x4b16b0
movzx ecx, word [eax]
test ecx, ecx
jne 0x4b16d0
inc esi
cmp esi, 2
jae 0x4b16da
mov ecx, dword [ebp + 8]
jmp 0x4b1671
pop edi
pop esi
add eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x5b1244
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4a00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e3390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push ebx
push dword [esi + 0xc]
call fcn.004b1310
mov eax, dword [ebx + 4]
add esp, 0xc
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 8], eax
lea eax, [ebp - 0x18]
push 2
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
je 0x4b4a7f
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, edx
mov dword [ebx + 0xc], eax
add ecx, edx
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
jmp 0x4b4a9b
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [ebx]
mov esi, ecx
mov edi, dword [ebx + 8]
sub ecx, edi
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x34], ecx
add edx, edi
mov ecx, dword [ebp - 8]
lea eax, [eax + eax*2]
shl eax, 2
sub ecx, edi
sub esi, eax
mov dword [ebx + 0x38], ecx
mov eax, dword [ebp - 0x14]
sub esi, edi
mov dword [ebx + 0x2c], esi
add eax, edi
sub esi, edi
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 0x24], esi
xor ecx, ebp
pop esi
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edx
pop ebx
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x4b5cb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x5e3390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebx]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
call fcn.004cdea0
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x4b5d30
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call ebx
movzx esi, al
or esi, 0xffffff00
push 5
shl esi, 8
call ebx
shr eax, 8
movzx edi, al
or edi, esi
push 5
shl edi, 8
call ebx
mov ebx, dword [ebp - 0x254]
shr eax, 0x10
movzx eax, al
or eax, edi
push eax
push dword [ebx]
call fcn.004ce3a0
mov esi, dword [ebp - 0x258]
add esp, 8
lea eax, [ebp - 0x250]
push eax
push esi
call fcn.004b4a00
mov eax, dword [ebp - 0x244]
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp eax, ecx
jge 0x4b5de3
mov edx, dword [ebp - 0x240]
mov edi, dword [ebp - 0x238]
cmp edx, edi
jge 0x4b5de3
movd xmm0, eax
lea eax, [ebp - 0x204]
cvtdq2ps xmm0, xmm0
push 0x100
push eax
push dword [esi]
movss dword [ebp - 0x214], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x210], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x208], xmm0
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xff000000
push dword [ebx + 4]
call fcn.004cdd10
push 9
push dword [ebx + 4]
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.004ce8d0
add esp, 0x24
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004b5820
mov ecx, dword [esi + 0x10]
add esp, 0xc
and ecx, 0x3f
cmp ecx, 9
ja case.default.0x4b5e03
jmp dword [ecx*4 + 0x4b5ebc]
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004ba0f0
add esp, 0xc
jmp case.default.0x4b5e03
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004bb610
add esp, 0xc
jmp case.default.0x4b5e03
cmp ecx, 3
je 0x4b5e41
cmp ecx, 5
je 0x4b5e41
xor edx, edx
jmp 0x4b5e46
mov edx, 1
cmp ecx, 4
je 0x4b5e54
cmp ecx, 5
je 0x4b5e54
xor eax, eax
jmp 0x4b5e59
mov eax, 1
lea ecx, [ebp - 0x250]
push ecx
push ebx
push edx
push eax
push esi
call fcn.004b8e70
add esp, 0x14
jmp case.default.0x4b5e03
lea eax, [ebp - 0x250]
push eax
xor eax, eax
cmp ecx, 7
push ebx
sete al
push eax
push esi
call fcn.004b7820
jmp 0x4b5e9e
lea eax, [ebp - 0x250]
push eax
xor eax, eax
cmp ecx, 9
push ebx
sete al
push eax
push esi
call fcn.004b3e50
add esp, 0x10
push dword [ebx]
call fcn.004ce110
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x4b6980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5e3390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add eax, dword [edi + 4]
mov cl, byte [edi + 8]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4b6a96
test eax, eax
je 0x4b6a96
push esi
test cl, cl
jle 0x4b6a0c
push eax
push 0x53f7dc
push ebx
call fcn.004b3320
mov edx, eax
add esp, 0xc
movsx eax, byte [edi + 8]
mov ecx, edx
add eax, edx
cmp edx, eax
jge 0x4b69ef
mov esi, 0x30
nop dword [eax + eax]
mov word [ebx + ecx*2], si
inc ecx
movsx eax, byte [edi + 8]
add eax, edx
cmp ecx, eax
jl 0x4b69e0
movsx eax, byte [edi + 8]
add eax, edx
xor ecx, ecx
pop esi
pop edi
mov word [ebx + eax*2], cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
movsx eax, cl
mov esi, 0xa
neg eax
cmp eax, 1
je 0x4b6a2a
dec eax
nop dword [eax]
lea esi, [esi + esi*4]
add esi, esi
sub eax, 1
jne 0x4b6a20
push 4
lea eax, [ebp - 0xc]
push eax
push 0xe
call dword [sym.imp.KERNEL32.DLL_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4b6a56
mov eax, 0x2e
mov dword [ebp - 0x10], 1
mov word [ebp - 0xc], ax
mov eax, dword [ebp + 0xc]
cdq
xor eax, edx
movsx ecx, byte [edi + 8]
sub eax, edx
neg ecx
cdq
idiv esi
lea eax, [ebp - 0xc]
push edx
push ecx
push eax
mov eax, dword [ebp + 0xc]
cdq
idiv esi
push dword [ebp - 0x10]
push eax
push str._d_.s_0.d
push ebx
call fcn.004b3320
add esp, 0x1c
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
push eax
push 0x53f7dc
push ebx
call fcn.004b3320
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop ebx
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret

Function at 0x4bd820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x13]
and eax, 1
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004b1640
Function at 0x4c35c0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5e3390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
mov dword [ebp - 0x68], 0x30
xor eax, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x64], 0xe3
mov dword [ebp - 0x3c], 0xffffffff
cmp ax, word [ebx + 0x22]
jae 0x4c366e
mov edx, 0x1000
nop word [eax + eax]
lea eax, [esi + 0x3e8]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], eax
xor ecx, ecx
movsx eax, word [ebx + 0x4c]
cmp esi, eax
mov eax, dword [ebx + 0x1c]
cmove ecx, edx
mov dword [ebp - 0x5c], ecx
movzx ecx, si
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov dword [ebp - 0x44], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3640
lea eax, [ebp - 0x68]
sub ecx, edx
push eax
push 1
push esi
sar ecx, 1
push edi
mov dword [ebp - 0x40], ecx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
movzx eax, word [ebx + 0x22]
inc esi
mov edx, 0x1000
cmp esi, eax
jl 0x4c3610
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push edi
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.USER32.dll_GetMenuInfo]
or dword [ebp - 0x30], 0x4000000
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xca
push 0x419
push dword [ebx + 8]
call edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x14
push ecx
push eax
push 0x41d
push dword [ebx + 8]
call edi
push 0
push 0xca
push 0x412
push dword [ebx + 8]
call edi
movzx esi, ax
mov eax, esi
or eax, 2
push eax
push 0xca
push 0x411
push dword [ebx + 8]
call edi
push 2
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 8
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_DestroyMenu]
push esi
push 0xca
push 0x411
push dword [ebx + 8]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x4c7436
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x369e4437
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40bcb5
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x37c
cmp byte [0x424e40], 0
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x37c], eax
mov esi, 0x424e40
jne 0x40bd2c
mov edi, 0x104
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40bcff
push 0x401364
jmp 0x40bd44
push 0
push 0x401358
push 0x401354
lea eax, [ebp - 0x120]
push eax
push 0x401348
push edi
push esi
call fcn.0041ae94
add esp, 0x1c
test eax, eax
jge 0x40bd2c
push 0x401324
jmp 0x40bd44
push 0x401320
push esi
call fcn.0041ae78
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x40bd4f
push 0x4012f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40bded
lea eax, [ebp - 0x10]
push eax
call fcn.0041ada0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ad32
cmp dword [ebp - 0x37c], 0
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
je 0x40bdb4
push 0
push dword [ebp - 0x37c]
push 0x4012e8
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4012d4
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.0041ae94
add esp, 0x20
test eax, eax
jge 0x40bdd7
push 2
push 0x4012d0
lea eax, [ebp - 0x122]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x40bdd7
push 0x4012e8
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4012bc
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.0041ae94
add esp, 0x18
lea eax, [ebp - 0x378]
push esi
push eax
call fcn.0041acb6
push esi
call fcn.0041ac60
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0041a84f
leave
ret 4

Function at 0x40c022
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4242b4]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c071
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x40c069
cmp eax, 2
je 0x40c069
push eax
push 0x401628
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
jmp 0x40c117
xor eax, eax
inc eax
jmp 0x40c117
test al, 0x10
push esi
je 0x40c0f2
push 0x104
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x12c], 0
and dword [ebp - 0x120], 0
and dword [ebp - 0x116], 0
mov byte [ebp + eax - 0x10b], 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x128], 3
mov word [ebp - 0x11c], 0x14
mov dword [ebp - 0x112], 0x401627
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x40c0fb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x40c114
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x401604
call fcn.0040be00
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0041a84f
leave
ret 4
Function at 0x40c129
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40c176
push edi
call fcn.0040bf90
test eax, eax
jne 0x40c165
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x401718
call fcn.0040be00
add esp, 0xc
jmp 0x40c172
push edi
push 0x4016d0
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
jmp 0x40c1d6
push ebx
push esi
call fcn.0041af8c
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x40c193
push 0x4016a4
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x40c1d5
mov ecx, esi
mov edx, ecx
shr ecx, 2
push ebx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
push 0
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40c1d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x401660
call fcn.0040be00
push ebx
call fcn.0041af7c
add esp, 0xc
jmp 0x40c18f
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x40c3c7
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [esi], edi
call fcn.0040c335
test eax, eax
jne 0x40c3f6
push dword [ebp + 0xc]
push 0x4018b0
call fcn.0040be00
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40c43e
push ebx
add edi, 0x258
push edi
push dword [esi]
call fcn.0041b01a
test eax, eax
pop ecx
pop ecx
je 0x40c444
push dword [ebp + 0xc]
mov dword [esi], eax
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea eax, [edi - 2]
cmp ebx, eax
je 0x40c3f7
test ebx, ebx
jne 0x40c43b
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x40187c
call fcn.0040be00
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
push 0x401850
call fcn.0040be00
mov eax, dword [esi]
test eax, eax
pop ecx
je 0x40c45f
push eax
call fcn.0041afa4
and dword [esi], 0
pop ecx
or eax, 0xffffffff
jmp 0x40c43d