joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420341
test eax, edx
je 0x420344
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4202ff
movzx eax, word [eax]
sub eax, ecx
jmp 0x420326
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420327
add ecx, 4
js 0x420317
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420324
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420326
xor eax, eax
ret
test eax, eax
je 0x420350
test edx, edx
jne 0x4202f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a9c0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4215f2
test ah, 4
je 0x4215eb
test bl, bl
jne 0x4215b0
mov al, 1
jmp 0x421619
test al, 0x10
je 0x4215b8
xor eax, eax
jmp 0x421619
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4215dc
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421619
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421619
test al, 0x10
sete al
jmp 0x421619
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421613
cmp ebx, 3
je 0x421613
cmp ebx, 0x7b
je 0x421613
mov eax, esi
call fcn.00421548
test al, al
jne 0x421617
xor eax, eax
jmp 0x421619
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a9c0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4216be
test esi, 0x400
jne 0x421655
test esi, 0x10
setne bl
jmp 0x4216be
cmp byte [esp], 0
je 0x421689
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4216be
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4216be
test esi, 0x10
je 0x421695
mov bl, 1
jmp 0x4216be
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4216bc
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4216be
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425f2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x425f65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a0f4
jmp 0x425f6e
mov eax, ebx
mov edx, esi
call fcn.0040a34c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425f78
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x425f9c
movzx eax, word [esp]
jmp 0x425f9e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4276b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4277df
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004274c0
mov esi, eax
mov eax, dword [0x4ded50]
cmp byte [eax], 0
je 0x427785
mov eax, dword [0x4deb8c]
call fcn.00407988
call fcn.004070b4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x427688]
call fcn.0040cac4
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4277f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4277c1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4deb48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e2634]
call fcn.0040d060
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4277e6
lea eax, [ebp - 4]
mov edx, dword [0x427688]
call fcn.0040cbe8
pop eax
jmp eax

Function at 0x429b8c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a440
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fc5c
mov edi, eax
cmp edi, 0x104
jbe 0x429b37
mov eax, edi
add eax, eax
call fcn.00406f40
mov esi, eax
jmp 0x429b39
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fc5c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x429b72
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x429b5c
mov eax, esp
cmp esi, eax
je 0x429b7f
mov eax, esi
call fcn.00406f5c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429bb8
cmp bl, 0
je 0x429bb4
cmp bl, 0x41
jl 0x429baf
cmp bl, 0x5a
jg 0x429baf
or bl, 0x20
xor al, bl
inc esi
jmp 0x429b93
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x429af8
Function at 0x42a4b0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aa5c
add esp, 0x800
pop ebx
ret

Function at 0x42cec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42cee0
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42cefa
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42cef5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42ceff
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42cf6d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42cfb6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42cf2b
inc dword [ebp - 0xc]
jmp 0x42cf43
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42cf43
cmp dword [ebp - 0xc], 0
jle 0x42cf43
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42cf65
xor eax, eax
jmp 0x42cf61
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42cf60
mov eax, esi
jmp 0x42cfb9
inc eax
cmp eax, ecx
jle 0x42cf4d
inc esi
cmp esi, dword [ebp - 8]
jl 0x42cf17
jmp 0x42cfb6
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42cfb6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42cf8e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42cfb0
xor eax, eax
jmp 0x42cfac
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42cfab
mov eax, esi
jmp 0x42cfb9
inc eax
cmp eax, ecx
jle 0x42cf98
inc esi
cmp esi, dword [ebp - 8]
jl 0x42cf76
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d1a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d1c7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d1d7
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42d2f9
test ebx, ebx
jl 0x42d2f9
test esi, esi
jle 0x42d2f9
mov eax, dword [ebp - 8]
call fcn.0040a9c0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a9c0
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42d296
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42d2f9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d27b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d24a
inc dword [ebp - 0x14]
jmp 0x42d25a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42d25a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42d265
or eax, 0xffffffff
jmp 0x42d27b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d278
inc eax
jmp 0x42d27b
or eax, 0xffffffff
test eax, eax
jl 0x42d283
cmp esi, eax
jg 0x42d238
cmp esi, eax
jg 0x42d28e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d2fc
inc edx
dec dword [ebp - 0x1c]
jne 0x42d234
jmp 0x42d2f9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42d2f9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d2e0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d2bf
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42d2ca
or eax, 0xffffffff
jmp 0x42d2e0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d2dd
inc eax
jmp 0x42d2e0
or eax, 0xffffffff
test eax, eax
jl 0x42d2e8
cmp esi, eax
jg 0x42d2a8
cmp esi, eax
jg 0x42d2f3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d2fc
inc edx
dec dword [ebp - 0x1c]
jne 0x42d2a4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c2e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43c2f0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x43ef3c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43ef53
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x43ef43
mov eax, ecx
pop ebx
ret
Function at 0x44f844
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44f858
add esp, 0xfffffff0
call fcn.0040879c
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4498e0]
call fcn.0046d338
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44e880]
call fcn.00470108
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44e880]
call fcn.00470108
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44f8ad
call fcn.004087f4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7448
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b748b
cmp byte [ebx + 0x11], 0
jne 0x4b748b
cmp byte [ebx + 0x24], 0
jne 0x4b748b
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b74a2
mov ecx, dword [0x4ded0c]
mov dl, 1
mov eax, dword [0x487658]
call fcn.00427944
call fcn.00409654
pop ebx
ret
mov ecx, dword [0x4ded0c]
mov dl, 1
mov eax, dword [0x487658]
call fcn.00427944
call fcn.00409654
pop ebx
ret

