joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c357c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x517808]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c35bf
cmp word [esi], dx
jne 0x4c35bf
or byte [edi + eax + 0x28], 4
jmp 0x4c35c4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4c3717
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4c36f7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c3606
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c363c
cmp eax, edx
jae 0x4c3648
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4c35de
jmp 0x4c3717
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c36f3
cmp dword [ebp - 0x14], 0
je 0x4c36f3
mov eax, dword [ebx*4 + 0x517808]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c36cb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c3694
mov word [esi], cx
jmp 0x4c36c7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x517808]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x517808]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x517808]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c3717
pop ebx
cmp word [ebp - 4], bx
jne 0x4c36dc
cmp esi, dword [ebp + 0xc]
jne 0x4c36dc
mov word [esi], bx
jmp 0x4c3714
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b9dc1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c3717
push 0xd
jmp 0x4c3710
mov ecx, dword [ebx*4 + 0x517808]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c370e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c3717
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c5e75
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c5df1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c5fed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c5fed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c5f9c
jg 0x4c5ece
test eax, eax
je 0x4c5f92
push 1
push 0x1000
call fcn.004b8e46
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c5ef4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4c5f89
push 0x8000
push ebx
call fcn.004b5804
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c5f20
jg 0x4c5f1b
cmp ecx, 0x1000
jb 0x4c5f20
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b997a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c5f65
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c5f1b
jl 0x4c5f4c
test ecx, ecx
jne 0x4c5f0d
push dword [ebp - 0xc]
push ebx
call fcn.004b5804
push esi
call fcn.004b77aa
add esp, 0xc
xor edi, edi
jmp 0x4c5ffe
cmp byte [edi + 0x24], 0
je 0x4c5f7c
cmp dword [edi + 0x20], 5
jne 0x4c5f7c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c5f87
mov edi, dword [edi + 0x18]
jmp 0x4c5f89
xor edi, edi
push esi
call fcn.004b77aa
pop ecx
jmp 0x4c5ffe
test ecx, ecx
jg 0x4c5f5e
jl 0x4c5f9c
test eax, eax
jae 0x4c5f5e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b9dc1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c5fbf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c5f5e
jmp 0x4c5ff6
push ebx
call fcn.004bf25f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c5f5e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4c5ffe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c5ffb
mov edi, dword [edi + 0x18]
jmp 0x4c5ffe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b9dc1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c7090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c70bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c70bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417c36
mov eax, dword [0x6357d0]
test eax, eax
je 0x417c2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x50
ret
push ebx
push edi
lea eax, [esp + 0xc]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x6357d0], eax
test eax, eax
pop ebx
je 0x417cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov ecx, dword [0x6357d0]
push str.DirectSoundEnumerateA
push ecx
mov dword [0x6357cc], eax
call esi
mov ecx, dword [0x6357cc]
mov dword [0x6357d4], eax
test ecx, ecx
je 0x417cc7
test eax, eax
je 0x417cc7
mov eax, 1
pop esi
add esp, 0x50
ret
mov dword [0x6357d0], 0
xor eax, eax
pop esi
add esp, 0x50
ret

Function at 0x481b87
Capabilities:
Encode data using xor

Disassembly:
test byte [esi - 0x26], dh
xor al, byte [esi]
push ecx
movsb byte es:[edi], byte [esi]
out 0x2b, eax
ret 0xec04
clc
push 0x60
jp 0x481c0b
add dh, byte [eax]
mov bh, 0xb5
push edi
test byte [ebx], al
add eax, 0xebedc640
add eax, 0xd577d9d5
loop 0x481b51
out dx, al
xchg esi, eax
invalid
test al, 0x2f
push 0xaaf164ed
Function at 0x498fd2
Capabilities:
Encode data using xor

Disassembly:
or al, 0x29
mov dword [ecx - 0x7f561ec5], 0x9823020b
cmp esp, ecx
test eax, 0x23020b80
cwde
or dword [esp + edi*8 + 0x58412873], edx
jae 0x498ffc
inc ecx
pop eax
daa
test eax, 0x8c889aab
xor al, 0x39
jecxz 0x498fc3
mov cl, 0xa7
cmpsd dword [esi], dword es:[edi]
test al, 0x42
mov ecx, 0xe8e399f9
sal dword [esi - 0x8a5362], cl
les ecx, [eax - 0x56395669]
shr byte [ebp - 0x40a78c9c], 0x98
cwde
les edx, [edx + ebx*4]
les ecx, [esi + 0x71]
test eax, 0xafcdd527
salc
push ebp
jns 0x498fc7
adc esp, dword [ebx]
arpl word [esi], dx
adc dword [edi], esp
pop eax
push ebx
add edx, dword [ebx]
add edi, esp
cmp edi, dword [eax]
and dl, byte [ebx + edx*4]
lahf
mov ecx, 0xa6cb6033
or al, 0x27
mov dword [ecx], ebp
in al, dx
les ebp, [edi]
fnstcw word [ecx]
add eax, 0xad689aa
jnp 0x499084
shl byte [ebp + 0x1a21941c], 1
adc bh, byte [eax]
dec edi
pop eax
scasd eax, dword es:[edi]
xor eax, 0xc4321edf
sub esi, edx
fsub dword [ebp - 0x7ee6084e]
sub edi, esp
aaa
sub dl, al
sar byte [ecx], 0x2c
pop ecx
adc dword [edi], esi
aam 0x3a
dec esp
sub dword [ebx - 0x37266499], 0x5a
sar dword [ebx], 1
mov al, byte [0xb4981927]
mov byte [ecx], 0x97
popal
cdq
inc ebx
invalid
enter 0x2d81, 4
cmp dword [ebp + 0x4efff1aa], esi
pop ebp
stosb byte es:[edi], al
dec ebp
push ecx
add al, 0x5f
and esi, ebx
je 0x499033
cdq
or al, cl
xor dword [edi - 0x27], ebp
jno 0x4990a3
mov eax, 0x89b401c2
fmul qword [eax + 0x76372159]
mov eax, dword [0xb3360289]
movsd dword es:[edi], dword [esi]
test eax, 0xfddfd057
add ecx, dword [ecx + 0x6006e82f]
in al, 0x36
fist word [ebx + 0x3913ca81]
enter 0x3fa4, 0x49
and eax, 0x48cfad3
leave
mov dh, 0x2f
inc ebx
mov esp, 0xf324a72
jp 0x499123
ret 0xb401
and eax, eax
sub eax, edi
cmpsd dword [esi], dword es:[edi]
int1
jnp 0x49911a
sahf
lea eax, [ebp + eax*4 - 0x42]
sbb al, 0x23
popal
and ecx, dword [eax]
invalid
Function at 0x629115
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323a8
cmp edx, dword [eax]
je 0x629137
add eax, 8
inc ecx
cmp eax, 0x632438
jl 0x629128
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323a8]
jne 0x629265
mov eax, dword [0x636d80]
cmp eax, 1
je 0x62923f
test eax, eax
jne 0x629168
cmp dword [0x6322d4], 1
je 0x62923f
cmp edx, 0xfc
je 0x629265
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62919f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629f90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6291e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629f90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ec24
push edi
call fcn.0062be60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629b10
lea eax, [ebp - 0xa0]
push 0x62ec04
push eax
call fcn.00629b10
push dword [esi + 0x6323ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629b10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062bdd4
add esp, 0x2c
pop edi
jmp 0x629265
lea eax, [ebp + 8]
lea esi, [esi + 0x6323ac]
push 0
push eax
push dword [esi]
call fcn.00629f90
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 0x4012c4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x401352
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e81a
pop ecx
push esi
mov edi, eax
push edi
push str.PATH
call ebx
lea ecx, [esi - 1]
cmp ecx, eax
jne 0x40134a
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call ebp
mov ebx, eax
test ebx, ebx
je 0x40134a
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e81a
pop ecx
push ebx
mov esi, eax
push esi
push edi
call ebp
test eax, eax
je 0x401343
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040f6aa
pop ecx
push edi
call fcn.0040f6aa
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541

Function at 0x4015aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x4015fe
push edi
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi], eax
test eax, eax
je 0x4015fe
mov ecx, dword [esp + 0x10]
push 0x20
pop eax
test ecx, ecx
jne 0x4015d3
mov ecx, eax
cdq
idiv ecx
push 0x40
push 0x3000
lea eax, [edx + ecx]
mov dword [esi + 8], eax
shl eax, 7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 4], eax
test eax, eax
jne 0x4015fe
mov dword [esi], edi
pop edi
pop esi
ret 8
Function at 0x401bf9
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
sub esp, 0x54
push ebp
push esi
push edi
push 1
mov edi, 0x436a20
mov ebp, 0x436c28
push edi
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x401c1d
xor al, al
jmp 0x401c89
push 1
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401c35
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x401c19
push ebx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00413300
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebx
test eax, eax
je 0x401c19
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x54
ret

Function at 0x4020a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x434750]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
lea eax, [ebp - 0x80]
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_paths_firefox.exe
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4020e8
xor al, al
jmp 0x402164
push ebx
lea eax, [ebp - 0x7c]
mov ebx, 0x208
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x80]
test eax, eax
je 0x402118
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402139
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
mov edx, 0x104
shr eax, 1
mov dword [ebp - 0x7c], eax
lea ecx, [eax + eax]
cmp word [ebp + ecx - 0x78], di
je 0x402148
cmp eax, edx
jb 0x40213d
xor al, al
jmp 0x402163
cmp ecx, ebx
jae 0x40217b
xor eax, eax
mov word [ebp + ecx - 0x78], ax
push edi
push edi
push edx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
setne al
pop ebx
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f349
lea esp, [ebp + 0x194]
pop ebp
ret
call fcn.0040f7ec
int3

Function at 0x407918
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x407962
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x407931
jmp 0x407962
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x407952
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x4079ee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.webapprt_stub.exe_gMozillaPoisonSize]
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 0x407a26
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x407a50
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x407a50
test edi, edi
je 0x407a1d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407a1d
test edi, edi
je 0x407a58
mov eax, edi
jmp 0x407a1f
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407a1f
int3

Function at 0x407a87
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]
mov dword [sym.webapprt_stub.exe_gMozillaPoisonSize], eax
call fcn.004079ee
mov ecx, dword [sym.webapprt_stub.exe_gMozillaPoisonSize]
mov dword [sym.webapprt_stub.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x407abd
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.webapprt_stub.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x420ef9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004134c8
mov dword [ebp - 0x14], eax
cmp dword [0x4369a8], esi
jne 0x420fec
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x420f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4210cc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4210cc
push 0x42f17c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4210cc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4369a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4369ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4369b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4369b8], eax
test eax, eax
je 0x420fe9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4369b4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421011
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421004
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x421026
push 4
pop eax
jmp 0x4210ce
cmp dword [ebp - 0x14], esi
je 0x421026
push dword [0x4369a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42100b
mov eax, dword [0x4369b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x421084
cmp dword [0x4369b8], edi
je 0x421084
push eax
call ebx
push dword [0x4369b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x421084
test eax, eax
je 0x421084
call ecx
test eax, eax
je 0x421079
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x421079
test byte [ebp - 8], 1
jne 0x421084
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4210b4
mov eax, dword [0x4369ac]
cmp eax, edi
je 0x4210b1
push eax
call ebx
test eax, eax
je 0x4210b1
call eax
mov esi, eax
test esi, esi
je 0x4210b1
mov eax, dword [0x4369b0]
cmp eax, edi
je 0x4210b1
push eax
call ebx
test eax, eax
je 0x4210b1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4369a8]
call ebx
test eax, eax
je 0x4210cc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4210ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f349
mov esp, ebp
pop ebp
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x59e2361
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x20d0704a
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219