joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455884
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00413704
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0045044c
test ebx, ebx
jne 0x4558d7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004557c0
mov ebx, eax
test ebx, ebx
je 0x4559c2
cmp esi, ebx
je 0x455900
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x455915
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45594d
add eax, 0xffffff5f
sub eax, 2
jb 0x455965
dec eax
sub eax, 2
jb 0x455979
dec eax
sub eax, 2
jb 0x45596f
jmp 0x455983
add eax, 0xfffffdff
sub eax, 2
jb 0x455965
dec eax
sub eax, 2
jb 0x455979
dec eax
sub eax, 2
jb 0x45596f
jmp 0x455983
mov byte [esp + 0x120], 0
jmp 0x45598b
mov byte [esp + 0x120], 2
jmp 0x45598b
mov byte [esp + 0x120], 1
jmp 0x45598b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0043d1cc
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00451bf0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4559c4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x45dd04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x481390]
cmp byte [eax + 0xc], 0
je 0x45de71
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45de6a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48664c], 0
jne 0x45dd58
push 0x45de78
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45de80
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48664c], eax
cmp dword [0x47b2f8], 0
jne 0x45de53
push 0x45de90
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x47b2f8], eax
cmp dword [0x47b2f8], 0
je 0x45de53
push 0x45de9c
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486650], eax
push 0x45deac
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486654], eax
push 0x45dec0
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486658], eax
push 0x45ded8
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48665c], eax
push 0x45def0
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486660], eax
push 0x45df04
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486664], eax
push 0x45df1c
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486668], eax
push 0x45df34
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48666c], eax
push 0x45df50
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486670], eax
push 0x45df5c
mov eax, dword [0x47b2f8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x486674], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de71
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4617f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x47bb6c
call fcn.0046aaa8
mov word [ebp - 0x18], 0xc
mov edx, 0x47c070
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004663b0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46183d
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.00464b64
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x461840
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467274
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x47d074
call fcn.0046aaa8
mov word [ebp - 0x18], 0xc
mov edx, 0x47d3fc
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004663b0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4672c1
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.00464b64
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4672c4
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x46b934
call fcn.0046ca88
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x46b953
test bl, 1
je 0x46b953
call fcn.00471c5c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46ebd8
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.0046a750
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0046a7e0
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0046a7e0
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 0x47f195
lea ecx, [ebp - 0x200]
push ecx
call fcn.0046a750
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0046a7e0
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0046fd74
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x46ece9
push esi
call fcn.0046a7e0
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0046a7e0
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0046a3a8
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x46ecc0
xor eax, eax
jmp 0x46ed70
push esi
call fcn.0046a7e0
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0046a7e0
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0046a6a8
add esp, 0xc
jmp 0x46ed29
mov edi, dword [ebx + 0x24]
push edi
call fcn.0046a7e0
pop ecx
push eax
push esi
call fcn.0046a7e0
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0046a7e0
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0046a3c8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x46ed29
xor eax, eax
jmp 0x46ed70
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0046a750
add esp, 8
push 0x47f197
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0046a750
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0046a750
add esp, 8
push 0x47f199
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0046a750
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471bf0
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
jne 0x471c1d
jmp 0x471c54
call fcn.00471ba0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0046a7e0
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.0046a7e0
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 0x471cd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x47f7c8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x471db2
cmp dword [0x47f7c4], 0
jne 0x471db2
cmp dword [0x47f9a8], 0
je 0x471d6c
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.00471aa0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x471d52
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00471aa0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x471d52
lea ebx, [ebp - 0x84]
jmp 0x471d53
inc ebx
call fcn.00471c90
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x471ded
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x47f7cc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0046a7e0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x47f7cf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x471ded
cmp dword [0x47f7c4], 0
je 0x471dcc
cmp dword [0x47f7c4], 0xffffffff
je 0x471ded
push esi
call dword [0x47f7c4]
pop ecx
mov eax, dword [0x47f7c8]
test eax, eax
je 0x471ded
cmp dword [0x47f7c8], 0xffffffff
je 0x471ded
cmp byte [eax], 0
je 0x471ded
push esi
push eax
call fcn.00471bf0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472584
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x487388], 0
jne 0x472605
cmp dword [0x4873a8], 0
jne 0x4725b4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4873a8], eax
test eax, eax
jne 0x4725b4
push str.GetEnvironmentStrings_failed
call fcn.00471e04
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4873a8]
jmp 0x4725c8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0046a7e0
pop ecx
mov edi, eax
test eax, eax
jne 0x4725c0
lea edi, [ebp + 1]
push edi
call fcn.0046a3a8
pop ecx
mov ebx, eax
mov dword [0x48738c], ebx
test ebx, ebx
jne 0x4725f2
xor eax, eax
jmp 0x4726c8
push edi
mov edx, dword [0x4873a8]
push edx
push ebx
call fcn.0046a614
add esp, 0xc
jmp 0x472625
xor esi, esi
mov ebx, dword [0x487388]
jmp 0x47261f
push eax
call fcn.0046a7e0
pop ecx
test eax, eax
jne 0x47261b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47260f
lea ebx, [esi + 4]
push 4
mov dword [0x487390], ebx
inc ebx
push ebx
call fcn.0046a068
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x472648
xor eax, eax
jmp 0x4726c8
cmp dword [0x487388], 0
jne 0x472679
xor esi, esi
mov ebx, dword [0x48738c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47266a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0046a7e0
pop ecx
mov edi, eax
test eax, eax
jne 0x472660
jmp 0x4726aa
xor esi, esi
mov ebx, dword [0x487388]
mov eax, dword [esp]
mov edi, eax
jmp 0x4726a4
push eax
call fcn.0046a7e0
pop ecx
test eax, eax
je 0x472699
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x47269d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x472688
mov eax, dword [0x487388]
test eax, eax
je 0x4726ba
push eax
call fcn.0046a3b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x487388], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0xc0], eax
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0
mov eax, dword [0x437028]
cmp eax, 0xffffffff
je 0x4021c1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x4021c6
call fcn.00402350
mov eax, dword [0x438114]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40221f
push 0x438114
call fcn.00409e46
add esp, 4
cmp dword [0x438114], 0xffffffff
jne 0x40221f
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00401be0
mov dword [0x438110], edi
push 0x438114
call fcn.00409e46
add esp, 4
mov edi, dword [0x438110]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43750c]
inc eax
xor ecx, ecx
lea edx, [eax + ecx]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x437510], 0
jne 0x4022c0
lea eax, [ebx*4 + 0x437510]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x437514], ecx
mov dword [0x43750c], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x437518]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x4022cf
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x402309
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x402234
jmp 0x402277
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0040d570
add esp, 0xc
test eax, eax
je 0x402291
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0040d360
mov ecx, edi
call fcn.0040d3c0
jmp 0x402291
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0040d570
add esp, 0xc
test eax, eax
je 0x4022a6
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0040d360
mov ecx, edi
call fcn.0040d3c0
jmp 0x4022a6
Function at 0x4062a0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ecx + 4], eax
mov eax, dword [0x437100]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x438438]
cmp ecx, dword [eax + 4]
jg 0x406373
mov ecx, dword [0x438434]
lea eax, [ebx + edi]
dec eax
xor edi, edi
xor edx, edx
div ecx
mov esi, eax
mov eax, ebx
xor edx, edx
div ecx
sub esi, eax
inc esi
mov dword [ebp - 0x48], esi
je 0x40635e
mov ebx, eax
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x40], eax
imul ebx, ecx
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x4063b1
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x4063c2
mov edx, ecx
mov ecx, dword [ecx + 4]
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
inc dword [edx + 8]
inc edi
mov ecx, dword [ebp - 0x44]
add ebx, ecx
cmp edi, dword [ebp - 0x48]
jne 0x406324
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x438438
call fcn.00409e46
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x4062f3
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409e46
add esp, 4
jmp 0x4062f3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.0042e380
jmp 0x40635e
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x40]
call fcn.0042e440
test al, al
je 0x4063b8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x3c]
jmp 0x406344
Function at 0x408310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x438404]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x408373
push 0x438404
call fcn.00409e46
add esp, 4
cmp dword [0x438404], 0xffffffff
jne 0x408373
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x438400], eax
push 0x438404
call fcn.00409e46
add esp, 4
mov esi, dword [0x438400]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x408390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4083d6
mov esi, dword [0x438434]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x438438
call fcn.00409e46
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x4083be
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409e46
add esp, 4
jmp 0x4083be
Function at 0x409e46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x409e55
pop dword [ebp - 8]
mov eax, 0x409e55
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x36a90
push 0
mov eax, 0xa50fe7f7
add eax, 0x5b335d35
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x46da
xor esi, esi
add esi, eax
mov edx, 0x862bc236
sub edx, 0x85e7e236
add edx, dword [ebp - 8]
mov ebx, 0xa5eb1410
sub ebx, 0x4f73ec4f
xor dword [ebp - 4], ecx
mov edi, dword [edx]
add dword [ebp - 4], 0x4d85e504
xor edi, ebx
add dword [ebp - 4], 0xa89a1130
mov dword [esi], edi
xor dword [ebp - 4], edx
add esi, 0xb606f4f7
sub esi, 0xb606f4f3
add edx, 4
loop 0x409eab
add eax, 0x10e3b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x83b894a6
sub ecx, 0x837894a6
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x40c900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x40c93a
call fcn.0040ca10
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040a740
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x64002e
mov dword [ebp - 0x14], 0x6c006c
mov word [ebp - 0x10], 0
cmp dword [0x4383a0], 0
jne 0x40c971
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x4383a0], eax
lea esi, [ebp - 0x2c]
mov dword [esi], 0
lea edi, [ebp - 0x28]
mov dword [edi], 0x4383ec
mov dword [edi + 4], 0x43836c
mov dword [edi + 8], 0x4318ad
mov dword [edi + 0xc], 0x42dda0
mov byte [edi + 0x10], 0
push esi
push edi
push 0x42de00
push 0x4383f0
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
je 0x40c924
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4383f4
mov dword [ebp - 0x24], 0x43836c
mov dword [ebp - 0x20], 0x43189d
mov dword [ebp - 0x1c], 0x42ddc0
mov byte [ebp - 0x18], 0
push esi
push edi
push 0x42de00
push 0x4383f8
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x40c924
cmp dword [ebp - 0x2c], 0
jne 0x40c929
jmp 0x40c924