joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68e1e8
Capabilities:
Encode data using xor

Disassembly:
and esp, dword [ebx + 0x41]
mov bl, 0x26
xchg ecx, eax
adc al, byte [edi]
or dword [eax], 0xa575c038
sub al, 0x5c
adc byte [eax + 0x59d66c05], 0xa4
and al, 0xe1
imul edx, dword [ebp + 0x62], 0xffffffd6
xchg ecx, eax
sbb eax, 0xdde33412
mov ecx, 0x7c5308d8
fnstsw word [ecx + 0x7c5308d8]
jecxz 0x68e167
adc dword [edi], edx
xor dword [ecx - 0x390883ea], esp
xor dl, byte [ebp + 0x3b1902d7]
test eax, 0xf813284b
cmp dword [ecx + 0x475a1f3], edx
xlatb
fcomp qword [0x819975ca]
add edi, dword fs:[edi + edi]
adc dword [edx], esp
movsb byte es:[edi], byte [esi]
jno 0x68e1dc
add dword [0x6fb7dfed], ebx
mov dl, 0xed
xor eax, 0x6515336c
adc al, 0xbf
in eax, dx
sub edx, dword cs:[ebp + 0x11]
and ah, ah
and dword [esi - 0x11], esi
call [eax + 0x6e3b67bc]
cmp ebp, dword [bp - 0x11]
out dx, eax
sbb bh, bl
sub ecx, dword ds:[ecx - 0x60e66066]
jae 0x68e1d9
cmc
rol esp, 1
push esp
add al, 0xda
push ss
movsd dword es:[edi], dword [esi]
inc ebp
stc
in eax, dx
test dword [edx - 0x15], esi
jge 0x68e24c
push esp
jl 0x68e18a
lodsd eax, dword [esi]
jp 0x68e23f
add eax, 0x64e44644
and ah, dl
lodsb al, byte [esi]
loop 0x68e265
dec edi
sahf
xlatb
test al, 0xa2
cmp edx, 0xffffff8b
test byte [0x696d0a49], ah
and dword [ecx], esp
cli
movsd dword es:[edi], dword [esi]
and esi, ebx
xchg edx, eax
mov dh, 0xae
inc ebx
test eax, 0x39394e0f
sti
add cl, byte [eax - 0x168b3b26]
mov ebp, 0xe0de15c9
mov esp, 0xa6797712
std
jnp 0x68e249
cmp eax, 0x1bd2f8e7
jno 0x68e1f7
jno 0x68e1f7
je 0x68e29f
in al, 0x76
fcom dword [ecx - 0x49]
push ss
call [esi]
loopne 0x68e253
push es
add ecx, dword [0x1d1cc840]
int3
adc eax, 0x7128a37d
xor eax, 0x24faff60
ret
call 0xb8de630c
inc edi
mov ebx, 0xedf97057
xor edi, esi
aaa
mov esp, 0x36f3b75b
and al, 0x31
fst dword [eax - 0x6c]
or esi, dword [edx + 0x6404ad38]
jns 0x68e33e
xor al, 0x93
invalid
jo 0x68e314
movsb byte es:[edi], byte [esi]
out dx, eax
sub eax, 0x70f01bbd
fstp xword [ebx + edi - 0x6496764e]
mov ch, 0x91
xchg ecx, eax
xor al, 0x31
xchg edi, eax
in al, 0x10
pop esi
xchg byte [ecx + 0x33190164], bl
jo 0x68e2c4
dec esp
loop 0x68e339
jmp 0x68e30d
into
pop ds
mov esp, edx
add al, bh
add byte [eax], ch
imul edx, esp, 0x96df4c9a
mov cs, word [eax]
or byte [ecx], dl
xor dword [esi], ebp
mov dword [esi + 0x7a], 0x816047ac
sub byte [ecx - 0x2c], ch
lcall 0x808, 0x8e96df4c
adc dword [ecx], esi
mov dword cs:[esi + 0x7a], 0x816047ac
dec ecx
jmp 0x71fdee6e
in al, dx
movsb byte es:[edi], byte [esi]
mov ch, 0xb
in al, dx
xchg esp, eax
jne 0x68e2d5
aad 0x10
in al, 0xee
inc esi
clc
int3
Function at 0x6da4d8
Capabilities:
Encode data using xor

