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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x471b88], 0
je 0x4389ff
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4702f4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4389ff
mov eax, dword [0x471b8c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x471b88]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4389ce
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x471b88]
call fcn.0041808c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4389c6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4389c6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4389c6
mov eax, dword [ebp - 0x14]
call fcn.0044153c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4389c6
push ebp
call fcn.0043886c
pop ecx
test al, al
jne 0x4389c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x438982
mov eax, dword [ebp - 0x14]
call fcn.0044006c
dec eax
jle 0x4389c6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004039b0
cmp byte [ebp - 1], 0
je 0x4389c6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4389c6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x471b8c]
call fcn.00438038
inc edi
dec ebx
jne 0x438915
mov eax, dword [0x471b8c]
cmp dword [eax + 8], 0
jle 0x4389e6
mov eax, dword [0x471b8c]
call fcn.004380c8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4389ff
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004386d4
pop ecx
test al, al
jne 0x4389ff
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bfd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43c020
mov eax, esi
call fcn.00451784
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43c020
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43c020
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43c15f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43c060
cmp eax, 0x108
ja 0x43c060
mov eax, esi
call fcn.00451784
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43c156
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43c15f
jmp 0x43c156
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43c13f
cmp eax, 0x20a
ja 0x43c13f
test byte [esi + 0x50], 0x80
jne 0x43c092
sub eax, 0x203
je 0x43c08f
sub eax, 3
je 0x43c08f
sub eax, 3
jne 0x43c092
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43c0a6
dec eax
je 0x43c0bb
dec eax
je 0x43c0d8
dec eax
je 0x43c0bb
jmp 0x43c0df
mov ecx, ebx
mov eax, dword [0x4702f4]
mov eax, dword [eax]
mov edx, esi
call fcn.0045af48
jmp 0x43c156
cmp byte [esi + 0x5d], 1
jne 0x43c0d1
mov eax, esi
mov si, 0xffed
call fcn.004039b0
jmp 0x43c15f
or word [esi + 0x54], 1
jmp 0x43c156
and word [esi + 0x54], 0xfffe
jmp 0x43c156
mov eax, dword [0x471b44]
cmp byte [eax + 0x20], 0
je 0x43c156
mov eax, dword [0x471b44]
cmp dword [eax + 0x1c], 0
je 0x43c156
mov eax, dword [ebx]
mov edx, dword [0x471b44]
cmp eax, dword [edx + 0x1c]
jne 0x43c156
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004516c8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004039b0
jmp 0x43c15f
cmp eax, 0xb00b
jne 0x43c156
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0043a900
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445eb4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x470494]
cmp byte [eax + 0xc], 0
je 0x446021
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44601a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x471b98], 0
jne 0x445f08
push 0x446028
call sub.KERNEL32.DLL_GetModuleHandleA_1
mov ebx, eax
push 0x446030
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471b98], eax
cmp dword [0x46ec20], 0
jne 0x446003
push 0x446040
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x46ec20], eax
cmp dword [0x46ec20], 0
je 0x446003
push 0x44604c
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471b9c], eax
push 0x44605c
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471ba0], eax
push 0x446070
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471ba4], eax
push 0x446088
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471ba8], eax
push 0x4460a0
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bac], eax
push 0x4460b4
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bb0], eax
push 0x4460cc
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bb4], eax
push 0x4460e4
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bb8], eax
push 0x446100
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bbc], eax
push 0x44610c
mov eax, dword [0x46ec20]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x471bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446021
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449eac
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404588
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x449efb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047f8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451638
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451688]
test si, 4
je 0x45164c
or bl, 1
test si, 8
je 0x451656
or bl, 4
test si, 1
je 0x451660
or bl, 8
test si, 2
je 0x45166a
or bl, 0x10
test si, 0x10
je 0x451674
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451683
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45168c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4516c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4516a5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4516b4
or bl, 4
test esi, 0x20000000
je 0x4516bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457d6c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457d7e
add esp, 0xfffffff0
call fcn.00403ad8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e940
mov eax, dword [0x4700b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x458110
mov eax, dword [0x4700c0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45811c
mov eax, ebx
call fcn.00458128
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x454544
push eax
push 0
push 0
mov eax, dword [0x470250]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420a1c]
call fcn.00422190
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420a1c]
call fcn.00422190
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420a1c]
call fcn.00422190
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458548
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458424
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458424
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458424
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457ebb
call fcn.00403b30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458e50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458e67
add esp, 0xfffffff0
call fcn.00403ad8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e940
mov eax, dword [0x470238]
cmp word [eax + 2], 0
jne 0x458e8f
mov eax, dword [0x470238]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a540
mov eax, dword [0x470314]
cmp word [eax + 2], 0
jne 0x458ea9
mov eax, dword [0x470314]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a738
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415a00]
call fcn.00403784
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4214fc]
call fcn.00428874
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459030
mov eax, dword [0x470128]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428c44
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45acd8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x470128]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d1ac
test eax, eax
je 0x458f9e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1d4
test eax, eax
je 0x458fb2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004047f8
mov eax, dword [0x46ffcc]
cmp byte [eax], 0
jne 0x458fe6
mov eax, ebx
call fcn.00459158
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045aeb4
mov eax, ebx
call fcn.0045b878
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459026
call fcn.00403b30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50066b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ed1ea
xor ebx, ebx
cmp dword [0x553fa8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x500741
push 0x5210e8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x500821
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x5210dc
push edi
call esi
cmp eax, ebx
je 0x500821
push eax
call fcn.004ed17c
mov dword [esp], 0x5210cc
push edi
mov dword [0x553fa8], eax
call esi
push eax
call fcn.004ed17c
mov dword [esp], 0x5210b8
push edi
mov dword [0x553fac], eax
call esi
push eax
call fcn.004ed17c
mov dword [0x553fb0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004e7243
test eax, eax
pop ecx
pop ecx
je 0x50070f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004eba6b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x500741
push 0x52109c
push edi
call esi
push eax
call fcn.004ed17c
cmp eax, ebx
pop ecx
mov dword [0x553fb8], eax
je 0x500741
push 0x521084
push edi
call esi
push eax
call fcn.004ed17c
pop ecx
mov dword [0x553fb4], eax
mov eax, dword [0x553fb4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5007c6
cmp dword [0x553fb8], ecx
je 0x5007c6
push eax
call fcn.004ed1f3
push dword [0x553fb8]
mov esi, eax
call fcn.004ed1f3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5007c6
cmp edi, ebx
je 0x5007c6
call esi
cmp eax, ebx
je 0x500793
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x500793
test byte [ebp - 0x18], 1
jne 0x5007c6
lea eax, [ebp - 0x10]
push eax
call fcn.004e727a
test eax, eax
pop ecx
je 0x5007ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004eba6b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5007bd
or dword [ebp + 0x10], 0x200000
jmp 0x500801
or dword [ebp + 0x10], 0x40000
jmp 0x500801
mov eax, dword [0x553fac]
cmp eax, dword [ebp - 8]
je 0x500801
push eax
call fcn.004ed1f3
cmp eax, ebx
pop ecx
je 0x500801
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x500801
mov eax, dword [0x553fb0]
cmp eax, dword [ebp - 8]
je 0x500801
push eax
call fcn.004ed1f3
cmp eax, ebx
pop ecx
je 0x500801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x553fa8]
call fcn.004ed1f3
cmp eax, ebx
pop ecx
je 0x500821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x500823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x498f88
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4bc3f5
call fcn.004bb310
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x24], ebx
mov eax, ecx
mov dword [ebp - 0x2c], eax
xor esi, esi
mov edi, esi
mov dword [ebp - 0x14], esi
add eax, eax
cmp edi, eax
jae 0x499096
mov dword [ebp - 0x20], 0x7946
cmp dword [ebp - 0x20], 0x7ccf
jle 0x499024
push esi
push esi
push esi
push esi
call dword [0xaa3188]
mov ebx, esi
mov eax, esi
mov dword [ebp - 0x1c], esi
lea edi, [eax + ebx]
mov dword [ebp - 0x18], 0x52de
mov dword [ebp - 0x28], esi
mov eax, edi
xor eax, esi
cdq
push edx
push eax
mov ecx, 0xa9fdf8
call fcn.00419f57
inc esi
cmp esi, 0x6b3f
jl 0x498fe4
dec edi
dec dword [ebp - 0x18]
push 0
pop esi
jne 0x498fe1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x7b52
jl 0x498fd7
inc ebx
cmp ebx, 0xafc
jl 0x498fd2
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov eax, edi
xor edx, edx
push 0x28
pop ecx
div ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4]
mov ecx, dword [ebx + edi*4]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
add ecx, edx
mov dword [ebx + edi*4], ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], 0x7931
jge 0x49905e
mov edx, 0xa8e9d0
mov ecx, 0xa9fdf8
call fcn.0041c484
or dword [ebp - 4], 0xffffffff
jmp 0x49908a
inc edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
jmp 0x498fac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013b3
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], 0x403218
cmp dword [edi], ebx
je 0x401444
push str._mozilla.org_observer_service_1
mov edx, 0x403514
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.00401c03
mov eax, dword [ebp - 4]
test eax, eax
je 0x401424
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.00401cb2
mov eax, dword [ebp - 4]
test eax, eax
je 0x401444
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40147b
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 0x40147b
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.004018a5
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.00401a48
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401497
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4014a4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4014b0
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 0x4014c0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40288e
pop dword [ebp - 0x28]
mov eax, 0x209a4bb6
add eax, 0xdfa5dcd8
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa1f94043
add dword [ebp - 0x38], 0xac590508
mov dword [ebp - 0x34], 0x89097985
add dword [ebp - 0x34], 0xa929d2c0
mov dword [ebp - 0x30], 0xe54e4db8
add dword [ebp - 0x30], 0x66fdf676
mov dword [ebp - 0x2c], 0xfcd800dc
sub dword [ebp - 0x2c], 0xfcd800dc
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8788c4ca
sub eax, 0x8748443e
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xbeeb724
add dword [ebp - 0x38], 0x6883b232
mov dword [ebp - 0x34], 0x60ef8d98
add dword [ebp - 0x34], 0xe07cd3dd
mov dword [ebp - 0x30], 0xcc789afa
sub dword [ebp - 0x30], 0x69092e8e
mov dword [ebp - 0x2c], 0xaecb2942
add dword [ebp - 0x2c], 0x5134d6be
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x13b66a8b
add eax, 0xec8a1649
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x385f2
push 0
call eax
mov ecx, 0x9ee27acb
sub ecx, 0x9ee22bb1
mov edx, eax
mov esi, 0x6b76b13f
sub esi, 0x6b35a13f
add esi, dword [ebp - 0x28]
mov ebx, 0xb49a78d7
add ebx, 0xab9995f
sub dword [ebp - 8], edx
mov edi, dword [esi]
sub edi, ebx
xor dword [ebp - 0x20], 0xd4558dda
mov dword [edx], edi
add dword [ebp - 0x24], edi
add edx, 0x7520526d
sub edx, 0x75205269
add esi, 4
loop 0x4029b0
add eax, 0x1a078ebc
add eax, 0xe5f9a07f
mov ebx, eax
add eax, 0x11b7a48f
add eax, 0xee485b76
mov ecx, 0xdff35309
add ecx, 0x204cacf7
add ecx, dword [ebp - 0x28]
call 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 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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x405301
pop dword [ebp - 0x20]
mov eax, 0x405301
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xcbabe9f8
sub dword [ebp - 0x30], 0x7d59a4ad
mov dword [ebp - 0x2c], 0x2b1b3526
add dword [ebp - 0x2c], 0x718171f
mov dword [ebp - 0x28], 0x5b77213f
add dword [ebp - 0x28], 0xf0d522ef
mov dword [ebp - 0x24], 0xb8d5a868
add dword [ebp - 0x24], 0x472a5798
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], 0x159fe87d
sub dword [ebp - 0x30], 0xa12d7f27
mov dword [ebp - 0x2c], 0x1b3e4262
sub dword [ebp - 0x2c], 0xd9d1e0ed
mov dword [ebp - 0x28], 0x1bd35c88
sub dword [ebp - 0x28], 0xb863f01c
mov dword [ebp - 0x24], 0x482f9279
sub dword [ebp - 0x24], 0x482f9279
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x99b862bd
add eax, 0x66886d8f
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x393da
push 0
call eax
mov ecx, 0xfeab51a5
add ecx, 0x154f52a
mov edi, eax
mov ebx, 0x5c0453e
add ebx, 0xfa816ac2
add ebx, dword [ebp - 0x20]
mov esi, 0xcdb79033
xor dword [ebp - 4], eax
mov edx, dword [ebx]
sub dword [ebp - 0x10], 0x9858cbd0
add edx, esi
add dword [ebp - 0x1c], 0x649edede
mov dword [edi], edx
mov dword [ebp - 8], 0xc66fd503
add edi, 0xfabb9763
add edi, 0x54468a1
add ebx, 0xde631669
add ebx, 0x219ce99b
loop 0x405413
add eax, 0x93f420f2
sub eax, 0x93f312e3
xor ebx, ebx
add ebx, eax
add eax, 0x7b80f125
sub eax, 0x7b80f120
mov ecx, 0x12e28409
sub ecx, 0x12a28409
add ecx, dword [ebp - 0x20]
call ebx
leave
ret