joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e014
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x40e030
call fcn.0040f130
jmp 0x40e09f
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x40e04c
call fcn.0040f130
jmp 0x40e09f
cmp dword [0x422bec], 1
je 0x40e09d
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00415bf8
pop ecx
cmp al, 0x41
jl 0x40e09d
cmp al, 0x5a
jg 0x40e09d
cmp byte [ebp - 0x107], 0x3a
jne 0x40e09d
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x40e09d
call fcn.0040f130
jmp 0x40e09f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e0d4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.0040b478
pop ecx
mov esi, eax
test eax, eax
jne 0x40e0f8
call fcn.00415d78
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x40e13c
push esi
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x40e0e8
cmp eax, 0x104
jg 0x40e0e8
movsx ebx, byte [esi]
cmp byte [esi + 1], 0x3a
jne 0x40e133
mov edi, ebx
push edi
call fcn.0041325c
pop ecx
mov ebx, eax
cmp ebx, 0x41
jl 0x40e131
cmp ebx, 0x5a
jg 0x40e131
add ebx, 0xffffffc0
jmp 0x40e133
xor ebx, ebx
push esi
call fcn.0040b488
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ea54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0040b478
pop ecx
mov ebx, eax
test eax, eax
jne 0x40ea78
xor eax, eax
jmp 0x40eb21
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x40ea99
cmp esi, 0x104
jb 0x40eaa4
push ebx
call fcn.0040b488
pop ecx
xor eax, eax
jmp 0x40eb21
cmp byte [ebx + 1], 0x3a
jne 0x40ead4
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x40ead4
push ebx
call fcn.0040b488
pop ecx
xor eax, eax
jmp 0x40eb21
inc esi
test edi, edi
je 0x40eb17
cmp esi, dword [ebp + 0x10]
jbe 0x40eae9
push ebx
call fcn.0040b488
pop ecx
xor eax, eax
jmp 0x40eb21
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0040b488
pop ecx
mov eax, edi
jmp 0x40eb21
push esi
push ebx
call fcn.0040b498
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40eb88
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40ebce
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x40ebbc
cmp eax, dword [ebp + 0x10]
jle 0x40ec57
call fcn.00415d78
mov dword [eax], 8
xor eax, eax
jmp 0x40ecc4
cmp dword [0x422bec], 1
jne 0x40ec13
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x40ec57
xor eax, eax
jmp 0x40ecc4
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x40ec53
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x40ec57
xor eax, eax
jmp 0x40ecc4
lea edx, [ebp - 0x10c]
push edx
call fcn.0040c4a8
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x40ec78
call fcn.00415d78
mov dword [eax], 0x22
xor eax, eax
jmp 0x40ecc4
test edi, edi
jne 0x40ec9b
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040b478
pop ecx
mov edi, eax
test eax, eax
jne 0x40ec9b
call fcn.00415d78
mov dword [eax], 8
xor eax, eax
jmp 0x40ecc4
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0040c39c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0040c4a8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0040c4a8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x420c99
lea ecx, [ebp - 0x200]
push ecx
call fcn.0040c39c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0040c4a8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00413980
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4128a1
push esi
call fcn.0040c4a8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040c4a8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0040b478
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x412878
xor eax, eax
jmp 0x412928
push esi
call fcn.0040c4a8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0040c4a8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0040c2f8
add esp, 0xc
jmp 0x4128e1
mov edi, dword [ebx + 0x24]
push edi
call fcn.0040c4a8
pop ecx
push eax
push esi
call fcn.0040c4a8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0040c4a8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0040b498
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4128e1
xor eax, eax
jmp 0x412928
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0040c39c
add esp, 8
push 0x420c9b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0040c39c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0040c39c
add esp, 8
push 0x420c9d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0040c39c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x415d72
call fcn.00415cc0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040c4a8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040c4a8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x415df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4212a8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x415eca
cmp dword [0x4212a4], 0
jne 0x415eca
cmp dword [0x4214ec], 0
je 0x415e84
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00415ba0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x415e6a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00415ba0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x415e6a
lea ebx, [ebp - 0x84]
jmp 0x415e6b
inc ebx
call fcn.00415dac
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x415f05
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4212ac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040c4a8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4212af
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x415f05
cmp dword [0x4212a4], 0
je 0x415ee4
cmp dword [0x4212a4], 0xffffffff
je 0x415f05
push esi
call dword [0x4212a4]
pop ecx
mov eax, dword [0x4212a8]
test eax, eax
je 0x415f05
cmp dword [0x4212a8], 0xffffffff
je 0x415f05
cmp byte [eax], 0
je 0x415f05
push esi
push eax
call fcn.00415d10
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4172e4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040c4a8
pop ecx
inc eax
push eax
call fcn.0040b478
pop ecx
mov ebx, eax
test eax, eax
jne 0x417312
call fcn.00415d78
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x41738b
xor eax, eax
push esi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x3d
push ebx
call fcn.004158dc
add esp, 8
mov esi, eax
test eax, eax
jne 0x41735d
call fcn.00415d78
mov dword [eax], 0x13
push ebx
call fcn.0040b488
pop ecx
or eax, 0xffffffff
jmp 0x41738b
mov byte [esi], 0
cmp byte [esi + 1], 0
jne 0x41736a
xor edx, edx
jmp 0x41736d
lea edx, [esi + 1]
push edx
push ebx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x417380
call fcn.0040f130
mov esi, eax
jmp 0x417382
xor esi, esi
push ebx
call fcn.0040b488
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4173e4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x422c88], 0
jne 0x417465
cmp dword [0x422ca8], 0
jne 0x417414
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x422ca8], eax
test eax, eax
jne 0x417414
push str.GetEnvironmentStrings_failed
call fcn.00415f1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x422ca8]
jmp 0x417428
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040c4a8
pop ecx
mov edi, eax
test eax, eax
jne 0x417420
lea edi, [ebp + 1]
push edi
call fcn.0040b478
pop ecx
mov ebx, eax
mov dword [0x422c8c], ebx
test ebx, ebx
jne 0x417452
xor eax, eax
jmp 0x417528
push edi
mov edx, dword [0x422ca8]
push edx
push ebx
call fcn.0040c288
add esp, 0xc
jmp 0x417485
xor esi, esi
mov ebx, dword [0x422c88]
jmp 0x41747f
push eax
call fcn.0040c4a8
pop ecx
test eax, eax
jne 0x41747b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41746f
lea ebx, [esi + 4]
push 4
mov dword [0x422c90], ebx
inc ebx
push ebx
call fcn.0040b278
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4174a8
xor eax, eax
jmp 0x417528
cmp dword [0x422c88], 0
jne 0x4174d9
xor esi, esi
mov ebx, dword [0x422c8c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4174ca
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040c4a8
pop ecx
mov edi, eax
test eax, eax
jne 0x4174c0
jmp 0x41750a
xor esi, esi
mov ebx, dword [0x422c88]
mov eax, dword [esp]
mov edi, eax
jmp 0x417504
push eax
call fcn.0040c4a8
pop ecx
test eax, eax
je 0x4174f9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4174fd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4174e8
mov eax, dword [0x422c88]
test eax, eax
je 0x41751a
push eax
call fcn.0040b488
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x422c88], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41802c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x418052
test esi, esi
je 0x418052
call fcn.00415d78
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4180c4
call fcn.00417d40
mov ebx, eax
test eax, eax
jne 0x41806d
call fcn.00415d78
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4180c4
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x417f88
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4180b8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4180b1
push 0x59
call fcn.0040f0c4
pop ecx
jmp 0x4180c4
call fcn.0040f130
jmp 0x4180c4
mov dword [ebx + 8], eax
test edi, edi
je 0x4180c4
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40158f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov eax, 0x4041a4
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x4041a0], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, 3
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [0x404190], eax
mov eax, edi
mov dword [ebp - 0x44], 0x401488
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.pieta
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push edi
push dword [ebp - 0x38]
push edi
push edi
push 0x190
push 0x258
push 0xffffee08
push 0xffffee6c
push 0
push str.novice
push str.pieta
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x404198], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404198]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401679
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40165e
mov esp, ebp
pop ebp
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 0x41f159
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b100
cmp edx, dword [eax]
je 0x41f17b
add eax, 8
inc ecx
cmp eax, 0x42b190
jl 0x41f16c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b100]
jne 0x41f2a9
mov eax, dword [0x42bb40]
cmp eax, 1
je 0x41f283
test eax, eax
jne 0x41f1ac
cmp dword [0x428b78], 1
je 0x41f283
cmp edx, 0xfc
je 0x41f2a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41f1e3
lea eax, [ebp - 0x1a4]
push 0x423bf4
push eax
call fcn.0041ddb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041dd30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f226
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041dd30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4265e8
push edi
call fcn.0041ad00
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x423bd8
push eax
call fcn.0041ddb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041ddc0
lea eax, [ebp - 0xa0]
push 0x423bd4
push eax
call fcn.0041ddc0
push dword [esi + 0x42b104]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041ddc0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x423bac
push eax
call fcn.00420ab5
add esp, 0x2c
pop edi
jmp 0x41f2a9
lea eax, [ebp + 8]
lea esi, [esi + 0x42b104]
push 0
push eax
push dword [esi]
call fcn.0041dd30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x60444f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006044ce
jae 0x60445b
xor ecx, ecx
call fcn.006044ce
jae 0x604485
xor eax, eax
call fcn.006044ce
jae 0x604496
mov al, 0x10
call fcn.006044ce
adc al, al
jae 0x604477
jne 0x6044c3
stosb byte es:[edi], al
jmp 0x60445c
call fcn.006044da
dec ecx
loop 0x6044a2
mov eax, ebp
call fcn.006044d8
jmp 0x6044c4
lodsb al, byte [esi]
shr eax, 1
je 0x6044ea
adc ecx, 2
mov ebp, eax
jmp 0x6044c4
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006044d8
cmp eax, 0x7d00
jae 0x6044c2
cmp eax, 0x500
jae 0x6044c3
cmp eax, 0x7f
ja 0x6044c4
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x60445c
pop ebp
ret 8
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x415180
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402b36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401578
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x38]
mov edx, dword [ebp + 8]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], ecx
xor esi, esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xb0], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0xa0]
push 1
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x50]
push eax
push ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xa0], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
lea edx, [ebp - 0x80]
lea eax, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x90]
push eax
push ecx
mov dword [ebp - 0xa8], 0x40b5d4
mov dword [ebp - 0xb0], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x50]
call edi
lea edx, [ebp - 0x90]
lea eax, [ebp - 0x80]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push esi
push esi
push 3
push esi
push 3
push esi
push 0x40b5dc
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x6c]
call edi
lea edx, [ebp - 0x70]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.004080cc
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call ebx
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x6c]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp edi, reloc.OLE32.DLL_IIDFromString
je 0x415306
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
push edx
push eax
lea ecx, [ebp - 0x38]
push 0x28
push ecx
lea edx, [ebp - 0x44]
push 0xc
push edx
push 0x2d1400
push edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.00408114
call ebx
mov eax, dword [ebp - 0x1c]
push edi
mov dword [ebp - 0x48], eax
call fcn.00408158
call ebx
push 0x41533e
jmp 0x415334
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret