joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027544
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10044168]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002758a
cmp word [ebx], dx
jne 0x1002758a
or byte [eax + edi + 0x28], 4
jmp 0x1002758f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100276f2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100276d2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100275d0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10027606
cmp eax, edx
jae 0x10027614
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100275ab
jmp 0x100276f2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100276cd
cmp dword [ebp - 0x18], 0
je 0x100276cd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10044168]
test byte [eax + edi + 0x28], 0x48
je 0x100276a3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10027667
mov word [esi], cx
jmp 0x1002769e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10044168]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10044168]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10044168]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100276f2
pop eax
cmp word [ebp - 4], ax
jne 0x100276b3
cmp esi, ebx
jne 0x100276b3
mov word [esi], ax
jmp 0x100276ef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10026451
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100276f2
push 0xd
pop eax
jmp 0x100276ae
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10044168]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100276ec
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100276f2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002a241
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002a2de
push ebx
push esi
call fcn.1002a20a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10029045
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002a28b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002a2dd
push edi
push eax
call fcn.100229c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002a2ab
call fcn.1002298c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002a2dc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10029045
add esp, 0x20
test eax, eax
jne 0x1002a2ca
push edi
call fcn.1002298c
jmp 0x1002a2d2
push ebx
call fcn.1002298c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002c3a6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10020fdc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c415
cmp esi, dword [ebp - 4]
je 0x1002c410
cmp dword [ebp + 0xc], 0
je 0x1002c410
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002c3ed
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002bef8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002c417
xor eax, eax
inc eax
jmp 0x1002c417
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002c47c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10042100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10020fdc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10020fdc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1002c4f3
cmp word [ecx], dx
je 0x1002c4f3
mov eax, dword [0x1003944c]
push edi
dec eax
push eax
push 0x10039338
call fcn.1002c41b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002c566
cmp word [eax], dx
je 0x1002c566
mov eax, dword [edi]
test eax, eax
je 0x1002c517
cmp word [eax], dx
je 0x1002c517
lea eax, [ebp - 0x10]
push eax
call fcn.1002bdfe
jmp 0x1002c520
lea eax, [ebp - 0x10]
push eax
call fcn.1002be99
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002c590
mov eax, dword [0x10039334]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10039028
call fcn.1002c41b
add esp, 0xc
test al, al
je 0x1002c590
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002c55b
cmp word [eax], di
je 0x1002c55b
lea eax, [ebp - 0x10]
push eax
call fcn.1002bdfe
pop ecx
jmp 0x1002c592
lea eax, [ebp - 0x10]
push eax
call fcn.1002be99
jmp 0x1002c558
mov eax, dword [edi]
test eax, eax
je 0x1002c57d
cmp word [eax], dx
je 0x1002c57d
lea eax, [ebp - 0x10]
push eax
call fcn.1002bdb3
pop ecx
jmp 0x1002c590
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002c65b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002c2a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002c65b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002c65b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002c65b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002c5e8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100242c3
test ebx, ebx
je 0x1002c656
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100242c3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c65b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c65b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002fe01
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002c65d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001544e
leave
ret
Function at 0x100306a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1003061d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10030810
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10030810
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100307c5
jg 0x100306fd
test eax, eax
je 0x100307bb
push 1
push 0x1000
call fcn.10023c8c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10030720
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100307b2
push 0x8000
push ebx
call fcn.1003054e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10030749
jg 0x10030744
cmp ecx, 0x1000
jb 0x10030749
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100259f7
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003078e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10030744
jl 0x10030775
test ecx, ecx
jne 0x10030736
push dword [ebp - 0xc]
push ebx
call fcn.1003054e
push esi
call fcn.1002298c
add esp, 0xc
xor ebx, ebx
jmp 0x1003081e
cmp byte [edi + 0x24], 0
je 0x100307a5
cmp dword [edi + 0x20], 5
jne 0x100307a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100307b0
mov ebx, dword [edi + 0x18]
jmp 0x100307b2
xor ebx, ebx
push esi
call fcn.1002298c
pop ecx
jmp 0x1003081e
test ecx, ecx
jg 0x10030787
jl 0x100307c5
test eax, eax
jae 0x10030787
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026451
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100307e5
cmp byte [edi + 0x1c], 0
je 0x10030787
jmp 0x10030816
push ebx
call fcn.1002e44d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10030787
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003081e
cmp byte [edi + 0x1c], 0
je 0x1003081b
mov ebx, dword [edi + 0x18]
jmp 0x1003081e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10026451
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10031d90
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x30
mov eax, dword [0x40a2a0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.ShellHWDetection
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0xf003f
xor ebp, ebp
push ebp
push ebp
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4010d3
push 0xf01ff
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4010cc
push 0x824
call fcn.00401260
mov esi, eax
add esp, 4
test esi, esi
je 0x4010c5
lea ecx, [esp + 0x14]
push ecx
push 0x824
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x4010bc
mov eax, 2
cmp dword [esi + 4], eax
je 0x4010b7
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push ebp
push ecx
push edx
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push ecx
push edx
push eax
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x4010bc
mov ebp, 1
push esi
call fcn.00401116
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004011a4
add esp, 0x30
ret

Function at 0x4010f0
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x401111
push str.exec
push eax
call fcn.004011b3
add esp, 8
test eax, eax
je 0x401111
call section..text
xor eax, eax
ret 0x10

Function at 0x4011a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a2a0]
jne 0x4011ae
repz ret
jmp fcn.00402516
Function at 0x402936
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 + 0x40a2b0]
je 0x402951
inc edi
cmp edi, 0x17
jb 0x402942
cmp edi, 0x17
jae 0x402ad1
push ebp
push 3
call fcn.00404b00
cmp eax, 1
pop ecx
je 0x402a9d
push 3
call fcn.00404b00
test eax, eax
pop ecx
jne 0x402985
cmp dword [section..data], 1
je 0x402a9d
cmp ebx, 0xfc
je 0x402ad0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b198
push ebp
call fcn.00404a9b
add esp, 0xc
test eax, eax
je 0x4029bb
push esi
push esi
push esi
push esi
push esi
call fcn.00403a85
add esp, 0x14
push 0x104
mov esi, 0x40b1b1
push esi
push 0
mov byte [0x40b2b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4029ff
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404a9b
add esp, 0xc
test eax, eax
je 0x4029ff
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403a85
add esp, 0x14
push esi
call fcn.00404a10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402a44
push esi
call fcn.00404a10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b4ac
push 0x40871c
sub ecx, eax
push ecx
push eax
call fcn.0040494e
add esp, 0x14
test eax, eax
je 0x402a44
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403a85
add esp, 0x14
jmp 0x402a46
xor esi, esi
push 0x408718
push ebx
push ebp
call fcn.004048dd
add esp, 0xc
test eax, eax
je 0x402a66
push esi
push esi
push esi
push esi
push esi
call fcn.00403a85
add esp, 0x14
push dword [edi*8 + 0x40a2b4]
push ebx
push ebp
call fcn.004048dd
add esp, 0xc
test eax, eax
je 0x402a88
push esi
push esi
push esi
push esi
push esi
call fcn.00403a85
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404720
add esp, 0xc
jmp 0x402ad0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402ad0
cmp ebp, 0xffffffff
je 0x402ad0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a2b4]
push dword [esi]
call fcn.00404a10
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 0x404720
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403505
xor ebx, ebx
cmp dword [0x40b608], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4047f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4048d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4048d6
push eax
call fcn.00403497
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b608], eax
call esi
push eax
call fcn.00403497
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b60c], eax
call esi
push eax
call fcn.00403497
mov dword [0x40b610], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004026c3
test eax, eax
pop ecx
pop ecx
je 0x4047c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a85
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4047f6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403497
cmp eax, ebx
pop ecx
mov dword [0x40b618], eax
je 0x4047f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403497
pop ecx
mov dword [0x40b614], eax
mov eax, dword [0x40b614]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40487b
cmp dword [0x40b618], ecx
je 0x40487b
push eax
call fcn.0040350e
push dword [0x40b618]
mov esi, eax
call fcn.0040350e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40487b
cmp edi, ebx
je 0x40487b
call esi
cmp eax, ebx
je 0x404848
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404848
test byte [ebp - 0x18], 1
jne 0x40487b
lea eax, [ebp - 0x10]
push eax
call fcn.004026fa
test eax, eax
pop ecx
je 0x404863
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a85
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x404872
or dword [ebp + 0x10], 0x200000
jmp 0x4048b6
or dword [ebp + 0x10], 0x40000
jmp 0x4048b6
mov eax, dword [0x40b60c]
cmp eax, dword [ebp - 8]
je 0x4048b6
push eax
call fcn.0040350e
cmp eax, ebx
pop ecx
je 0x4048b6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4048b6
mov eax, dword [0x40b610]
cmp eax, dword [ebp - 8]
je 0x4048b6
push eax
call fcn.0040350e
cmp eax, ebx
pop ecx
je 0x4048b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b608]
call fcn.0040350e
cmp eax, ebx
pop ecx
je 0x4048d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4048d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1d49058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01d491a8
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 0x1d4907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d4906a
add dl, dl
jne 0x1d49089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d490dc
xor eax, eax
add dl, dl
jne 0x1d49096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d4917d
add dl, dl
jne 0x1d490a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d490d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d49075
mov eax, 1
add dl, dl
jne 0x1d490ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d490f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d490e1
sub eax, ebx
mov ebx, 1
jne 0x1d49128
mov ecx, 1
add dl, dl
jne 0x1d4910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d49119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d49105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d4913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d4914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d49136
cmp eax, 0x7d00
jae 0x1d4916d
cmp eax, 0x500
jb 0x1d49168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
cmp eax, 0x7f
ja 0x1d49170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d49075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d4919e
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 0x1d49075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x46f6d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x541fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005359b2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x46f752
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005327ba
mov eax, dword [eax]
push 0x5cfeb0
push eax
call fcn.00523cc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00535c3d
test bl, bl
je 0x46f752
push 0x5cfeb0
lea ecx, [esp + 0xc]
call fcn.00535fcd
push 0x5cfebc
lea ecx, [esp + 0xc]
call fcn.00535fcd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46f78e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00535c3d
jmp 0x46f859
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x46f812
lea edx, [esp + 0x7c]
push 0x5cfeb8
push edx
call fcn.00523cc4
add esp, 8
test eax, eax
je 0x46f812
lea eax, [esp + 0x7c]
push 0x5cfeb4
push eax
call fcn.00523cc4
add esp, 8
test eax, eax
je 0x46f812
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46f7a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00535c3d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x470ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x470b22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc