joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1e1212a0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, str._jz
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6a6902ca
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401007
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00409e70
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ebx, dword [edi]
xor esi, esi
cmp dword [0x2b2fa94], 0x594
mov dword [ebp - 0xc], eax
jne 0x40103f
push esi
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x459ee8]
mov dword [ebp - 0x34], eax
mov eax, dword [0x459eec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x459ef0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x459ef4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2b2fa94], 0xc
mov dword [ebp - 4], eax
jne 0x4010dc
push esi
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1040]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x2b2fa94]
cmp eax, 0xfa9
jne 0x4010f8
mov dword [0x2b2fa90], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401113
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2b2f444], esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, ebx
add eax, ebx
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x2b2fa8c], 0xf4ea3dee
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, dword [ebp - 0x28]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x40107f
mov eax, dword [ebp - 0xc]
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405d6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459400]
jne 0x405d79
repz ret
jmp fcn.00409380

Function at 0x4075fe
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.00404461
and dword [ebp - 4], 0
cmp dword [0x45befc], 0
mov ebx, eax
jne 0x4076af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407760
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407760
push eax
call fcn.004043ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45befc], eax
call esi
push eax
call fcn.004043ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45bf00], eax
call esi
push eax
call fcn.004043ef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45bf04], eax
call esi
push eax
call fcn.004043ef
pop ecx
mov dword [0x45bf0c], eax
test eax, eax
je 0x4076af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004043ef
pop ecx
mov dword [0x45bf08], eax
mov eax, dword [0x45bf08]
cmp eax, ebx
je 0x407707
cmp dword [0x45bf0c], ebx
je 0x407707
push eax
call fcn.0040446a
push dword [0x45bf0c]
mov esi, eax
call fcn.0040446a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407707
test edi, edi
je 0x407707
call esi
test eax, eax
je 0x4076fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4076fe
test byte [ebp - 0xc], 1
jne 0x407707
or dword [ebp + 0x10], 0x200000
jmp 0x407740
mov eax, dword [0x45bf00]
cmp eax, ebx
je 0x407740
push eax
call fcn.0040446a
pop ecx
test eax, eax
je 0x407740
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407740
mov eax, dword [0x45bf04]
cmp eax, ebx
je 0x407740
push eax
call fcn.0040446a
pop ecx
test eax, eax
je 0x407740
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45befc]
call fcn.0040446a
pop ecx
test eax, eax
je 0x407760
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407762
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1248781c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2250530e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4040c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4040cf
pop dword [ebp - 0x20]
mov eax, 0x4040cf
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x59bd3389
add dword [ebp - 0x30], 0xf49511c2
mov dword [ebp - 0x2c], 0xb4af21f6
sub dword [ebp - 0x2c], 0x827bd5b1
mov dword [ebp - 0x28], 0x7e504016
add dword [ebp - 0x28], 0xcdfc0418
mov dword [ebp - 0x24], 0xfccc2158
sub dword [ebp - 0x24], 0xfccc2158
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe8bd4301
add dword [ebp - 0x30], 0x8bb52655
mov dword [ebp - 0x2c], 0x84f1cebc
add dword [ebp - 0x2c], 0xbc7a92b9
mov dword [ebp - 0x28], 0xf04339dc
add dword [ebp - 0x28], 0x732c3290
mov dword [ebp - 0x24], 0xbe74da6b
sub dword [ebp - 0x24], 0xbe74da6b
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xf023870c
sub eax, 0xefe256d4
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a49f
push 0
call eax
mov ecx, 0x779b228f
sub ecx, 0x779ad5c1
mov edi, eax
mov ebx, 0x85a55a11
add ebx, 0x7a9c49ef
add ebx, dword [ebp - 0x20]
mov esi, 0xd1479cf1
mov dword [ebp - 0x18], 0x52b49965
mov edx, dword [ebx]
xor dword [ebp - 0xc], 0xa074374d
sub edx, esi
add dword [ebp - 0x14], edx
mov dword [edi], edx
add dword [ebp - 0x10], ebx
add edi, 0xbd2c5208
sub edi, 0xbd2c5204
add ebx, 0x27815beb
sub ebx, 0x27815be7
loop 0x4041e1
add eax, 0xd1c5511d
sub eax, 0xd1c42b12
xor ebx, ebx
add ebx, eax
add eax, 0xe6262a0d
sub eax, 0xe6262a08
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x407a60
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
jne 0x407b30
push ebx
push esi
push str.mapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0xc
mov dword [edi + 0x18], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407ad0
xorps xmm0, xmm0
movq qword [ebx], xmm0
push str.MAPIFreeBuffer
mov dword [ebx + 8], 0
push dword [edi + 0x18]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0x18]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebx + 8], esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebx], vtable.MapiAllocator.0
mov dword [ebx + 4], eax
jmp 0x407ad2
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0x18]
mov dword [edi + 0x24], eax
call esi
push str.MAPILogonEx
push dword [edi + 0x18]
mov dword [edi + 0x28], eax
call esi
push str.MAPIAdminProfiles
push dword [edi + 0x18]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x24]
pop esi
pop ebx
test eax, eax
je 0x407b30
cmp dword [edi + 0x28], 0
je 0x407b30
cmp dword [edi + 0x2c], 0
je 0x407b30
push 0
call eax
mov dword [edi + 0x14], eax
test eax, eax
js 0x407b30
mov dword [edi + 0x34], 1
pop edi
ret
Function at 0x403288
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x404564]
test eax, eax
je 0x4032a1
call eax
test eax, eax
jne 0x4032a1
push 0xfffffffffffffffe
jmp 0x4032bb
push 1
push 0x404010
push 0x404008
call fcn.00403757
add esp, 0xc
test eax, eax
je 0x4032c1
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x404004
push section..data
call fcn.00403757
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x4032e7
mov esi, 0x4014eb
mov cl, 0x20
jmp 0x4032f0
cmp al, 0x20
ja 0x4032fa
inc esi
mov al, byte [esi]
test al, al
jne 0x4032eb
cmp al, 0x20
jbe 0x403311
mov al, byte [esi]
cmp al, 0x22
jne 0x403303
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x4032fc
jmp 0x403311
cmp al, cl
ja 0x403317
inc esi
mov al, byte [esi]
test al, al
jne 0x40330c
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x403340
movzx eax, word [ebp - 0x14]
jmp 0x403343
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403722
pop ecx
pop esi
leave
ret

