joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404518
test esi, esi
jne 0x402eca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404608
jmp 0x402ee8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d38
mov edi, eax
test esi, esi
je 0x402ee8
cmp dword [ebx], 0
je 0x402ee8
dec esi
jmp 0x402ed1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033b4
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x4033ca
sub ecx, 2
jne 0x4033ec
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4033f3
cmp edx, dword [ebx + 8]
je 0x4033fd
mov eax, 0x64
jmp 0x4033f8
mov eax, 0x67
jmp 0x4033f8
call sub.kernel32.dll_GetLastError
call fcn.00402bfc
pop ebx
ret

Function at 0x403604
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403637
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40363e
cmp edx, dword [ebx + 8]
je 0x403648
mov eax, 0x65
jmp 0x403643
mov eax, 5
jmp 0x403643
call sub.kernel32.dll_GetLastError
call fcn.00402bfc
mov eax, ebx
pop ebx
ret

Function at 0x403970
Capabilities:
Query or enumerate registry value

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

Function at 0x404398
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x4043f9
cmp word [0x40c218], 0xd7b2
jne 0x4043c1
cmp dword [0x40c220], 0
jbe 0x4043c1
mov eax, 0x40c214
call dword [0x40c230]
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 0x404420
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x404415
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404d84
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 0x404fb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404fb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404fd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e90
xor eax, eax
push ebp
push 0x404e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404bc0
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 0x404e6e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ff0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e6e
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 0x404e90
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 0x404faa
cmp byte [ebp - 0xd], 0
jne 0x404ed7
cmp byte [ebp - 0x12], 0
je 0x404faa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ef0
dec ebx
cmp byte [ebx], 0x2e
je 0x404eff
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404eef
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404faa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f3c
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 0x404faa
cmp byte [ebp - 0xd], 0
je 0x404faa
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 0x404faa
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 0x404e90
Capabilities:
Get geographical location

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 0x404fb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404fb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404fd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e90
xor eax, eax
push ebp
push 0x404e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404bc0
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 0x404e6e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404ff0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e6e
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 0x404e90
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 0x404faa
cmp byte [ebp - 0xd], 0
jne 0x404ed7
cmp byte [ebp - 0x12], 0
je 0x404faa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ef0
dec ebx
cmp byte [ebx], 0x2e
je 0x404eff
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404eef
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404faa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f3c
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 0x404faa
cmp byte [ebp - 0xd], 0
je 0x404faa
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 0x404faa
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 0x406e10
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 0x406e49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404608
jmp 0x406e52
mov eax, ebx
mov edx, esi
call fcn.0040456c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406e5c
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 0x406e7e
movzx eax, byte [esp]
jmp 0x406e80
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407510
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407388
mov eax, dword [0x40bcb4]
cmp byte [eax], 0
je 0x40758c
mov eax, dword [0x40bc10]
call fcn.004031fc
call fcn.00402bdc
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.004062e8
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 0x4075d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4075c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40bbf0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e7f0]
call fcn.00404b68
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 0x408cd8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffeec
mov esi, edx
lea edi, [esp]
push ecx
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
pop ecx
xor edi, edi
mov edx, eax
mov ebx, ecx
add ebx, ebx
add ebx, ebx
add ebx, edi
mov esi, dword [esp + ebx*4 + 0x24]
mov ebx, esi
shr ebx, 0x18
and bl, 0xff
xor byte [edx], bl
mov ebx, esi
shr ebx, 0x10
and bl, 0xff
xor byte [edx + 1], bl
mov ebx, esi
shr ebx, 8
and bl, 0xff
xor byte [edx + 2], bl
mov ebx, esi
and bl, 0xff
xor byte [edx + 3], bl
inc edi
add edx, 4
cmp edi, 4
jne 0x408cf3
add esp, 0x114
pop edi
pop esi
pop ebx
ret
Function at 0x4090c0
Capabilities:
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, 0x40baa4
xor esi, esi
mov eax, str.cw
mov edx, esi
movzx ecx, byte [eax]
mov byte [ecx + 0x40f224], dl
inc esi
inc eax
cmp esi, 0x100
jne 0x4090d6
mov byte [esp], 1
mov esi, 1
lea eax, [edi + 1]
mov edx, esi
movzx ecx, byte [eax]
mov byte [esp + ecx], dl
inc esi
inc eax
cmp esi, 0x100
jne 0x4090f7
mov byte [0x40f324], 0
mov byte [0x40f424], 0
mov byte [0x40f524], 0
mov byte [0x40f624], 0
mov byte [0x40f724], 0
mov byte [0x40f824], 0
mov esi, 0xff
lea ecx, [edi + 1]
mov ebx, 0x40f325
movzx eax, byte [edi + 2]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx], al
movzx eax, byte [edi + 3]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx + 0x100], al
movzx eax, byte [edi + 9]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx + 0x200], al
movzx eax, byte [edi + 0xb]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx + 0x300], al
movzx eax, byte [edi + 0xd]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx + 0x400], al
movzx eax, byte [edi + 0xe]
movzx edx, byte [ecx]
add eax, edx
mov ebp, 0xff
xor edx, edx
div ebp
movzx eax, byte [esp + edx]
mov byte [ebx + 0x500], al
inc ebx
inc ecx
dec esi
jne 0x409140
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40111a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x406290
cmp dword [edi], ebx
je 0x4011ab
push str._mozilla.org_observer_service_1
mov edx, 0x40811c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.00404639
mov eax, dword [ebp - 4]
test eax, eax
je 0x40118b
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change2
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.004046e8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4011ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4011e2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x4011e2
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00401c89
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.004042a3
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4011fe
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40120b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x401217
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x401227
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x474d20
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.00475470
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x474e4e
add eax, 0x14
jo 0x474e4e
add eax, edx
jo 0x474e4e
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x474e4e
movsx ebp, ax
cmp ebp, ebx
jl 0x474e3f
lea ecx, [esp + 0x14]
push ecx
call fcn.004756b0
push 0x28
push edi
push eax
call fcn.004755d0
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x474ddc
test eax, 0x40000000
je 0x474dcb
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x474e01
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x474e01
test eax, 0x40000000
je 0x474df4
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x474e01
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004756b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x474e4e
push ecx
call fcn.004755b0
test eax, eax
je 0x474e3f
add edi, 0x28
jo 0x474e4e
add ebx, 1
jo 0x474e4e
cmp ebx, ebp
jle 0x474d95
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x414f9d
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.0040ce9a
and dword [ebp - 4], 0
cmp dword [0x424430], 0
mov ebx, eax
jne 0x41504e
push 0x41cbc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4150ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cbb8
push edi
call esi
test eax, eax
je 0x4150ff
push eax
call fcn.0040ce28
mov dword [esp], 0x41cba8
push edi
mov dword [0x424430], eax
call esi
push eax
call fcn.0040ce28
mov dword [esp], 0x41cb94
push edi
mov dword [0x424434], eax
call esi
push eax
call fcn.0040ce28
mov dword [esp], 0x41cb78
push edi
mov dword [0x424438], eax
call esi
push eax
call fcn.0040ce28
pop ecx
mov dword [0x424440], eax
test eax, eax
je 0x41504e
push 0x41cb60
push edi
call esi
push eax
call fcn.0040ce28
pop ecx
mov dword [0x42443c], eax
mov eax, dword [0x42443c]
cmp eax, ebx
je 0x4150a6
cmp dword [0x424440], ebx
je 0x4150a6
push eax
call fcn.0040cea3
push dword [0x424440]
mov esi, eax
call fcn.0040cea3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4150a6
test edi, edi
je 0x4150a6
call esi
test eax, eax
je 0x41509d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41509d
test byte [ebp - 0xc], 1
jne 0x4150a6
or dword [ebp + 0x10], 0x200000
jmp 0x4150df
mov eax, dword [0x424434]
cmp eax, ebx
je 0x4150df
push eax
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4150df
mov eax, dword [0x424438]
cmp eax, ebx
je 0x4150df
push eax
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424430]
call fcn.0040cea3
pop ecx
test eax, eax
je 0x4150ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415101
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 0x429eb0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x429eb6
ret