Disassembly:
invalid
cdq
or dword [0x5aaac81f], ebp
popal
aaa
or ch, byte [edx]
insd dword es:[edi], dx
test al, 0x73
std
adc eax, 0x23673b47
push eax
sbb esp, esi
rol byte [ebp + 0x77], cl
xchg edi, eax
and edx, dword [eax + 0x1b]
out 0xd2, al
inc ebp
ja 0x6da48b
out 0x43, al
packuswb mm1, mm3
inc ebp
xor eax, 0xb3e990e5
pop es
mov bh, 0xb0
push ss
xchg esi, eax
imul ecx, dword [esi], 0x25
mov ebp, 0xe39a6d28
xchg esi, eax
neg bh
mov esp, edi
aad 0xa0
movsd dword es:[edi], dword [esi]
pop eax
sbb edx, dword [edx - 0x7f]
add edi, dword [edi + eax + 0x55]
adc esi, eax
mov al, 0x4d
rcl dword [edi + eax*8 + 0x71], cl
jecxz 0x6da4ec
imul ecx, ebp, 0xfa985fc7
cmpsd dword [esi], dword es:[edi]
sbb ah, byte [esi - 0x1f7a9509]
fsub qword [edx]
pop edx
xor eax, 0x27d94a81
push ebp
daa
dec edx
xor byte [esi], dl
aad 0x95
daa
scasd eax, dword es:[edi]
daa
cmpsd dword [esi], dword es:[edi]
enter 0x7b8a, 0xffffffffffffffc4
inc esp
fsub st(7)
mov dword [0xd0e2c317], eax
pop edx
cmp byte [eax], ah
xor dword [ebp + 0x55da6009], esp
jbe 0x6da537
mov dword [ecx - 0x3d], 0xa225c279
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x33680c98
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x747b5ade
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xce91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcfb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce9c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x643940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5d2015
lea edi, [esi - 0x1d1015]
push edi
jmp 0x64395a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643950
mov eax, 1
add ebx, ebx
jne 0x643973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643984
jne 0x6439a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6439a3
dec eax
add ebx, ebx
jne 0x643990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643968
add ebx, ebx
jne 0x64399f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6439f5
xor ecx, ecx
sub eax, 3
jb 0x6439bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x643a2a
sar eax, 1
mov ebp, eax
jmp 0x6439c6
add ebx, ebx
jne 0x6439c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643994
inc ecx
add ebx, ebx
jne 0x6439d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643994
add ebx, ebx
jne 0x6439e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6439d6
jne 0x6439f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6439d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x643a14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x643a06
jmp 0x643956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x643a14
add edi, ecx
jmp 0x643956
pop esi
mov edi, esi
mov ecx, 0x13968
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x643a32
cmp byte [edi], 0x27
jne 0x643a32
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 0x643a37
lea edi, [esi + 0x240000]
mov eax, dword [edi]
or eax, eax
je 0x643aa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2472c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x247440]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x643a64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x247444]
or eax, eax
je 0x643aa0
mov dword [ebx], eax
add ebx, 4
jmp 0x643a81
call dword [esi + 0x247454]
mov ebp, dword [esi + 0x247448]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x643ada
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xfa0
push ebx
push esi
push edi
push str.File
push 0x64
push 0
mov ebx, 4
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401517
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.Could_not_find_DLL_resource__error:__i
push eax
call fcn.004024b9
lea ecx, [esp + 0x18]
push ecx
push str.DCL1InstallerTrace.txt
call fcn.00401b80
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0xfa0
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40155a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Could_not_load_DLL_resource__error:__i
push edx
call fcn.004024b9
lea eax, [esp + 0x18]
push eax
push str.DCL1InstallerTrace.txt
call fcn.00401b80
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0xfa0
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xfb0]
test eax, eax
mov dword [ecx], eax
jne 0x4015a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Could_not_lock_DLL_resource__error:__i
push edx
call fcn.004024b9
lea eax, [esp + 0x18]
push eax
push str.DCL1InstallerTrace.txt
call fcn.00401b80
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xfa0
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xfb4]
test eax, eax
mov dword [ecx], eax
jne 0x4015fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Could_not_get_size_of_DLL_resource__error:__i
push edx
call fcn.004024b9
lea eax, [esp + 0x18]
push eax
push str.DCL1InstallerTrace.txt
call fcn.00401b80
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xfa0
ret
lea ecx, [esp + 0xc]
push str.DLL_resource_loaded_into_memory
push ecx
call fcn.004024b9
lea edx, [esp + 0x14]
push edx
push str.DCL1InstallerTrace.txt
call fcn.00401b80
add esp, 0x10
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xfa0
ret