Function at 0x403722
Capabilities:
Terminate process

Disassembly:
call fcn.00403793
push 0
push 0x404018
push 0x404014
call fcn.00403757
push 0
push 0x404020
push 0x40401c
call fcn.00403757
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405e1e
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x405e20
ret

Function at 0x4a21d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x72000]
push edi
or ebp, 0xffffffff
jmp 0x4a21f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a21f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a21e8
mov eax, 1
add ebx, ebx
jne 0x4a220b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a221c
jne 0x4a222c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a222c
dec eax
add ebx, ebx
jne 0x4a2228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a2200
xor ecx, ecx
sub eax, 3
jb 0x4a2244
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a22b6
sar eax, 1
mov ebp, eax
jmp 0x4a224f
add ebx, ebx
jne 0x4a224f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a225c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a2280
inc ecx
add ebx, ebx
jne 0x4a226c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a2261
jne 0x4a227d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a2261
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a22a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a2291
jmp 0x4a21ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a22a0
add edi, ecx
jmp 0x4a21ee
pop esi
mov edi, esi
mov ecx, 0xdc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a22be
cmp byte [edi], 6
jne 0x4a22be
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4a22c3
lea edi, [esi + 0xa0000]
mov eax, dword [edi]
or eax, eax
je 0x4a2332
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa2218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa227c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a22f0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa2280]
or eax, eax
je 0x4a232c
mov dword [ebx], eax
add ebx, 4
jmp 0x4a230d
call dword [esi + 0xa2284]
popal
jmp 0x41b0b8
Function at 0x401130
Capabilities:
Delete directory
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 0
push 0x13
push 4
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x401199
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x143
jge 0x4011ad
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401190
cmp dword [ebp - 4], 0
jbe 0x4011fc
push 0x40
mov eax, 0x1000
push eax
mov ecx, 0x1400
push ecx
push 0
push 0x4010e0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4011f5
push 0
call fcn.004015d1
add esp, 4
mov dword [0x4db138], eax
mov dword [ebp + 8], 0x27
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417890
cmp edx, dword [eax]
je 0x4028a3
add eax, 8
inc ecx
cmp eax, 0x417920
jl 0x402894
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417890]
jne 0x4029d1
mov eax, dword [0x4db144]
cmp eax, 1
je 0x4029ab
test eax, eax
jne 0x4028d4
jmp 0x4e3835
cmp edx, 0xfc
je 0x4029d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40290b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40294e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406970
push edi
call fcn.00403b80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403990
lea eax, [ebp - 0xa0]
push 0x406950
push eax
call fcn.00403990
push dword [esi + 0x417894]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403aeb
add esp, 0x2c
pop edi
jmp 0x4029d1
lea eax, [ebp + 8]
lea esi, [esi + 0x417894]
push 0
push eax
push dword [esi]
call fcn.00403a70
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 0x4100d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x410117
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4100e6
jmp 0x410117
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x410107
pop esi
pop ebp
ret

Function at 0x410e6f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x410ea4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x410ece
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x410ece
test edi, edi
je 0x410e9b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x410e9b
test edi, edi
je 0x410ed6
mov eax, edi
jmp 0x410e9d
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x410e9d
mov esi, 0xc7
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00413bd8
add esp, 0xc
int3
Function at 0x413c0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestMaybe.exe_gMozillaPoisonSize], eax
call fcn.00410e6f
pop ecx
mov ecx, dword [sym.TestMaybe.exe_gMozillaPoisonSize]
mov dword [sym.TestMaybe.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x413c44
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestMaybe.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401bf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401c3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c34
test esi, esi
je 0x401c34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c10
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f44
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401eae
cmp eax, 4
jne 0x401ed0
test esi, esi
je 0x401ec2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401eb4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401f0f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401f01
cmp ecx, 0x40
je 0x401ec2
cmp ecx, 4
je 0x401ec2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e20
lea esi, [esi]

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x1002425
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1002248
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002482
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0x10014a0
push dword [ebp + 8]
call esi
test eax, eax
je 0x10031df
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x100249b