joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011230
Capabilities:
Encrypt data using aes
Encrypt data using rc4 prga
Reference aes constants

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1d0
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x1001144a
cmp dword [esp + 0x1dc], ebx
je 0x1001144a
push ebp
push esi
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x1f0]
cmp eax, ebx
je 0x10011294
mov dword [eax], ebx
mov edx, dword [esp + 0x1f8]
mov ecx, 0x21
cmp edx, 0x21
ja 0x100112a7
mov ecx, edx
mov ebp, dword [esp + 0x1f4]
mov eax, ecx
mov esi, ebp
lea edi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x5c], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f
lea edi, [esp + 0x5d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
xor ecx, ecx
cmp ecx, edx
jb 0x100112e0
xor ecx, ecx
mov bl, byte [ecx + ebp]
xor bl, byte [eax + 0x10013258]
inc eax
inc ecx
cmp eax, 0x80
mov byte [esp + eax + 0x5b], bl
jb 0x100112da
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x5c]
and ecx, 0xff
shr ecx, 3
lea esi, [esp + ecx + 0x5c]
mov edx, esi
sub edx, eax
cmp edx, 0x10
jge 0x10011318
lea esi, [esp + 0x5c]
lea ecx, [esp + 0x28]
xor ebp, ebp
xor eax, eax
sub esi, ecx
lea ecx, [esp + eax + 0x28]
inc eax
cmp eax, 0x10
mov dl, byte [esi + ecx]
mov byte [ecx], dl
jb 0x10011322
mov eax, dword [esp + 0x39]
and eax, 0xff
shr eax, 3
lea edx, [esp + eax + 0x5c]
lea eax, [esp + 0x5c]
mov ecx, edx
sub ecx, eax
cmp ecx, 0x20
jge 0x10011352
lea edx, [esp + 0x5c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe0]
mov dword [esp + 0xdc], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0xe8], edx
lea edx, [esp + 0xdc]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0xe4], 0x100
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xf0], ecx
call fcn.10011b20
mov esi, dword [esp + 0x1e8]
push 0x10
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0xe8]
push eax
push ecx
call fcn.10012050
add esp, 0x14
add esi, 0x10
xor ecx, ecx
xor eax, eax
cmp eax, 8
jl 0x100113c7
xor eax, eax
mov dl, byte [esp + eax + 0x10]
mov byte [esp + ecx + 0x5c], dl
inc ecx
inc eax
cmp ecx, 0x80
jb 0x100113c0
lea edx, [esp + 0xdc]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0xe4], 0x80
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
call fcn.10011b20
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1f0]
add eax, 0xfffffff0
lea edx, [esp + 0xe0]
push eax
push esi
push ecx
push edx
call fcn.100121a0
mov ecx, dword [esp + 0x204]
add esp, 0x14
cmp ecx, ebp
pop edi
pop esi
pop ebp
je 0x10011457
mov dword [ecx], eax
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x1e4]
cmp eax, ebx
je 0x10011457
mov dword [eax], ebx
pop ebx
add esp, 0x1d0
ret
Function at 0x10011940
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov esi, dword [esp + 0x228]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
stosb byte es:[edi], al
je 0x10011b04
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
jle 0x10011b04
cmp ebp, 0x100
jg 0x10011b04
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebp, 0x100
stosb byte es:[edi], al
jne 0x100119bc
mov ecx, 0x40
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
jmp 0x100119da
xor ecx, ecx
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv ebp
inc ecx
cmp ecx, 0x100
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x113], al
jl 0x100119be
xor ecx, ecx
xor eax, eax
mov dl, byte [esp + eax + 0x14]
xor ebx, ebx
mov bl, byte [esp + eax + 0x114]
mov esi, edx
and esi, 0xff
add ecx, ebx
add ecx, esi
and ecx, 0x800000ff
jns 0x10011a07
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + eax + 0x14], bl
inc eax
cmp eax, 0x100
mov byte [esp + ecx + 0x14], dl
jl 0x100119de
mov eax, dword [esp + 0x218]
xor esi, esi
xor edx, edx
test eax, eax
je 0x10011af7
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x10011af7
mov ebp, dword [esp + 0x224]
test ebp, ebp
jl 0x10011af7
jg 0x10011a5d
mov eax, dword [esp + 0x220]
test eax, eax
jbe 0x10011af7
xor eax, eax
xor edi, edi
inc edx
and edx, 0x800000ff
jns 0x10011a72
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x14]
mov ebx, ecx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x10011a90
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + esi + 0x14]
mov byte [esp + 0x10], cl
mov byte [esp + edx + 0x14], bl
mov ebx, dword [esp + 0x10]
mov byte [esp + esi + 0x14], cl
xor ecx, ecx
mov cl, byte [esp + edx + 0x14]
and ebx, 0xff
add ecx, ebx
and ecx, 0x800000ff
jns 0x10011ac2
dec ecx
or ecx, 0xffffff00
inc ecx
mov ebx, dword [esp + 0x218]
mov cl, byte [esp + ecx + 0x14]
xor cl, byte [eax + ebx]
mov ebx, dword [esp + 0x21c]
mov byte [eax + ebx], cl
add eax, 1
adc edi, 0
cmp edi, ebp
jl 0x10011a61
jg 0x10011af7
cmp eax, dword [esp + 0x220]
jb 0x10011a61
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x204
ret
Function at 0x10011b20
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov byte [esp + 0x10], 1
mov eax, dword [ebp + 4]
mov byte [esp + 0x11], 0
sub eax, 0x80
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x10011b77
sub eax, 0x40
je 0x10011b64
sub eax, 0x40
jne 0x10011b77
mov dword [ebp], 0xe
mov eax, 0x20
mov ebx, 8
jmp 0x10011b88
mov dword [ebp], 0xc
mov eax, 0x18
mov ebx, 6
jmp 0x10011b88
mov dword [ebp], 0xa
mov eax, 0x10
mov ebx, 4
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, ecx
lea edi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0x18], al
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
lea esi, [eax + ebp + 0x14]
and eax, 0xff
lea edx, [ecx*4 + 4]
cmp eax, edx
jge 0x10011c54
lea edi, [ebx*4]
cdq
idiv ebx
mov ecx, dword [esi - 4]
mov dword [esi], ecx
test edx, edx
jne 0x10011c03
push esi
call fcn.10011c60
push 0x10013158
push 4
push esi
call fcn.10011cb0
lea edx, [esp + 0x20]
push 4
push edx
push esi
call fcn.10011c80
mov eax, dword [esp + 0x2c]
push eax
call fcn.10011ce0
add esp, 0x20
mov byte [esp + 0x10], al
jmp 0x10011c1c
cmp ebx, 6
jle 0x10011c1c
cmp edx, 4
jne 0x10011c1c
push 0x10013158
push edx
push esi
call fcn.10011cb0
add esp, 0xc
mov ecx, esi
push 4
sub ecx, edi
push ecx
push esi
call fcn.10011c80
mov dl, byte [esp + 0x24]
add esp, 0xc
add esi, 4
inc dl
mov byte [esp + 0x18], dl
mov edx, dword [ebp]
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ecx, [edx*4 + 4]
cmp eax, ecx
jl 0x10011bc4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10011c80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 0xc]
test dl, dl
jbe 0x10011cab
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub ecx, eax
push ebx
and edx, 0xff
push esi
mov esi, edx
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x10011c9c
pop esi
pop ebx
ret

Function at 0x10011d70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
lea eax, [ebp + 0x14]
push eax
push edi
call fcn.10011df0
mov eax, dword [ebp]
add esp, 8
cmp eax, 1
mov bl, 1
jl 0x10011deb
push esi
mov esi, 1
push 0x10013158
push 0x10
push edi
call fcn.10011cb0
push 0
push edi
call fcn.10011e10
mov eax, dword [ebp]
add esp, 0x14
cmp esi, eax
je 0x10011dc2
push 0
push edi
call fcn.10011ea0
add esp, 8
shl esi, 4
lea ecx, [esi + ebp + 0x14]
push ecx
push edi
call fcn.10011df0
mov eax, dword [ebp]
add esp, 8
inc bl
mov byte [esp + 0x14], bl
mov esi, dword [esp + 0x14]
and esi, 0xff
cmp esi, eax
jle 0x10011d98
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x100120f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 4
lea ecx, [eax + edi + 0x14]
push ecx
push esi
call fcn.10011df0
mov bl, byte [edi]
add esp, 8
test bl, bl
mov byte [esp + 0x10], bl
jbe 0x10012161
mov edx, dword [esp + 0x10]
and edx, 0xff
shl edx, 4
lea edi, [edx + edi + 4]
push 1
push esi
call fcn.10011e10
push 0x10013258
push 0x10
push esi
call fcn.10011cb0
push edi
push esi
call fcn.10011df0
add esp, 0x1c
cmp bl, 1
je 0x10012158
push 1
push esi
call fcn.10011ea0
add esp, 8
dec bl
sub edi, 0x10
test bl, bl
ja 0x10012129
pop edi
pop esi
pop ebx
ret
Function at 0x402b68
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ba5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402bc5
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d04
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ca8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ca8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e4f
inc ebx
jmp 0x402e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e6c
lea eax, [ebp - 8]
call fcn.00404a94
ret

Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a94
test esi, esi
jne 0x402eab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b84
jmp 0x402ecc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca8
mov dword [esp], eax
test esi, esi
je 0x402ecc
cmp dword [ebx], 0
je 0x402ecc
dec esi
jmp 0x402eb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d24
xor eax, eax
push ebp
push 0x403d1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41c020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404910
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d044], 0
je 0x404971
cmp word [0x41d218], 0xd7b2
jne 0x404939
cmp dword [0x41d220], 0
jbe 0x404939
mov eax, 0x41d214
call dword [0x41d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41c0b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404998
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x41c02c], 0
jne 0x40498d
push 0
push 0x41c0b0
push 0x41c0b8
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x406650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403630
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bd
lea eax, [ebp - 0x10]
call fcn.00404a94
ret

