joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403203
pop dword [ebp - 0x4c]
mov eax, 0xd96a7aab
add eax, 0x26d5b758
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x450d3bfa
sub dword [ebp - 0x5c], 0xf6baf6af
mov dword [ebp - 0x58], 0xef7492f2
sub dword [ebp - 0x58], 0xbd4146ad
mov dword [ebp - 0x54], 0x6400bafa
sub dword [ebp - 0x54], 0x17b476cc
mov dword [ebp - 0x50], 0xa1fc87f3
sub dword [ebp - 0x50], 0xa1fc87f3
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x207b2307
sub eax, 0x203ab2a3
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x12914804
sub dword [ebp - 0x5c], 0x9e1edeae
mov dword [ebp - 0x58], 0xafea31f9
sub dword [ebp - 0x58], 0x6e7dd084
mov dword [ebp - 0x54], 0x1ed28d31
add dword [ebp - 0x54], 0x449cdf3b
mov dword [ebp - 0x50], 0xa66ada14
sub dword [ebp - 0x50], 0xa66ada14
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x2497891e
add eax, 0xdba8e78a
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x34115
push 0
call eax
mov ecx, 0x511e425b
sub ecx, 0x511e0476
xor edx, edx
add edx, eax
mov edi, 0xc2a1cdce
add edi, 0x3d9f3232
add edi, dword [ebp - 0x4c]
mov esi, 0x788854bc
add esi, 0xf2442ace
xor dword [ebp - 8], edx
mov ebx, dword [edi]
add dword [ebp - 0xc], edx
sub ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x38], 0xba871642
add edx, 0x826f1a21
sub edx, 0x826f1a1d
add edi, 0x7c6e7f02
add edi, 0x83918102
loop 0x403327
add eax, 0xea67
xor ebx, ebx
add ebx, eax
add eax, 0xf72f5aa4
add eax, 0x8d0a561
mov ecx, 0xa15d962e
add ecx, 0x5ee269d2
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4019b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406460
push 0x4055c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a678], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a674], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a670], ecx
shr eax, 0x10
mov dword [0x40a66c], eax
call fcn.00404080
test eax, eax
jne 0x401a1a
push 0x1c
call fcn.004020e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402380
call fcn.00404bc0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40aa30], eax
call fcn.00401f80
mov dword [0x40a654], eax
test eax, eax
je 0x401a4d
mov eax, dword [0x40aa30]
test eax, eax
jne 0x401a57
push 0xffffffffffffffff
call fcn.00401b50
add esp, 4
call fcn.00401910
call fcn.00404ec0
call fcn.00404e80
mov esi, dword [0x40aa30]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401b36
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401a9e
test al, al
je 0x401a9e
and eax, 0xff
push eax
call fcn.004040c0
add esp, 4
test eax, eax
je 0x401a78
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401a78
cmp byte [esi], 0x22
jne 0x401aa7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401ab7
cmp al, 0x20
ja 0x401ab7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401aa7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401ad8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401add
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401b50
jmp 0x401b1b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401aa7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b36
Function at 0x401f80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40a7b8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x401fc2
call edi
mov esi, eax
test esi, esi
je 0x401fac
mov eax, 1
jmp 0x401fbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4020cf
mov eax, 2
mov dword [0x40a7b8], eax
cmp eax, 1
jne 0x402062
test esi, esi
jne 0x401fdb
call edi
mov esi, eax
test esi, esi
je 0x4020cf
cmp word [esi], 0
mov eax, esi
je 0x401ff5
add eax, 2
cmp word [eax], 0
jne 0x401fe3
add eax, 2
cmp word [eax], 0
jne 0x401fe3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402054
push edi
call fcn.00403ac0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402054
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402046
push ebx
call fcn.00403ae0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4020cf
test ebx, ebx
jne 0x402073
call ebp
mov ebx, eax
test ebx, ebx
je 0x4020cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40208b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40207b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40207b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403ac0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4020ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4021a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4075a8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4021c4
add eax, 8
inc ebp
cmp eax, 0x407638
jb 0x4021b5
cmp ecx, dword [ebp*8 + 0x4075a8]
jne 0x40236b
mov eax, dword [0x40a65c]
cmp eax, 1
je 0x40232d
test eax, eax
jne 0x4021f0
cmp dword [0x407400], 1
je 0x40232d
cmp ecx, 0xfc
je 0x40236b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40222b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402274
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406740
add ebx, ecx
push ebx
call fcn.004056a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406720
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4075ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403dc0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a920]
test eax, eax
je 0x40233e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402348
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4075ac]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x405080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6a8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40509f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6a4], 1
mov byte [0x40a6a0], bl
jne 0x4050f9
mov ecx, dword [0x40aa28]
test ecx, ecx
je 0x4050e7
mov esi, dword [0x40aa24]
sub esi, 4
cmp esi, ecx
jb 0x4050e7
mov eax, dword [esi]
test eax, eax
je 0x4050e0
call eax
mov ecx, dword [0x40aa28]
sub esi, 4
cmp esi, ecx
jae 0x4050d2
push 0x407014
push 0x407010
call fcn.00405130
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405130
add esp, 8
test ebx, ebx
jne 0x405120
push ebp
mov dword [0x40a6a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40cacf
pop dword [ebp - 0x38]
mov eax, 0xb73e808a
add eax, 0x49024a45
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3c16e
push 0
mov eax, 0x729f83a0
sub eax, 0x725ea2c8
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x536c
xor edi, edi
add edi, eax
mov esi, 0x327e278
sub esi, 0x2e6a6b4
add esi, dword [ebp - 0x38]
mov ebx, 0xf1872dcf
add ebx, 0x2ae45ded
sub dword [ebp - 0x10], 0xee07438
mov edx, dword [esi]
add dword [ebp - 0x28], ebx
xor edx, ebx
xor dword [ebp - 0xc], 0xc273bd47
mov dword [edi], edx
sub dword [ebp - 0x2c], ecx
add edi, 0x99a7cf55
add edi, 0x665830af
add esi, 0xa1adccd6
sub esi, 0xa1adccd2
loop 0x40cb2a
add eax, 0xc2837081
add eax, 0x3d7dd002
mov ebx, eax
add eax, 0x2aa59b9e
add eax, 0xd55a6467
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40c800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40c822
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c818
mov eax, 1
add ebx, ebx
jne 0x40c83b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c830
jne 0x40c84c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c830
xor ecx, ecx
sub eax, 3
jb 0x40c860
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c8d2
mov ebp, eax
add ebx, ebx
jne 0x40c86b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c89c
inc ecx
add ebx, ebx
jne 0x40c888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c87d
jne 0x40c899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c87d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c8bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c8ad
jmp 0x40c81e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c8bc
add edi, ecx
jmp 0x40c81e
pop esi
mov edi, esi
mov ecx, 0x5e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c8da
cmp byte [edi], 2
jne 0x40c8da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40c8df
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c94e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c90c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc058]
or eax, eax
je 0x40c948
mov dword [ebx], eax
add ebx, 4
jmp 0x40c929
call dword [esi + 0xc054]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40c97f
cmp al, 0xef
ja 0x40c972
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40c954
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40c961
mov ebp, dword [esi + 0xc05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xc9da]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c9cb
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x36
call ebx
add byte [esi + edi], 0x71
call ebx
xor byte [esi + edi], 0x56
call ebx
add byte [esi + edi], 0x59
call ebx
add byte [esi + edi], 0xe3
call ebx
add byte [esi + edi], 0x7e
call ebx
add byte [esi + edi], 0x91
call ebx
xor byte [esi + edi], 0x67
call ebx
add byte [esi + edi], 0x75
call ebx
add byte [esi + edi], 0xd5
call ebx
xor byte [esi + edi], 0x90
call ebx
add byte [esi + edi], 0x11
call ebx
add byte [esi + edi], 0xfa
call ebx
add byte [esi + edi], 0xa2
call ebx
add byte [esi + edi], 0x24
call ebx
add byte [esi + edi], 0x76
call ebx
xor byte [esi + edi], 0xd
call ebx
add byte [esi + edi], 0x26
call ebx
add byte [esi + edi], 0x74
call ebx
add byte [esi + edi], 0x42
call ebx
add byte [esi + edi], 0x9a
call ebx
add byte [esi + edi], 0x83
call ebx
add byte [esi + edi], 0x9d
call ebx
add byte [esi + edi], 0xd4
call ebx
add byte [esi + edi], 0x93
call ebx
xor byte [esi + edi], 0x3b
call ebx
add byte [esi + edi], 0x38
call ebx
add byte [esi + edi], 5
call ebx
add byte [esi + edi], 0x18
call ebx
add byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0x8f
call ebx
xor byte [esi + edi], 0x13
call ebx
xor byte [esi + edi], 0x97
call ebx
xor byte [esi + edi], 0xe6
call ebx
add byte [esi + edi], 0xae
call ebx
add byte [esi + edi], 0x1f
call ebx
xor byte [esi + edi], 0xd3
call ebx
add byte [esi + edi], 0x79
call ebx
add byte [esi + edi], 0xbf
call ebx
xor byte [esi + edi], 0xab
call ebx
add byte [esi + edi], 0xa9
call ebx
xor byte [esi + edi], 0x9f
call ebx
add byte [esi + edi], 0xb6
call ebx
xor byte [esi + edi], 0xae
call ebx
add byte [esi + edi], 0x16
call ebx
xor byte [esi + edi], 0xc5
call ebx
add byte [esi + edi], 0xfa
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 0xc1
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4460ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x417bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac