joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472993
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x489d88
call fcn.00413a48
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004814a1
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4729d2
call fcn.004814a1
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4729e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4729ee
or eax, 0xffffffff
jmp 0x472ad6
mov ecx, esi
call fcn.00472909
mov dword [ebp - 0x14], eax
call fcn.004737c9
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x472a25
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x472a25
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0047377d
push dword [ebp - 0x14]
call fcn.004732ae
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00472624
cmp eax, edi
je 0x472a98
test byte [esi + 0x24], 0x10
je 0x472a66
push 4
mov ecx, esi
pop ebx
call fcn.00476630
test ah, 1
je 0x472a5e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00475d1a
cmp dword [esi + 0x1c], edi
je 0x472a98
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004767bc
jmp 0x472a98
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x472aac
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x472ac5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x472ac5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00472943
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x473cc1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473cf9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004704e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004704bb
jmp 0x473d05
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x475ac3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x475b05
call fcn.004814a1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475b05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x475afc
xor eax, eax
jmp 0x475b0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475b13
pop edi
pop esi
pop ebx
ret 4

Function at 0x476f8c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x476fbc
push edi
call ebx
push eax
call fcn.004772df
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x476fe6
test byte [ebp - 4], 1
je 0x476fe6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x476fe6
push edi
call ebx
push eax
call fcn.004772df
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x47708c
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00476ed9
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x477018
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00476ed9
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x47702e
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00476ed9
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x477058
push 0
call ebx
push eax
call fcn.004772df
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x477076
push eax
call ebx
push eax
call fcn.004772df
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47708a
push eax
call ebx
push eax
call fcn.004772df
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4770b3
test byte [ebp - 4], 1
jne 0x4770b3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4770b3
push edi
call ebx
push eax
call fcn.004772df
pop edi
pop ebx
leave
ret 8
Function at 0xf601b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f60308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf601de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf601ca
add dl, dl
jne 0xf601e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf6023c
xor eax, eax
add dl, dl
jne 0xf601f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf602dd
add dl, dl
jne 0xf60205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf60210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf6021b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf60226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf60232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf601d5
mov eax, 1
add dl, dl
jne 0xf6024a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf60255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf60241
sub eax, ebx
mov ebx, 1
jne 0xf60288
mov ecx, 1
add dl, dl
jne 0xf6026e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf60279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf60265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf601d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf6029f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf602aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf60296
cmp eax, 0x7d00
jae 0xf602cd
cmp eax, 0x500
jb 0xf602c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf601d5
cmp eax, 0x7f
ja 0xf602d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf601d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf602fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf601d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x405102], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4017a7
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x402028
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x402041
call eax
test eax, eax
jne 0x402041
push 0xfffffffffffffffe
jmp 0x40205b
push 1
push 0x405010
push 0x405008
call fcn.00401bd1
add esp, 0xc
test eax, eax
je 0x402061
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401bd1
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x402087
mov esi, 0x404a52
mov cl, 0x20
jmp 0x402090
cmp al, 0x20
ja 0x40209a
inc esi
mov al, byte [esi]
test al, al
jne 0x40208b
cmp al, 0x20
jbe 0x4020b1
mov al, byte [esi]
cmp al, 0x22
jne 0x4020a3
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40209c
jmp 0x4020b1
cmp al, cl
ja 0x4020b7
inc esi
mov al, byte [esi]
test al, al
jne 0x4020ac
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4020e0
movzx eax, word [ebp - 0x14]
jmp 0x4020e3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402118
pop ecx
pop esi
leave
ret

Function at 0x402118
Capabilities:
Terminate process

Disassembly:
call fcn.00402162
push 0
push 0x405018
push 0x405014
call fcn.00401bd1
push 0
push 0x405020
push 0x40501c
call fcn.00401bd1
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x7ea839d5
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
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
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x21551714
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xa86ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x403000]
push edi
jmp 0xa86eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa86ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa86eb0
mov eax, 1
add ebx, ebx
jne 0xa86ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa86ee4
jne 0xa86f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa86f03
dec eax
add ebx, ebx
jne 0xa86ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa86ec8
add ebx, ebx
jne 0xa86eff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa86f55
xor ecx, ecx
sub eax, 3
jb 0xa86f1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa86f8a
sar eax, 1
mov ebp, eax
jmp 0xa86f26
add ebx, ebx
jne 0xa86f26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa86ef4
inc ecx
add ebx, ebx
jne 0xa86f34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa86ef4
add ebx, ebx
jne 0xa86f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa86f36
jne 0xa86f52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa86f36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa86f74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa86f66
jmp 0xa86eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa86f74
add edi, ecx
jmp 0xa86eb6
pop esi
mov edi, esi
mov ecx, 0x365cd3
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xa86faf
cmp byte [edi], 0x35
jne 0xa86f94
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xa86f92
lea edi, [esi + 0x681000]
mov eax, dword [edi]
or eax, eax
je 0xa87000
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a8494]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a8674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa86fb5
mov ecx, edi
jns 0xa86fe4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6a8678]
or eax, eax
je 0xa86ffa
mov dword [ebx], eax
add ebx, 4
jmp 0xa86fd2
call dword [esi + 0x6a8688]
mov ebp, dword [esi + 0x6a867c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0xa87034
sub esp, 0xffffff80
jmp 0x644f2b
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x401014
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0x3c]
add esi, ebp
cmp dword [esi], 0x4550
je 0x401026
xor eax, eax
jmp 0x40106f
movzx eax, word [esi + 0x14]
push ebx
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x40105a
push 8
push edi
push str..kkdata
call fcn.00405a74
add esp, 0xc
test eax, eax
je 0x401072
movzx eax, word [esi + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jl 0x40103a
push str..kkdata
push str.couldnt_find_section:__s_n
call fcn.00405f61
xor eax, eax
pop ecx
pop ecx
pop edi
pop ebx
pop esi
pop ebp
ret
push edi
push str.found_section:__s_n
call fcn.00405f61
mov eax, dword [edi + 0xc]
add eax, ebp
jmp 0x40106b

Function at 0x401084
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40108e
sub eax, edx
je 0x4010a3
cmp byte [esi + eax - 1], 0x5c
je 0x4010a3
dec eax
jne 0x401099
test eax, eax
je 0x401102
push ebx
push edi
lea edi, [eax + esi - 1]
push esi
push str.attempting_to_create__s__first_pass_..._n
mov byte [edi], 0
call fcn.00405f61
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
pop ecx
push 0
push esi
call ebx
test eax, eax
jne 0x4010fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4010fd
push esi
push str.failed__recursing_down..._n
call fcn.00405f61
push esi
call fcn.00401084
push esi
push str.attempting_to_create__s__final_pass_..._n
call fcn.00405f61
add esp, 0x14
push 0
push esi
call ebx
mov byte [edi], 0x5c
pop edi
pop ebx
pop esi
ret
Function at 0x40124a
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4163f4]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40127a
or eax, 0xffffffff
jmp 0x4013cc
cmp dword [eax], 4
jne 0x401284
lea ecx, [eax + 8]
jmp 0x401286
xor ecx, ecx
cmp ecx, ebx
jne 0x401292
push 0xfffffffffffffffe
pop eax
jmp 0x4013cc
mov eax, dword [ecx]
add eax, edx
push esi
cmp eax, ebx
je 0x4012a5
cmp dword [eax], 2
jne 0x4012a5
lea esi, [eax + 8]
jmp 0x4012a7
xor esi, esi
cmp esi, ebx
jne 0x4012b3
push 0xfffffffffffffffd
pop eax
jmp 0x4013cb
mov eax, dword [ecx + 4]
add eax, edx
push edi
cmp eax, ebx
je 0x4012c7
cmp dword [eax], 1
jne 0x4012c7
lea edi, [eax + 8]
jmp 0x4012c9
xor edi, edi
cmp edi, ebx
jne 0x4012d4
push 0xfffffffffffffffc
jmp 0x401368
add esi, 4
push esi
push str.attempting_to_write___s__to_disk...
call fcn.00405f61
call fcn.00405bc6
add eax, 0x20
push eax
call fcn.00405f05
push 0x105
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.0040c7b0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
call fcn.00401104
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
call fcn.00401084
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40136b
push str.failed
call fcn.00406026
call fcn.00405bc6
add eax, 0x20
push eax
call fcn.00405f05
pop ecx
pop ecx
push 0xfffffffffffffffb
pop eax
jmp 0x4013ca
cmp dword [ebp - 0x7c], 1
jne 0x40137f
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.004011f9
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [edi]
add edi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, str.success
cmp edi, ebx
jne 0x4013a8
mov eax, str.failed
push eax
call fcn.00406026
call fcn.00405bc6
add eax, 0x20
push eax
call fcn.00405f05
mov eax, edi
neg eax
sbb eax, eax
pop ecx
and eax, 6
pop ecx
add eax, 0xfffffffa
pop edi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
pop ebx
call fcn.00405a65
add ebp, 0x98
leave
ret
Function at 0x4013e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x4013fa
cmp dword [eax], 5
jne 0x4013fa
lea edi, [eax + 8]
jmp 0x4013fc
xor edi, edi
cmp edi, ebx
jne 0x401408
push 0xfffffffffffffff9
pop eax
jmp 0x40155a
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp eax, ebx
je 0x40141e
cmp dword [eax], 2
jne 0x40141e
lea ecx, [eax + 8]
jmp 0x401420
xor ecx, ecx
cmp ecx, ebx
jne 0x401428
push 0xfffffffffffffff8
jmp 0x401402
mov eax, dword [edi]
sub eax, ebx
je 0x40145a
dec eax
je 0x401453
dec eax
je 0x40144c
dec eax
je 0x401445
dec eax
je 0x40143e
push 0xfffffffffffffff7
jmp 0x401402
mov eax, 0x80000003
jmp 0x40145f
mov eax, 0x80000002
jmp 0x40145f
mov eax, 0x80000001
jmp 0x40145f
mov eax, 0x80000005
jmp 0x40145f
mov eax, 0x80000000
push ebx
lea edx, [ebp - 0xc]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
add ecx, 4
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401480
push 0xfffffffffffffff6
jmp 0x401402
push esi
mov dword [ebp - 8], ebx
cmp dword [edi + 8], ebx
jbe 0x401557
lea eax, [edi + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, edx
xor esi, esi
cmp eax, ebx
je 0x4014ad
cmp dword [eax], 6
jne 0x4014ad
lea ecx, [eax + 8]
jmp 0x4014af
xor ecx, ecx
cmp ecx, ebx
je 0x40155e
mov eax, dword [ecx + 8]
add eax, edx
cmp eax, ebx
je 0x4014ca
cmp dword [eax], 1
jne 0x4014ca
lea edx, [eax + 8]
jmp 0x4014cc
xor edx, edx
cmp edx, ebx
je 0x401562
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4014f5
mov esi, dword [ebp + 8]
add eax, esi
cmp eax, ebx
je 0x4014ef
cmp dword [eax], 2
jne 0x4014ef
lea esi, [eax + 8]
jmp 0x4014f1
xor esi, esi
cmp esi, ebx
je 0x401566
mov ecx, dword [ecx]
cmp ecx, 9
ja case.default.0x4014fc
jmp dword [ecx*4 + 0x401576]
push 3
pop eax
jmp 0x401523
push 4
jmp 0x401505
push 5
jmp 0x401505
push 2
jmp 0x401505
push 7
jmp 0x401505
xor eax, eax
jmp 0x401523
push 0xb
jmp 0x401505
xor eax, eax
inc eax
push dword [edx]
add edx, 4
push edx
push eax
mov eax, esi
add esi, 4
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40156a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
cmp eax, dword [edi + 8]
jb 0x401493
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push 0xfffffffffffffff5
jmp 0x401570
push 0xfffffffffffffff4
jmp 0x401570
push 0xfffffffffffffff3
jmp 0x401570
push 0xfffffffffffffff1
jmp 0x401570
push 0xfffffffffffffff2
pop eax
jmp 0x401559