Function at 0x4383a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x438555
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004049b8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x43856c
call fcn.00404614
mov eax, ebx
call fcn.0042757c
mov edi, eax
dec edi
test edi, edi
jl 0x43845c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00427550
mov edx, dword [0x463ef4]
call fcn.00403624
test al, al
je 0x438458
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00427550
lea edx, [ebp - 0x14]
call fcn.00472d24
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004049b8
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404688
inc esi
dec edi
jne 0x43840a
mov al, byte [0x438570]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43857c
mov eax, dword [ebp - 0xc]
call fcn.0040e824
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004043a0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00472d24
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43856c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00472d24
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43856c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43856c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x438588
call fcn.0040a164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43855c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040432c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040432c
lea eax, [ebp - 0x14]
call fcn.00404308
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040432c
ret
Function at 0x4992cc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4992fa
mov eax, ebx
call fcn.00499d80
cmp dword [ebx + 0x40], 0
je 0x4992f3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49936b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49935d
cmp dword [ebx + 8], 0
je 0x49931c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49932e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49935d
cmp dword [ebx + 8], 0
je 0x49930f
cmp eax, 3
je 0x499341
dec eax
jne 0x49930f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49930f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49930f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x499389
cmp dword [ebx + 0x14], 0xcc
je 0x499389
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00499394
pop ebx
ret