Function at 0x401ad0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, eax
and eax, 0xffff
mov ecx, eax
mov edx, eax
shr ecx, 0xa
and edx, 0x3ff
push ecx
push edx
push eax
lea eax, [esp + 0x10]
push str.Users_lang_ID_is__x__Primary__x_sublanguage__x
push eax
call fcn.004024b9
lea ecx, [esp + 0x18]
push ecx
push str.DCL1InstallerTrace.txt
call fcn.00401b80
push 0xc8
push esi
call fcn.00401a80
push 0xc9
push esi
mov dword [0x4114a0], eax
call fcn.00401a80
push 0xca
push esi
mov dword [0x4114a4], eax
call fcn.00401a80
add esp, 0x34
mov dword [0x4114a8], eax
pop esi
add esp, 0xfa0
ret
Function at 0x401b80
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x41003d]
sub esp, 0x198
test al, al
push esi
je 0x401c68
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x401bef
push 1
push 0x23
push 0x4114b0
push 0
mov byte [0x41003c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [esp + 0x1a0]
push ecx
push 0x4114b0
call fcn.00402767
push 0x40eaa4
push 0x4114b0
call fcn.0040282b
add esp, 0x10
jmp 0x401c94
push edi
push 1
push 0x1a
push 0x4114b0
push 0
mov byte [0x41003c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x1a4]
lea eax, [esp + 0x9c]
push edx
push 0x40e964
push eax
call fcn.00402715
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
push 0x40eaa0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4114b0
mov esi, edi
mov edx, ecx
mov edi, 0x4114b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004027e7
add esp, 0x14
mov esi, eax
pop edi
jmp 0x401c96
mov al, byte [0x41003c]
test al, al
je 0x401c82
push 0x40ea98
push 0x4114b0
call fcn.0040282b
jmp 0x401c91
push 0x40ea94
push 0x4114b0
call fcn.004027e7
add esp, 8
mov esi, eax
test esi, esi
je 0x401cf7
mov al, byte [0x41003d]
test al, al
je 0x401ce0
push esi
call fcn.00401d00
push esi
call fcn.00401d60
push esi
call fcn.00401f80
push 0x40ea78
push esi
call fcn.00402160
push 0x40ea5c
push esi
call fcn.00402160
push 0x40ea58
push esi
call fcn.00402160
add esp, 0x24
mov byte [0x41003d], 0
mov eax, dword [esp + 0x1a4]
push eax
push esi
call fcn.00402160
push esi
call fcn.0040255f
add esp, 0xc
pop esi
add esp, 0x198
ret
Function at 0x401d60
Capabilities:
Check os version

Disassembly:
mov eax, 0x1034
call fcn.00402530
push esi
mov esi, dword [esp + 0x103c]
push 0x40ee18
push esi
call fcn.00402160
push 0x40edf8
push esi
call fcn.00402160
add esp, 0x10
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401db9
push 0x40edc0
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp eax, 1
jne 0x401e3c
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp ecx, 4
jne 0x401e12
test eax, eax
jne 0x401de2
push 0x40ed9c
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp eax, 0xa
jne 0x401dfa
push 0x40ed78
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp eax, 0x5a
jne 0x401e12
push 0x40ed54
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
push eax
push ecx
lea ecx, [esp + 0xa0]
push 0x40ecfc
push ecx
call fcn.004024b9
lea edx, [esp + 0xa8]
push edx
push esi
call fcn.00402160
add esp, 0x18
jmp 0x401f1e
cmp eax, 2
jne 0x401ef0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp ecx, 3
jne 0x401e6a
cmp eax, 0x33
jne 0x401ec9
push 0x40ecd0
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp ecx, 4
jne 0x401e86
test eax, eax
jne 0x401ec9
push 0x40eca4
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp ecx, 5
jne 0x401ec9
test eax, eax
jne 0x401e9f
push 0x40ec7c
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp eax, 1
jne 0x401eb4
push 0x40ec58
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
cmp eax, 2
jne 0x401ec9
push 0x40ec30
push esi
call fcn.00402160
add esp, 8
jmp 0x401f1e
push eax
push ecx
lea eax, [esp + 0xa0]
push 0x40ebdc
push eax
call fcn.004024b9
lea ecx, [esp + 0xa8]
push ecx
push esi
call fcn.00402160
add esp, 0x18
jmp 0x401f1e
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push ecx
push eax
lea edx, [esp + 0xa4]
push 0x40eb80
push edx
call fcn.004024b9
lea eax, [esp + 0xac]
push eax
push esi
call fcn.00402160
add esp, 0x1c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x98]
push ecx
push 0x40eb5c
push edx
call fcn.004024b9
lea eax, [esp + 0xa4]
push eax
push esi
call fcn.00402160
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xac]
push ecx
push 0x40eb34
push edx
call fcn.004024b9
lea eax, [esp + 0xb8]
push eax
push esi
call fcn.00402160
push 0x40ea58
push esi
call fcn.00402160
add esp, 0x30
pop esi
add esp, 0x1034
ret

