joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404561
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x458b30]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push ebx
push esi
mov esi, dword [ebp + 0x1ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
mov ebx, 0x45d688
mov dword [ebp - 0x78], eax
call fcn.004011de
mov esi, 0x451140
lea edi, [ebp + 0x198]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x198]
push eax
mov eax, dword [ebp - 0x78]
mov dword [0x45d8dc], 1
movsw word es:[edi], word [esi]
call fcn.00401095
mov edi, eax
test edi, edi
pop ecx
je 0x404612
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.UnregServer
push edi
call esi
test eax, eax
je 0x404675
push str.RegServer
push edi
call esi
test eax, eax
je 0x4046a7
push str.Service
push edi
call esi
test eax, eax
je 0x4046b1
lea eax, [ebp + 0x198]
push eax
mov eax, edi
call fcn.00401095
mov edi, eax
test edi, edi
pop ecx
jne 0x4045cd
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x74]
push ecx
xor eax, eax
mov edi, 0x20019
push edi
push eax
push str.AppID
push SysReAllocString
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], eax
call esi
test eax, eax
jne 0x40464f
lea ecx, [ebp - 0x7c]
call fcn.0040712c
mov edx, dword [ebp - 0x74]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x7c], edx
je 0x4046b5
mov esi, eax
lea ecx, [ebp - 0x7c]
call fcn.0040712c
mov eax, esi
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414511
add ebp, 0x1a4
leave
ret 0x10
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
jl 0x40465b
mov eax, dword [0x45d688]
push esi
push esi
push 0x64
push ebx
call dword [eax + 0x20]
mov eax, ebx
call fcn.004013c3
mov eax, ebx
call fcn.00408327
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x40465b
push 0
push ebx
call fcn.004010d6
jmp 0x40465b
push 1
jmp 0x4046a9
lea eax, [ebp - 0x78]
push eax
push edi
push ecx
push str.A3CD040A_E706_4836_B7D3_3B364C7BD9F8
push edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
call esi
mov esi, eax
test esi, esi
jne 0x4046e3
lea ecx, [ebp - 0x74]
call fcn.0040712c
mov esi, eax
test esi, esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
je 0x4046f0
lea ecx, [ebp - 0x74]
call fcn.0040712c
jmp 0x404651
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x70]
mov dword [ebp - 0x80], 0x104
call fcn.00407aa3
and dword [0x45d8dc], 0
test eax, eax
jne 0x40471b
mov dword [0x45d8dc], 1
mov edi, ebx
call fcn.00401502
mov esi, dword [0x45d8c8]
jmp 0x4046e3
Function at 0x405dcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x458b30]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x428440
call fcn.00416f50
mov eax, dword [ebp + 0x414]
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [0x459ee4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x410]
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x405e3e
call fcn.00405ab4
mov esi, eax
jmp 0x405f5b
push dword [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x405e59
call fcn.00405ab4
jmp 0x405f50
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x405e4f
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x405ec4
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405e90
lea eax, [ebp]
call fcn.00406ee1
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00405a9b
mov eax, esi
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.00414511
add ebp, 0x408
leave
ret 0xc
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00405f74
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x405ee5
push eax
lea eax, [ebp]
push eax
call fcn.00406eea
jmp 0x405eeb
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x405f0e
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x405f1c
mov esi, 0x8007000e
jmp 0x405f52
call dword [0x459ee4]
push edi
push ebx
push edi
push dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x405e4f
mov ecx, dword [ebp]
push dword [ebp + 0x418]
mov word [ecx + eax*2], si
mov ecx, dword [ebp]
lea edx, [ebp - 0x28]
call fcn.00405fb9
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405e95
lea eax, [ebp]
call fcn.00406ee1
jmp 0x405e95
Function at 0x406f0b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x406f1e
push 0x80004005
call fcn.00407a8a
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x406f25
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x406ff3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x458b30]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x218]
push edx
push 0x2001f
xor esi, esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x407058
lea ecx, [ebp - 0x210]
call fcn.0040712c
cmp eax, esi
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x210], ecx
je 0x407078
lea ecx, [ebp - 0x210]
mov esi, eax
call fcn.0040712c
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414511
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x4070c9
lea eax, [ebp - 0x20c]
push eax
call fcn.00406ff3
cmp eax, esi
jne 0x407058
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x210]
je 0x40709a
call fcn.0040712c
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x407058