Function at 0x408350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408369
test al, 0x10
jne 0x40836d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4084b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x4084d6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40af58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40af91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b84
jmp 0x40af9a
mov eax, ebx
mov edx, esi
call fcn.00404ae8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40afa4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40afc5
mov al, byte [esp]
jmp 0x40afc7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c4cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c530
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407fd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c537
lea eax, [ebp - 0xc]
call fcn.00404a94
ret
Function at 0x419110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4191e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.KERNEL32.DLL_GetTempPathA
mov esi, eax
mov eax, edi
mov edx, esi
call fcn.004050bc
mov eax, dword [edi]
call fcn.00404f30
push eax
push esi
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x4191c6
mov eax, dword [edi]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404ae8
test bl, bl
je 0x4191cd
push dword [edi]
push 0x419200
lea eax, [ebp - 0x14]
mov edx, dword [0x41ccc8]
add edx, 0x907
mov ecx, 0xb
call fcn.00404d04
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040c2c8
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404ae8
jmp 0x4191cd
mov eax, edi
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4191ef
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404ab8
ret

Function at 0x4192fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x419398
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, edi
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004050bc
push esi
mov eax, dword [ebx]
call fcn.00404f30
push eax
mov eax, edi
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
je 0x419376
mov eax, dword [ebx]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404ae8
jmp 0x41937d
mov eax, ebx
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41939f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret
Function at 0x419470
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
xor eax, eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004053e0
xor eax, eax
push ebp
push 0x419677
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x15c]
mov ecx, 0x41968c
call fcn.00404d7c
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
mov edx, 0x10
call fcn.00408548
mov ebx, eax
test ebx, ebx
jne 0x4195d3
xor eax, eax
push ebp
push 0x4195cc
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4195b3
mov eax, dword [ebp - 0x14c]
mov edx, 0x419698
call fcn.00404e7c
je 0x41959e
mov eax, dword [ebp - 0x14c]
mov edx, 0x4196a4
call fcn.00404e7c
je 0x41959e
test byte [ebp - 0x150], 0x10
je 0x41959e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
inc eax
push eax
lea eax, [ebp - 0x160]
mov ecx, 0x4196b0
mov edx, dword [ebp - 0x14c]
call fcn.00404d7c
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
pop ecx
call fcn.00405018
mov eax, dword [ebp + 8]
push eax
call fcn.00419470
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
mov ebx, eax
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
sub ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
pop edx
call fcn.00404fd0
lea eax, [ebp - 0x158]
call fcn.00408598
mov ebx, eax
test ebx, ebx
je 0x4194f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195d3
lea eax, [ebp - 0x158]
call fcn.004085bc
ret
lea edx, [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040c308
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00404b2c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.004084b4
mov eax, dword [0x41ccc8]
mov al, byte [eax + 0x917]
sub al, 1
jb 0x419615
je 0x419622
jmp 0x419637
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00408894
jmp 0x419637
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41967e
lea eax, [ebp - 0x164]
call fcn.00404a94
lea eax, [ebp - 0x160]
call fcn.00404a94
lea eax, [ebp - 0x15c]
call fcn.00404a94
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004054a4
ret
Function at 0x41972c
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41993a
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4197f8
mov eax, dword [0x41ccc8]
cmp byte [eax + 0x915], 0
jne 0x4197f8
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040af0c
mov edx, dword [ebp - 4]
mov eax, 0x419950
call fcn.00405074
test eax, eax
jne 0x41979c
push ebx
push 0x41995c
push 0x41995c
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404df0
jmp 0x4197c0
mov al, byte [0x419960]
push eax
lea eax, [ebp - 8]
push eax
mov edx, 0x419950
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040caa8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404b2c
push 0x40010
push 0
mov eax, dword [ebp - 4]
call fcn.00404f30
push eax
push 0
call sub.user32.dll_MessageBoxA
mov eax, dword [0x41caf0]
push eax
call sub.user32.dll_DestroyWindow
mov eax, dword [0xe1f534]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0xe1f538]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41ccc8]
cmp byte [eax], 1
jne 0x41989b
mov eax, dword [0x41ccc8]
cmp byte [eax + 0x917], 2
je 0x41989b
mov eax, dword [0xe1f524]
call fcn.00405844
mov esi, eax
test esi, esi
jl 0x419877
inc esi
xor ebx, ebx
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
xor edx, edx
call fcn.004084b4
mov eax, dword [0x41ccc8]
mov al, byte [eax + 0x917]
sub al, 1
jb 0x41984d
je 0x41985c
jmp 0x419873
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
call fcn.004085d8
jmp 0x419873
push 4
push 0
mov eax, dword [0xe1f524]
mov eax, dword [eax + ebx*4]
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_MoveFileExA
inc ebx
dec esi
jne 0x41982b
mov eax, dword [0xe1f528]
call fcn.00405844
mov ebx, eax
cmp ebx, 0
jl 0x41989b
mov eax, dword [0xe1f528]
mov eax, dword [eax + ebx*4]
call fcn.004196b4
dec ebx
cmp ebx, 0xffffffff
jne 0x419888
test edi, edi
jne 0x419904
cmp dword [0x41cae8], 0
je 0x419904
push 0
push 0
push 0x41996c
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e74
push dword [ebp - 0x10]
push 0x41996c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0xc]
call fcn.00404f30
push eax
mov eax, dword [0x41cae8]
call fcn.00404f30
push eax
push 0x419970
push 0
call sub.shell32.dll_ShellExecuteA
push 4
push 0
mov eax, dword [0x41cae8]
call fcn.00404f30
push eax
call sub.KERNEL32.DLL_MoveFileExA
cmp dword [0x41cb04], 0
je 0x419918
mov eax, dword [0x41cb04]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
call fcn.00404a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419941
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ab8
ret