Function at 0x4b7e14
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b7e62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b72f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7e7b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b7e84
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b72f4
dec esi
jne 0x4b7ea6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d4088
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d41af
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
xor eax, eax
call fcn.00407328
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00421768
mov ebx, dword [ebp - 0x64]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x6c]
call fcn.00428f28
lea eax, [ebp - 4]
mov ecx, 0x4d41c8
mov edx, dword [ebp - 0xc]
call fcn.0040ac0c
push dword [ebp - 4]
push 0x4d41f4
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.004d3a70
push dword [ebp - 0x70]
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0xc]
call fcn.004d3ca4
push dword [ebp - 0x74]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040ac94
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00407a00
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a9c0
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040a9c0
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9c0
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4d4178
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d41b6
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00409fbc
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00409fbc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409fbc
pop eax
jmp eax
Function at 0x403bf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00403b40
mov esi, eax
test esi, esi
jne 0x403ce7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x403cb9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bf0
mov esi, eax
test esi, esi
jne 0x403ce7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x403c80
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403cd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00403a60
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403cf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d6ca5
mov esp, ebp
pop ebp
ret 4
Function at 0x404220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4fd6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov edi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4042c8
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4042c8
call fcn.00403840
mov edi, eax
jmp 0x4043bd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4042e5
call fcn.00403840
jmp 0x4043b0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x404300
call fcn.00403840
jmp 0x4043b0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40431e
mov edi, 0x8007000e
jmp 0x4043b2
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4043f7
jb 0x40433c
cmp eax, 0xffffffff
ja 0x4043f7
cmp eax, 0x400
jbe 0x40434e
push eax
lea ecx, [ebp]
call fcn.0040adb0
jmp 0x404365
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x404365
mov dword [ebp - 4], 1
cmp dword [ebp], 0
jne 0x404379
mov edi, 0x8007000e
jmp 0x4043b2
push edi
push dword [ebp]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x404396
call fcn.00403840
jmp 0x4043b0
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.00404fc0
mov edi, eax
test esi, esi
je 0x4043bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4043d0
lea ecx, [ebp]
call fcn.0040aa20
nop dword [eax]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004d6ca5
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004036e0
int3
Function at 0x406490
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd7e6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5500a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0040b010
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0040b010
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0xc], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0040a4f0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0040a890
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x409d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe166
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x264]
push eax
call fcn.004d40d0
add esp, 4
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 4], 0
push str.config.ini
mov edx, dword [ebp - 0x270]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040b630
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.0040a7c0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004140d0
add esp, 4
movzx edx, al
test edx, edx
jne 0x409df4
mov ecx, dword [ebp + 8]
call fcn.0040a890
mov eax, dword [ebp - 0x268]
or eax, 1
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040a7c0
mov eax, dword [ebp + 8]
jmp 0x409ec9
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004d9580
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040a750
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x528a34
push str.FailedIncrementVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x21c]
test edx, edx
jne 0x409e79
mov ecx, dword [ebp + 8]
call fcn.0040a890
mov eax, dword [ebp - 0x268]
or eax, 1
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040a7c0
mov eax, dword [ebp + 8]
jmp 0x409ec9
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.0040a850
lea edx, [ebp - 0x24c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a810
mov eax, dword [ebp - 0x268]
or eax, 1
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x24c]
call fcn.0040a7c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040a7c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6ca5
mov esp, ebp
pop ebp
ret 4