Function at 0x401f80
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xfc8
push esi
mov esi, dword [esp + 0xfd0]
push 0x40f064
push esi
call fcn.00402160
push 0x40f038
push esi
call fcn.00402160
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push 0x40f010
push edx
call fcn.004024b9
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00402160
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push 0x40efdc
push edx
call fcn.004024b9
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.00402160
mov ecx, dword [esp + 0x2c]
add esp, 0x28
and ecx, 0xffff
cmp ecx, 0xffff
inc dword [eax]
add byte [edi + 0x4d], bh
Function at 0x4021f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xfa4
mov eax, dword [esp + 0xfa8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xfb8]
shr esi, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
xor ebp, ebp
inc esi
push edi
mov edi, dword [esp + 0xfc0]
and esi, 0xffff
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x402275
push 9
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x402275
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xfbc]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x40f134
push edx
call fcn.004024b9
lea eax, [esp + 0x24]
push eax
push 0x40f110
call fcn.00401b80
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfa4
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4022bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push 0x40f0d0
push ecx
call fcn.004024b9
lea edx, [esp + 0x20]
push edx
push 0x40f110
call fcn.00401b80
add esp, 0x14
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfa4
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x402305
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push 0x40f090
push eax
call fcn.004024b9
lea ecx, [esp + 0x20]
push ecx
push 0x40f110
call fcn.00401b80
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xfa4
ret
mov eax, dword [esp + 0xfbc]
and eax, 0xf
jbe 0x40231d
xor edx, edx
dec eax
mov dx, word [ebx]
lea ebx, [ebx + edx*2 + 2]
jne 0x402311
xor eax, eax
mov ax, word [ebx]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00402380
xor ecx, ecx
mov ebp, eax
mov cx, word [ebx]
lea esi, [ebx + 2]
shl ecx, 1
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]

Function at 0x406809
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4105d0
cmp edx, dword [eax]
je 0x40682b
add eax, 8
inc ecx
cmp eax, 0x410660
jl 0x40681c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4105d0]
jne 0x406959
mov eax, dword [0x4116c0]
cmp eax, 1
je 0x406933
test eax, eax
jne 0x40685c
cmp dword [0x4101b4], 1
je 0x406933
cmp edx, 0xfc
je 0x406959
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406893
lea eax, [ebp - 0x1a4]
push 0x40f4f8
push eax
call sym.__lock_fhandle
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406b60
inc eax
pop ecx
invalid
Function at 0x40f630
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x40f66f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x40f724
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x40f6d6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x40f6d4
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call fcn.0040ff30
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0041d360
add esp, 0xc
jmp 0x40f65d
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call fcn.0040ff30
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0041d390
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x40f65d
mov esp, ebp
pop ebp
ret
Function at 0x40f730
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40f766
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x40f866
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x40f7c6
jmp 0x40f754
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax*8 + 0x438370]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x4000000
je 0x40f7f8
mov eax, dword [ebp - 0x18]
or eax, 0x200
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x40f837
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
je 0x40f81f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x40f837
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x80
je 0x40f837
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x40f861
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call fcn.00421b50
add esp, 0x10
test eax, eax
jne 0x40f861
jmp 0x40f866
jmp 0x40f754
mov esp, ebp
pop ebp
ret