joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x57943d48
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xe293c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10036b3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100d344]
xor ebx, ebx
cmp eax, ebx
je 0x100372d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10036e1
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100d344]
call esi
test eax, eax
je 0x1003730
mov ecx, 0x1002370
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003710
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100d344]
call esi
test eax, eax
pop edi
je 0x1003730
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1003b40
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101d6e0], 0
jne 0x1003bbd
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002e46
lea eax, [ebp - 0x280]
push eax
call fcn.01003746
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c35c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100d104]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002eb5
test esi, esi
jne 0x1003bc7
inc esi
cmp dword [0x100c360], 0
je 0x1003be2
push 0x100d360
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100c360], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x415020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403830
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403810
xor eax, eax
push ebp
push 0x403809
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40384c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403810
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x415020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x415020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x416044], 0
je 0x404349
cmp word [0x416218], 0xd7b2
jne 0x404311
cmp dword [0x416220], 0
jbe 0x404311
mov eax, 0x416214
call dword [0x416230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404370
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41502c], 0
jne 0x404365
push 0
push 0x415064
push 0x41506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ef4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f5a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004046dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403224
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f61
lea eax, [ebp - 0x10]
call fcn.0040446c
ret
Function at 0x4075d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xc], eax
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x407775
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x34
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x40778c
lea eax, [ebp - 0x114]
mov edx, ebx
call fcn.00404654
push dword [ebp - 0x114]
push 0x4077b0
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.004047c8
mov eax, dword [ebp - 0x110]
call fcn.00404908
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407745
mov dword [esi], 0xff
push esi
lea eax, [ebp - 0x10b]
push eax
push esi
push 0
push 0x4077b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40773c
lea eax, [ebp - 0xc]
call fcn.0040446c
mov dword [esi], 1
jmp 0x4076c8
lea eax, [ebp - 0x118]
mov edx, dword [esi]
mov dl, byte [ebp + edx - 0x10c]
call fcn.00404654
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0xc]
call fcn.00404710
inc dword [esi]
mov eax, dword [esi]
cmp byte [ebp + eax - 0x10c], 0
jne 0x4076a4
push 0x4077c4
push dword [ebp - 0xc]
push 0x4077d0
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.004047c8
mov eax, dword [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
mov ecx, 0x4077ec
mov edx, dword [ebp - 0xc]
call fcn.00404754
mov eax, dword [ebp - 0x120]
push eax
push dword [ebp - 0xc]
push 0x407804
push 0x407828
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.004047c8
mov eax, dword [ebp - 0x124]
pop edx
pop ecx
call fcn.004070f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc ebx
cmp bl, 0x38
jne 0x407617
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40777c
lea eax, [ebp - 0x124]
mov edx, 6
call fcn.00404490
lea eax, [ebp - 0xc]
call fcn.0040446c
ret

Function at 0x40b2f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b32d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040455c
jmp 0x40b336
mov eax, ebx
mov edx, esi
call fcn.004044c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b340
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b361
mov al, byte [esp]
jmp 0x40b363
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b9f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b860
mov eax, dword [0x41556c]
cmp byte [eax], 0
je 0x40ba74
mov eax, dword [0x415490]
call fcn.00402f8c
call fcn.00402b24
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c48
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40babc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41546c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x416660]
call fcn.0040539c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c7bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c820
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004046dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004087fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c827
lea eax, [ebp - 0xc]
call fcn.0040446c
ret
Function at 0x100045f1
Capabilities:
Access peb ldr_data
Get file size
Read file on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov ecx, dword [0x10164700]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
je 0x1000465f
mov edx, eax
jmp 0x10004627
xor edi, edi
cmp edi, ecx
je 0x10004665
mov edx, dword [edx]
cmp edx, eax
je 0x1000466d
mov esi, dword [edx + 0x30]
movzx ebx, word [esi]
test bx, bx
je 0x10004621
add esi, 2
xor edi, edi
jmp 0x10004651
movzx ebx, bx
add edi, ebx
movzx ebx, word [esi]
add esi, 2
test bx, bx
je 0x10004623
lea ebp, [ebx - 0x41]
cmp bp, 0x1a
jae 0x10004641
add ebx, 0x20
jmp 0x10004641
mov edx, dword [eax]
cmp edx, eax
je 0x1000466d
mov eax, dword [edx + 0x18]
mov dword [esp], eax
jmp 0x10004674
mov dword [esp], 0
push dword [0x1016470c]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov edx, dword [0x1016470c]
mov ecx, eax
call fcn.10004561
jmp [eax + 4]
add dword [eax], eax
add byte [esi + 0x6a], dl
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetModuleFileNameW
mov ecx, 0xffffffff
invalid
invalid
invalid
jmp dword [ecx + 0x10164708]
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x100046b1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x100046d1
mov edx, ecx
jmp 0x100046e4
mov word [esi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [esi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x100046d1
movzx ecx, byte [eax]
test cl, cl
je 0x10004702
lea edx, [esi + edx*2]
xor edi, edi
nop
movsx ecx, cl
mov word [edx + edi*2], cx
movzx ecx, byte [eax + edi + 1]
inc edi
test cl, cl
jne 0x100046f1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100049df
mov edi, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov esi, dword [0x101646b8]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, dword [0x101646b8]
adc eax, 0x101646b8
mov ecx, eax
call fcn.10004561
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100049df
mov ebx, dword [esp + 0x20]
add ebx, esi
mov edi, dword [0x101646e4]
mov eax, dword [esi + edi]
test eax, eax
je 0x100047a9
mov ecx, dword [esi + edi + 4]
lea edx, [edi + esi + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add dword [edx], ecx
add edx, 4
dec eax
jne 0x100047a1
mov dword [esp + 0x18], esi
mov ecx, dword [0x101646bc]
mov edx, dword [esp]
test edx, edx
je 0x100049df
mov eax, dword [edx + 0x3c]
mov eax, dword [edx + eax + 0x78]
mov dword [esp + 8], eax
mov eax, dword [edx + eax + 0x18]
mov dword [esp + 0xc], eax
test eax, eax
je 0x100049df
mov esi, dword [esp + 0x18]
lea ebp, [esi + edi]
add ebp, ecx
mov eax, dword [esp + 8]
mov eax, dword [edx + eax + 0x20]
add eax, edx
mov dword [esp + 4], eax
Function at 0x406300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x406337
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406311
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x40630c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406368
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x40634a
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x10024890
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100248ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100248c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100248d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100248b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100249a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100249d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100249d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x100249d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100301f0
Capabilities:
Encode data using xor

Disassembly:
call 0x10030169
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x10030199
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x100301b5
xor edx, 0
jmp 0x100301c0
xor edx, edx
jmp 0x100301d7
jmp 0x100301e3
xor eax, eax
push 0x8427d7c0
call 0x100301f0
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1003022c
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10030205
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x10030243
add eax, 0
jno 0x10030248
add esi, 0
ret 0x10
Function at 0x40b350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40b36a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b360
mov eax, 1
add ebx, ebx
jne 0x40b383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b378
jne 0x40b394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b378
xor ecx, ecx
sub eax, 3
jb 0x40b3a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b41a
mov ebp, eax
add ebx, ebx
jne 0x40b3b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b3c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b3e4
inc ecx
add ebx, ebx
jne 0x40b3d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b3c5
jne 0x40b3e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b3c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b3f5
jmp 0x40b366
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b404
add edi, ecx
jmp 0x40b366
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b463
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd998]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd9f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b421
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd9f8]
or eax, eax
je 0x40b45d
mov dword [ebx], eax
add ebx, 4
jmp 0x40b43e
call dword [esi + 0xd9f4]
mov ebp, dword [esi + 0xd9fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b497
sub esp, 0xffffff80
jmp 0x402528

Function at 0xf6402c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf64036
pushal
call 0xf6403c
pop ebp
sub ebp, 0x10
sub ebp, 0xb6402c
jmp 0xf64052
mov eax, 0xb6402c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0xc48b9951
xor byte [eax], dl
inc eax
dec ecx
jne 0xf64069
jmp 0xf6407c
ficomp dword [edx + ebx*8 + 0x51516dd8]
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x524791e9
Function at 0x401910
Capabilities:
Copy file

Disassembly:
sub esp, 0x614
mov eax, dword [0x70ee84]
xor eax, esp
mov dword [esp + 0x610], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.005df160
mov esi, eax
inc esi
add esp, 8
cmp esi, 1
jne 0x40196b
push 0
push 0x14
push str..GenerateUpdaterXML.cpp
push str._DWORD_fname___1
call fcn.005b9260
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.005b9ca0
add esp, 0xc
test al, al
jne 0x40199e
lea edx, [esp + 0x114]
push edx
push str.failed_to_get_crc_for__s_n
call fcn.005b9120
add esp, 8
push str.1.2.0
push esi
lea eax, [esp + 0x18]
push str._s__s.exe
push eax
call fcn.00401aa0
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4019db
lea edx, [esp + 0x10]
push edx
push esi
push str.unable_to_copy__s___s_n
call fcn.005b9120
add esp, 0xc
push 0x2f
push str.https:__147.50.253.55_NOPPANUTZ_updater_wzupd.xml
call fcn.005df160
mov esi, eax
add esp, 8
test esi, esi
jne 0x401a05
push eax
push 0x21
push str..GenerateUpdaterXML.cpp
push str.updater_file
call fcn.005b9260
add esp, 0x10
lea edi, [esi + 1]
push 0x6d493c
push edi
call fcn.005ba1b0
mov esi, eax
push str._p__n
push esi
call fcn.005df18d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push str.1.2.0
push ecx
lea edx, [esp + 0x2c]
push edx
push str.http:__147.50.253.55_NOPPANUTZ_updater_
push str.__u_url__s_s__crc__u__ver__s__size__u____n
push esi
call fcn.005df18d
push str.__p__n
push esi
call fcn.005df18d
push esi
call fcn.005df320
lea eax, [esp + 0x48]
push eax
push edi
lea ecx, [esp + 0x258]
push str.XML__s_generated_nnew_exe:_s
push ecx
call fcn.00401ac0
add esp, 0x48
push 0
push str.Updater_XML
lea edx, [esp + 0x220]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x618]
pop edi
pop esi
xor ecx, esp
call fcn.005dee98
add esp, 0x614
ret

Function at 0x402440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
mov edi, str.08____:
push 0
sub edi, 0x701c9210
lea esi, [esp + 0x21]
call fcn.004028c0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
setne al
pop edi
pop esi
test al, al
jne 0x4024bf
mov edx, dword [esp + 0x40]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 8]
add edx, 0x88
push edx
push 0
mov byte [esp + 0x18], al
push 0
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x18], 4
mov byte [esp + 0x20], 0x7e
mov byte [esp + 0x21], 0x4d
mov byte [esp + 0x22], 0x48
mov byte [esp + 0x23], 0x7a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x3c
ret 4