Function at 0x407aa3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x407ab8
push 0x80004005
call fcn.00407a8a
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push str.LocalService
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x407b12
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x407b0f
cmp dword [ebp - 4], ebx
jbe 0x407b0c
cmp dword [ebp - 4], 2
jbe 0x407b17
cmp dword [ebp - 4], 7
jne 0x407b0c
test cl, 1
jne 0x407b0c
shr ecx, 1
cmp ecx, 1
jb 0x407b0c
cmp word [esi + ecx*2 - 2], bx
jne 0x407b0c
cmp ecx, 1
jbe 0x407b12
cmp word [esi + ecx*2 - 4], bx
je 0x407b12
push 0xd
pop eax
mov word [esi], bx
pop ebx
leave
ret 4
test cl, 1
jne 0x407b0c
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jmp 0x407b0a
Function at 0x408ae8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x408afb
push 0x80004005
call fcn.00407a8a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x414511
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458b30]
jne 0x41451b
repz ret
jmp fcn.0041ae43

Function at 0x4183b6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x458cc0]
je 0x4183d1
inc edi
cmp edi, 0x17
jb 0x4183c2
cmp edi, 0x17
jae 0x418551
push ebp
push 3
call fcn.00420106
cmp eax, 1
pop ecx
je 0x41851d
push 3
call fcn.00420106
test eax, eax
pop ecx
jne 0x418405
cmp dword [0x458b00], 1
je 0x41851d
cmp ebx, 0xfc
je 0x418550
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45bff0
push ebp
call fcn.0041b972
add esp, 0xc
test eax, eax
je 0x41843b
push esi
push esi
push esi
push esi
push esi
call fcn.00414367
add esp, 0x14
push 0x104
mov esi, 0x45c009
push esi
push 0
mov byte [0x45c10d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41847f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041b972
add esp, 0xc
test eax, eax
je 0x41847f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414367
add esp, 0x14
push esi
call fcn.00414c00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4184c4
push esi
call fcn.00414c00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45c304
push 0x44df84
sub ecx, eax
push ecx
push eax
call fcn.00420053
add esp, 0x14
test eax, eax
je 0x4184c4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00414367
add esp, 0x14
jmp 0x4184c6
xor esi, esi
push 0x44df80
push ebx
push ebp
call fcn.0041ffe2
add esp, 0xc
test eax, eax
je 0x4184e6
push esi
push esi
push esi
push esi
push esi
call fcn.00414367
add esp, 0x14
push dword [edi*8 + 0x458cc4]
push ebx
push ebp
call fcn.0041ffe2
add esp, 0xc
test eax, eax
je 0x418508
push esi
push esi
push esi
push esi
push esi
call fcn.00414367
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041fe25
add esp, 0xc
jmp 0x418550
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x418550
cmp ebp, 0xffffffff
je 0x418550
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x458cc4]
push dword [esi]
call fcn.00414c00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41fe25
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418f7a
xor ebx, ebx
cmp dword [0x45caf0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41fefb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ffdb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e258
push edi
call esi
cmp eax, ebx
je 0x41ffdb
push eax
call fcn.00418f0c
mov dword [esp], 0x44e248
push edi
mov dword [0x45caf0], eax
call esi
push eax
call fcn.00418f0c
mov dword [esp], 0x44e234
push edi
mov dword [0x45caf4], eax
call esi
push eax
call fcn.00418f0c
mov dword [0x45caf8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004180c1
test eax, eax
pop ecx
pop ecx
je 0x41fec9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414367
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41fefb
push 0x44e218
push edi
call esi
push eax
call fcn.00418f0c
cmp eax, ebx
pop ecx
mov dword [0x45cb00], eax
je 0x41fefb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418f0c
pop ecx
mov dword [0x45cafc], eax
mov eax, dword [0x45cafc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41ff80
cmp dword [0x45cb00], ecx
je 0x41ff80
push eax
call fcn.00418f83
push dword [0x45cb00]
mov esi, eax
call fcn.00418f83
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41ff80
cmp edi, ebx
je 0x41ff80
call esi
cmp eax, ebx
je 0x41ff4d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ff4d
test byte [ebp - 0x18], 1
jne 0x41ff80
lea eax, [ebp - 0x10]
push eax
call fcn.004180f8
test eax, eax
pop ecx
je 0x41ff68
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414367
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ff77
or dword [ebp + 0x10], 0x200000
jmp 0x41ffbb
or dword [ebp + 0x10], 0x40000
jmp 0x41ffbb
mov eax, dword [0x45caf4]
cmp eax, dword [ebp - 8]
je 0x41ffbb
push eax
call fcn.00418f83
cmp eax, ebx
pop ecx
je 0x41ffbb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ffbb
mov eax, dword [0x45caf8]
cmp eax, dword [ebp - 8]
je 0x41ffbb
push eax
call fcn.00418f83
cmp eax, ebx
pop ecx
je 0x41ffbb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45caf0]
call fcn.00418f83
cmp eax, ebx
pop ecx
je 0x41ffdb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ffdd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427145
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x458b30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004270da
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004149e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x427194
cmp dword [ebp - 0x1c], 5
jb 0x4271ac
jmp 0x4271a8
cmp dword [ebp - 0x10], 1
jne 0x4271ac
cmp dword [ebp - 0x1c], 4
ja 0x4271a8
jne 0x4271ac
cmp dword [ebp - 0x18], 0
jbe 0x4271ac
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f404
call fcn.00408ba1
test eax, eax
jge 0x4271cd
mov byte [0x45d8e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414511
add ebp, 0x78
leave
ret

Function at 0x42b820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42b8b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x42b898
xor eax, eax
push ebp
push 0x42b891
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 0x42b8d4
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 0x42b898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x45f014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f014], ax
mov esp, ebp
pop ebp
ret

Function at 0x42c3ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46103c], 0
je 0x42c40d
cmp word [0x461210], 0xd7b2
jne 0x42c3d5
cmp dword [0x461218], 0
jbe 0x42c3d5
mov eax, 0x46120c
call dword [0x461228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45f05c
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 0x42c434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x45f020], 0
jne 0x42c429
push 0
push 0x45f054
push 0x45f05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x42d7f0
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 0x42d856
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.0042c750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0042b714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x42d840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d85d
lea eax, [ebp - 0x10]
call fcn.0042c528
ret

Function at 0x42f420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x42f4be
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0042ca68
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0042c9d4
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x42f448
cmp byte [esp], 0
je 0x42f48f
mov eax, edi
call fcn.0042c9d4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x42f4ca
mov eax, edi
call fcn.0042c9d4
push eax
mov eax, edi
call fcn.0042c9d4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0042b5ec
mov edx, ebx
mov eax, edi
call fcn.0042ca68
jmp 0x42f4ca
mov eax, edi
mov edx, 0x42f4d8
call fcn.0042c57c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42fd38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0042c57c
mov eax, ebx
call fcn.0042c9cc
mov eax, dword [ebx]
call fcn.0042c77c
test eax, eax
jle 0x42fd69
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x42fd5e
pop esi
pop ebx
ret

Function at 0x430048
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x430094
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00430fa4
test al, al
jne 0x43008a
cmp word [edi], 0x5a4d
jne 0x43008a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x43008a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4300a0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x430230
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x45f230], 0
jne 0x430311
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x430283
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x4302b4
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x430311
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4302df
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x4302f1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x43030b
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x430508
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x430603
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x43054c
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x430580
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0042cc24
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.0042c768
mov eax, dword [ebp - 8]
call fcn.0042c97c
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4305e5
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4305df
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4305d9
mov eax, dword [ebp - 4]
call fcn.00430048
test eax, eax
je 0x4305c6
cmp word [eax + 0x18], 0x20b
je 0x4305ca
xor eax, eax
jmp 0x4305cc
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43060a
lea eax, [ebp - 0xc]
call fcn.0042cafc
lea eax, [ebp - 8]
call fcn.0042c528
ret
Function at 0x433c58
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x433cd4
cmp dword [esp + 0x10], 0x1000
jne 0x433cd4
cmp dword [esp + 4], 0
je 0x433cd4
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x433cd4
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x433cd4
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x433cd4
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret