joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
push eax
sub esp, 0x8c
mov esi, esp
mov dword [ebp - 0x28], esi
push eax
mov dword [ebp - 0x3c], esp
push eax
mov dword [ebp - 0x40], esp
push eax
mov dword [ebp - 0x54], esp
push eax
mov dword [ebp - 0x50], esp
sub esp, 0x800
mov eax, esp
mov dword [ebp - 0x30], eax
push eax
mov dword [ebp - 0x34], esp
sub esp, 0x18
mov ebx, esp
push eax
mov dword [ebp - 0x44], esp
sub esp, 0x14
mov dword [ebp - 0x2c], esp
add dword [ebp - 0x28], 0x8c
add eax, 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov edi, 0x20219
mov eax, 1
xor edx, edx
jmp dword [eax*4 + 0x453234]
Function at 0x42fae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov edi, dword [0x4571a0]
mov dword [esp + 0x10], 0x39753b57
mov dword [esp + 0x14], 0x25b627a8
mov dword [esp + 0x18], 0x218d2368
mov dword [esp + 0x1c], 0x2d812fbc
mov dword [esp + 0x20], 0x298e2b47
mov dword [esp + 0x24], 0x1587179a
mov dword [esp + 0x28], 0x11b91388
mov dword [esp + 0x2c], 0x1db11f80
mov dword [esp + 0x30], 0x194f1bb0
mov dword [esp + 0x34], 0x5a2074d
mov dword [esp + 0x38], 0x1a90399
mov dword [esp + 0x3c], 0xd930f9d
mov dword [esp + 0x40], 0x99b0b9b
mov dword [esp + 0x44], 0x7524779a
mov dword [esp + 0x48], 0x71e173ec
mov dword [esp + 0x4c], 0x7d7e7fe4
mov word [esp + 0x50], 0
mov byte [esp + 0x52], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x42
ja 0x42fbb6
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.00432530
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x43
jb 0x42fb90
lea esi, [esp + 0x80]
lea eax, [esp + 0x10]
push esi
push 0
push 0
push 0x1f
push eax
push 0
call edi
mov edi, dword [esp + 0x80]
test edi, edi
jns 0x42fbdf
mov eax, 0xffffffff
jmp 0x42fbe2
lea eax, [edi + edi]
push eax
call fcn.0040c410
add esp, 4
mov dword [esp + 0x70], eax
mov ebx, dword [0x4571a0]
mov dword [esp + 0x10], 0x8145876b
mov dword [esp + 0x14], 0x8d328330
mov dword [esp + 0x18], 0x892d8f40
mov dword [esp + 0x1c], 0x95298b34
mov dword [esp + 0x20], 0x9132977b
mov dword [esp + 0x24], 0x9d239346
mov dword [esp + 0x28], 0x99319f20
mov dword [esp + 0x2c], 0x65399b28
mov dword [esp + 0x30], 0x619367c8
mov dword [esp + 0x34], 0x6dc66395
mov dword [esp + 0x38], 0x69c16fd1
mov dword [esp + 0x3c], 0x75d76bd5
mov dword [esp + 0x40], 0x71c777df
mov dword [esp + 0x44], 0x7d8473c6
mov dword [esp + 0x48], 0x79c97fc4
mov dword [esp + 0x4c], 0x457a7bcc
mov word [esp + 0x50], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x41
ja 0x42fcb6
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.004325b0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x42
jb 0x42fc90
push esi
push edi
mov esi, dword [esp + 0x78]
push esi
push 0x1f
lea eax, [esp + 0x20]
push eax
push 0
call ebx
lea eax, [esp + 0x5c]
push 0x60
push 3
push 0x120089
push eax
push esi
call fcn.0044a7a0
add esp, 0x14
not eax
shr eax, 0x1f
xor ebx, ebx
jmp dword [eax*4 + 0x4536f4]
Function at 0x431830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
cmp edi, 0x24
ja 0x43188a
cmp edi, 1
je 0x43188a
mov ebp, dword [esp + 0x38]
mov ebx, ebp
jmp 0x431861
inc ebx
movzx eax, byte [ebx]
movzx ecx, al
lea edx, [ecx - 9]
cmp edx, 5
jb 0x431860
cmp ecx, 0x20
je 0x431860
cmp ecx, 0x2b
mov edx, edi
je 0x431880
cmp ecx, 0x2d
jne 0x43189f
inc ebx
cmp al, 0x2b
sete byte [esp + 3]
jmp 0x4318a4
xor edi, edi
test esi, esi
je 0x431a65
mov dword [esi], 0x16
jmp 0x431a65
mov byte [esp + 3], 1
test edx, edx
mov dword [esp + 4], ebp
jle 0x4318cd
cmp edx, 0x10
jne 0x4318e5
cmp byte [ebx], 0x30
jne 0x4318c6
movzx eax, byte [ebx + 1]
and al, 0xdf
xor ecx, ecx
cmp al, 0x58
sete cl
lea ebx, [ebx + ecx*2]
mov edi, 0x10
jmp 0x4318e7
xor eax, eax
xor ecx, ecx
cmp byte [ebx], 0x30
setne al
sete cl
add ebx, ecx
lea edi, [eax*2 + 8]
jmp 0x4318e7
mov edi, edx
movzx ecx, byte [esp + 3]
mov eax, SysReAllocString
mov dword [esp + 0x18], ecx
sub eax, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
xor edx, edx
div edi
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov dword [esp + 8], 0
mov edx, edi
mov dword [esp + 0x20], edi
inc ebx
jmp 0x431941
mov ebp, ecx
mov dword [esp + 8], 0
mov esi, dword [esp + 0x44]
test esi, esi
je 0x431a00
mov dword [esi], 0x22
mov dword [esp + 4], ebx
inc ebx
mov edi, ebp
movsx eax, byte [ebx - 1]
lea ebp, [eax - 0x30]
cmp ebp, 0xa
jb 0x43196d
mov ecx, eax
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp ecx, 0x19
ja 0x431a34
mov ecx, eax
not ecx
or ecx, 0xffffffdf
lea ebp, [eax + ecx]
add ebp, 0xffffffca
cmp ebp, edx
jge 0x431a34
mov eax, edi
mov ecx, dword [esp + 0xc]
xor eax, ecx
mov esi, dword [esp + 8]
or eax, esi
je 0x431920
mov dword [esp + 0x14], ebx
mov eax, edi
mov ecx, edx
mul edx
mov dword [esp + 4], eax
xor eax, eax
cmp dword [esp + 0x1c], edi
mov edi, 0
sbb edi, esi
setae bl
jae 0x4319b0
xor edx, edx
mov esi, dword [esp + 0xc]
jmp 0x4319b9
imul esi, ecx
add edx, esi
mov esi, dword [esp + 4]
mov ecx, ebp
sar ecx, 0x1f
mov edi, dword [esp + 0xc]
sub edi, ebp
sbb eax, ecx
add ebp, esi
adc ecx, edx
mov dword [esp + 8], ecx
cmp edi, esi
mov ecx, dword [esp + 0xc]
sbb eax, edx
setae al
jae 0x4319e5
mov dword [esp + 8], 0
mov ebp, ecx
and bl, al
mov esi, dword [esp + 0x44]
test esi, esi
mov edx, dword [esp + 0x20]
je 0x431a1b
test bl, bl
jne 0x431a1b
mov ebx, dword [esp + 0x14]
jmp 0x431936
mov dword [esp + 0x10], 0x22
mov dword [esp + 4], ebx
mov ebp, ecx
mov dword [esp + 8], 0
jmp 0x43191b
test bl, bl
jne 0x431a27
mov dword [esp + 0x10], 0x22
mov ebx, dword [esp + 0x14]
mov dword [esp + 4], ebx
jmp 0x43191b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x431a42
mov ecx, dword [esp + 4]
mov dword [eax], ecx
test esi, esi
mov eax, dword [esp + 0x10]
je 0x431a4c
mov eax, dword [esi]
cmp eax, 0x22
jne 0x431a5c
mov edi, SysReAllocString
sub edi, dword [esp + 0x18]
jmp 0x431a65
cmp byte [esp + 3], 0
jne 0x431a65
neg edi
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4394e0
Capabilities:
Contain obfuscated stackstrings
Open clipboard
Read clipboard data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
xor ebx, ebx
cmp eax, 0
je 0x439641
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 8
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov edi, eax
cmp edi, 0
setne al
xor ebx, ebx
test al, 1
jne 0x439541
jmp 0x43963b
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov esi, eax
mov dword [esp], esi
call fcn.0040c520
mov ebp, eax
xor ebx, ebx
cmp ebp, 0
je 0x43962f
jmp 0x439566
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x18], 0xc3
mov byte [esp + 0x19], 0x2d
mov byte [esp + 0x1a], 0x2b
mov byte [esp + 0x1b], 0x33
mov byte [esp + 0x1c], 0x26
mov byte [esp + 0x1d], 0x2a
mov byte [esp + 0x1e], 0x27
mov byte [esp + 0x1f], 0x35
mov byte [esp + 0x20], 0x2c
mov byte [esp + 0x21], 0xe7
mov byte [esp + 0x22], 0x3e
mov byte [esp + 0x23], 0x33
mov byte [esp + 0x24], 0x38
mov byte [esp + 0x25], 0x8d
mov eax, 0xe
mov byte [esp + eax + 0x18], 0
add eax, 1
cmp eax, 0x13
jne 0x4395b9
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x13
jae 0x439603
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0043ce10
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x18], al
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
jmp 0x4395ce
jmp 0x439605
jmp 0x439607
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0040d150
sub esp, 0xc
mov bl, al
jmp 0x439626
and bl, 1
jmp 0x43962b
jmp 0x43962d
jmp 0x43962f
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
and bl, 1
movzx eax, bl
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40359c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x413020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403634
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403614
xor eax, eax
push ebp
push 0x40360d
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 0x403650
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 0x403614
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x413020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x413020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404120
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x404181
cmp word [0x414218], 0xd7b2
jne 0x404149
cmp dword [0x414220], 0
jbe 0x404149
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41302c], 0
jne 0x40419d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40560c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40545f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40560c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40545f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405628
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054e8
xor eax, eax
push ebp
push 0x4054e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405218
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405648
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405602
cmp byte [ebp - 0xd], 0
jne 0x40552f
cmp byte [ebp - 0x12], 0
je 0x405602
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405548
dec ebx
cmp byte [ebx], 0x2e
je 0x405557
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405547
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405602
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405594
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405602
cmp byte [ebp - 0xd], 0
je 0x405602
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405602
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a24
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_1
test eax, eax
jle 0x409a5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x409a66
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a70
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_1
test eax, eax
jle 0x409a92
movzx eax, byte [esp]
jmp 0x409a94
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a124
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409f9c
mov eax, dword [0x413bec]
cmp byte [eax], 0
je 0x40a1a0
mov eax, dword [0x413b08]
call fcn.004030a4
call fcn.00402eac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407360
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40a1e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413ae8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4167f0]
call fcn.004051c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x410d84
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404510
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
xor eax, eax
push ebp
push 0x410dfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e03
lea eax, [ebp - 4]
call fcn.004042a0
ret
Function at 0x41107c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x418a90]
mov ecx, 0x40
call fcn.00402f40
mov dword [0x4189dc], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x4189dc
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x4110aa
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x4189dc]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.00410f5c
mov esi, eax
mov dword [ebx*4 + 0x4189dc], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.00410f5c
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x41111a
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x4110ca
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4111a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x418a88]
sub dword [ebx + 8], eax
mov eax, dword [0x418a84]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00410f5c
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00410f5c
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x4189e0]
mov edx, edi
call fcn.00410f64
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x4189dc]
mov edx, ebp
call fcn.00410f64
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x4111be
mov eax, dword [0x4189e0]
sub dword [ebx + 0xc], eax
mov eax, dword [0x4189dc]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4113d4
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
mov eax, dword [ebp - 8]
call fcn.004046a4
xor eax, eax
push ebp
push 0x41148f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402d84
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00406ea0
push esi
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046b4
push eax
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
call sub.kernel32.dll_GetTempFileNameA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
mov edx, esi
call fcn.00404498
mov eax, esi
call fcn.00402da0
mov edx, dword [ebx]
mov eax, 0x4114a4
call fcn.004047a4
mov edx, eax
dec edx
mov eax, ebx
call fcn.004048e8
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411496
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004042c4
ret

Function at 0x4114ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
xor eax, eax
push ebp
push 0x41157c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403108
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0xc
call fcn.00403108
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x411566
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411583
lea eax, [ebp - 4]
call fcn.004042a0
ret
Function at 0x412294
Capabilities:
Delete file
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41229c
push ebx
push esi
push edi
mov eax, 0x411690
call fcn.00405a14
xor eax, eax
push ebp
push 0x412461
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x413a88]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
call fcn.00410e0c
mov edx, dword [ebp - 0x14]
mov eax, 0x418aa4
call fcn.004042f4
lea edx, [ebp - 0x18]
mov eax, dword [0x418aa4]
call fcn.00410d20
mov edx, dword [ebp - 0x18]
mov eax, 0x418aa4
call fcn.004042f4
mov bl, 1
xor eax, eax
push ebp
push 0x41239e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f5ac]
call fcn.004036d4
mov esi, eax
mov edx, esi
mov eax, 0x412478
call fcn.0041158c
mov edx, 0x418a98
mov ecx, 0xc
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00410674
mov edx, esi
mov eax, 0x412488
call fcn.0041158c
lea eax, [ebp - 0x20]
mov edx, 0x418a98
call fcn.00404504
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x418aa4]
call fcn.004113d4
mov edx, dword [ebp - 0x1c]
mov eax, 0x418aa8
call fcn.004042f4
mov edx, dword [0x418aa8]
mov eax, esi
call fcn.004105f0
mov eax, esi
call fcn.00403704
push 2
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4123aa
test bl, bl
je 0x412446
lea eax, [ebp - 0x24]
call fcn.00410f1c
mov eax, dword [ebp - 0x24]
call fcn.004046b4
push eax
push 0x412490
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x4124a0
push dword [0x418aa8]
push 0x4124b8
lea eax, [ebp - 0x28]
mov edx, dword [0x413bb0]
mov edx, dword [edx]
call fcn.00404498
push dword [ebp - 0x28]
push 0x4124c4
mov eax, 0x418aac
mov edx, 5
call fcn.00404610
cmp dword [0x418aa0], 0x8000
jne 0x412423
push 0x30
push 0x4124c8
push 0x4124d8
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x418aac]
call fcn.004114ac
mov ebx, eax
mov eax, dword [0x418aa8]
call fcn.004046b4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x413a88]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412468
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004042c4
ret