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

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e1
lea eax, [ebp + 0x70]
push 0x423260
push eax
call fcn.004035c0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e1
mov eax, dword [esp + 0x10]
add eax, 0x12
push eax
push 0x423448
call fcn.00402340
add esp, 8
xor eax, eax
pop ebp
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040bd15
add esp, 0x10
test eax, eax
jns 0x40131e
lea eax, [ebx + 0x12]
push eax
push 0x42347c
push 0x4234b8
call fcn.004021e0
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
pop ecx
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.0040e380
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x401350
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push 0x4234c0
push 0x4232fc
call fcn.004021e0
add esp, 0x10
jmp 0x4013cb
cmp byte [ebx + 0x10], 1
jne 0x401374
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013cb
push esi
call fcn.0040e365
add esp, 4
xor esi, esi
jmp 0x4013cb
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x4013c7
test ebx, ebx
jb 0x401398
ja 0x401391
cmp esi, 0x2000
jbe 0x401398
mov edi, 0x2000
jmp 0x40139a
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jb 0x4013ea
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x401391
jb 0x4013c7
test esi, esi
jne 0x401383
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
je 0x4013e2
push eax
call fcn.0040b65c
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push 0x4233d0
push 0x423404
call fcn.004021e0
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call fcn.0040e365
add esp, 4
xor esi, esi
jmp 0x4013cb
Function at 0x401420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00405a40
add esp, 4
cmp eax, 0xffffffff
jne 0x40143d
or eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
mov esi, dword [esp + 0x20]
lea eax, [ebp + 0x3070]
push edi
lea ebx, [esi + 0x12]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00405d10
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x401483
push ebx
push 0x423504
push 0x423538
call fcn.004021e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
mov edx, dword [ebp]
test edx, edx
jne 0x4014ba
lea eax, [ebp + 0x70]
push 0x423260
push eax
call fcn.004035c0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4014ba
push ebx
push 0x423448
call fcn.00402340
add esp, 8
or edi, 0xffffffff
jmp 0x4015e0
mov ecx, dword [esi + 4]
xor eax, eax
add ecx, dword [ebp + 8]
push 0
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040bd15
add esp, 0x10
test eax, eax
jns 0x4014f1
push ebx
push 0x42347c
push 0x4234b8
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015e0
cmp byte [esi + 0x10], 1
jne 0x40150b
push 0
push edi
push esi
push ebp
call fcn.00401040
add esp, 0x10
mov edi, eax
jmp 0x4015e0
push 0x2000
xor edi, edi
call fcn.0040e380
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40153d
push ebx
push 0x423394
push 0x4232fc
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
jmp 0x4015e0
mov esi, dword [esi + 0xc]
xor ebx, ebx
test esi, esi
je 0x4015d7
nop word [eax + eax]
test ebx, ebx
jb 0x401565
ja 0x40155e
cmp esi, 0x2000
jbe 0x401565
mov edi, 0x2000
jmp 0x401567
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jb 0x4015ba
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040bf4f
add esp, 0x10
cmp eax, 1
jb 0x4015aa
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
test ebx, ebx
ja 0x40155e
jb 0x4015a6
test esi, esi
jne 0x401550
xor edi, edi
jmp 0x4015d3
push dword [esp + 0x14]
push 0x42340c
push 0x423440
jmp 0x4015c8
push dword [esp + 0x14]
push 0x4233d0
push 0x423404
call fcn.004021e0
add esp, 0xc
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e365
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x4015f7
push eax
call fcn.0040b65c
add esp, 4
mov dword [ebp], 0
push dword [esp + 0x18]
call fcn.0040b65c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x401740
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, dword [esi]
test eax, eax
jne 0x401772
lea eax, [esi + 0x70]
push 0x423260
push eax
call fcn.004035c0
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4017ce
mov ecx, dword [0x4254fc]
mov edx, dword [0x4254f8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
push 8
shr edx, 0x18
push ecx
add dl, 0xc
push eax
mov byte [esp + 0x1b], dl
call fcn.004062c0
mov edi, eax
mov ebx, edx
mov ecx, edi
add esp, 0xc
or ecx, ebx
je 0x4017ce
push 0
push ebx
push edi
push dword [esi]
call fcn.0040bd15
add esp, 0x10
test eax, eax
jns 0x4017e3
push 0x423540
push 0x4234b8
call fcn.004021e0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004096fa
add esp, 0xc
ret
push dword [esi]
lea eax, [esi + 0x18]
push 1
push 0x58
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jae 0x401821
push 0x423564
push 0x423404
call fcn.004021e0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004096fa
add esp, 0xc
ret
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
bswap eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
bswap ecx
sub edi, ecx
mov dword [esi + 0x20], ecx
bswap eax
sbb ebx, 0
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
add edi, 0x58
bswap eax
adc ebx, 0
mov dword [esi + 0x2c], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x5074], 0
mov dword [0x430a64], eax
xor eax, eax
mov ecx, dword [esi + 0x24]
add ecx, dword [esi + 8]
push 0
adc eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call fcn.0040bd15
push dword [esi + 0x28]
call fcn.0040e380
add esp, 0x14
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4018b0
push 0x42357c
push 0x4232fc
call fcn.004021e0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004096fa
add esp, 0xc
ret
push dword [esi]
push 1
push dword [esi + 0x28]
push eax
call fcn.0040b91e
add esp, 0x10
cmp eax, 1
jae 0x4018cf
push 0x4235a0
jmp 0x4017ff
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x10]
push dword [esi]
mov dword [esi + 0x14], eax
call fcn.0040b70c
add esp, 4
test eax, eax
je 0x401908
push 0x4235bc
call fcn.00402340
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004096fa
add esp, 0xc
ret
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jae 0x401949
mov ecx, dword [eax + 4]
mov edx, dword [eax]
bswap ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
bswap ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
bswap edx
bswap ecx
mov dword [eax], edx
mov dword [eax + 0xc], ecx
add eax, edx
cmp eax, dword [esi + 0x10]
jb 0x40193c
cmp eax, dword [esi + 0x14]
jb 0x401910
jmp 0x401949
push 0x423240
call fcn.00402340
add esp, 4
push esi
call fcn.00401280
mov ecx, dword [esp + 0x18]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004096fa
add esp, 0xc
ret
Function at 0x405780
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00406990
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4057d8
push 0x425504
call fcn.00402340
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.0040e365
add esp, 4
test esi, esi
jne 0x40581f
push 0x425540
call fcn.00402340
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.004067d0
add esp, 4
test eax, eax
lea eax, [esp + 8]
je 0x40583f
push eax
call fcn.0040fd34
add esp, 4
jmp 0x40584f
push 0x1000
push eax
push 0
call fcn.0040f3be
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x40587b
push 0x425588
call fcn.00402340
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x2010]
push 0
push eax
call fcn.0040a8f0
push 0x5c
push esi
call fcn.0040acb7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4058e9
nop word [eax + eax]
mov ecx, edi
lea eax, [esp + 0x200c]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040fd93
add esp, 0xc
lea eax, [esp + 0x200c]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040acb7
mov edi, eax
add esp, 8
test edi, edi
jne 0x4058b0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
Function at 0x405a90
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x405b0f
push 0x4255cc
call fcn.00405c60
push ebp
mov ebx, eax
call fcn.00405780
mov edi, eax
add esp, 8
test edi, edi
je 0x405bcb
push edi
push 0x4255d0
call fcn.0041037e
push edi
mov esi, eax
call fcn.0040e365
add esp, 0xc
test esi, esi
je 0x405b13
push 0x4255d8
call fcn.00402340
add esp, 4
xor eax, eax
jmp 0x405c45
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x425610
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004021b0
add esp, 0x10
xor esi, esi
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0041148d
mov edi, eax
push edi
call fcn.00406830
add esp, 0xc
test eax, eax
je 0x405bcf
push edi
call fcn.0040e365
inc esi
add esp, 4
cmp esi, 5
jl 0x405b40
test ebp, ebp
je 0x405bcb
push 0
push 0x4255cc
push 0
call fcn.00406990
test ebx, ebx
je 0x405bb4
push 0
push ebx
push 0
mov edi, eax
call fcn.00406990
mov esi, eax
push esi
push edi
call fcn.0041037e
push edi
call fcn.0040e365
push esi
call fcn.0040e365
push ebx
call fcn.0040e365
add esp, 0x2c
xor eax, eax
jmp 0x405c45
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040e365
add esp, 4
xor eax, eax
jmp 0x405c45
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00406a30
push edi
call fcn.0040e365
add esp, 0x10
test ebp, ebp
je 0x405c40
push 0
push 0x4255cc
push 0
call fcn.00406990
test ebx, ebx
je 0x405c29
push 0
push ebx
push 0
mov edi, eax
call fcn.00406990
mov esi, eax
push esi
push edi
call fcn.0041037e
push edi
call fcn.0040e365
push esi
call fcn.0040e365
push ebx
call fcn.0040e365
add esp, 0x2c
jmp 0x405c40
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040e365
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004096fa
add esp, 0x2028
ret

Function at 0x405c60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00406990
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x405cf0
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00406a30
add esp, 0xc
test eax, eax
je 0x405cf0
cmp byte [eax], 0
je 0x405cf0
push eax
call fcn.00412f2d
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.004096fa
add esp, 0x4004
ret
Function at 0x4060c0
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00406990
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.0040e365
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x4060f0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00406990
push 1
push 0x16
call fcn.00410f12
push 1
push 2
call fcn.00410f12
push 1
push 0xf
call fcn.00410f12
push 1
push 0x15
call fcn.00410f12
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
push 1
mov dword [esp + 0x68], eax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
push 2
mov dword [esp + 0x78], eax
call fcn.0040e4d0
push eax
call fcn.00412f81
push eax
call fcn.00410aa8
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406247
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.004096fa
add esp, 0x2068
ret
push 0x4256b4
push 0x4256d4
call fcn.00402290
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.004096fa
add esp, 0x2068
ret
Function at 0x406830
Capabilities:
Create directory

Disassembly:
mov eax, 0x201c
call fcn.00409710
mov eax, dword [0x430004]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
mov ebx, dword [esp + 0x2024]
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
push 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4068db
lea eax, [esp + 8]
push eax
push esi
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4068a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4068db
push dword [esp + 8]
push 1
call fcn.0040e35a
mov esi, eax
add esp, 8
test esi, esi
je 0x4068db
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4068db
lea eax, [esp + 0x10]
push eax
push dword [esi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.0040e365
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 0xffffffff
je 0x4068f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, 0x425860
test esi, esi
cmovne eax, esi
push eax
push 0x425870
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.00406670
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xc
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x406971
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406971
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.004096fa
add esp, 0x201c
ret
mov ecx, dword [esp + 0x2020]
or eax, 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.004096fa
add esp, 0x201c
ret
Function at 0x40b7ad
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 0x40b7f1
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 0x40b7c0
jmp 0x40b7f1
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40b7e1
pop esi
pop ebp
ret

Function at 0x40c549
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 0x40c57e
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 0x40c5a8
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c5a8
test edi, edi
je 0x40c575
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c575
test edi, edi
je 0x40c5b0
mov eax, edi
jmp 0x40c577
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c577
mov esi, 0xc3
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.0040f2b2
add esp, 0xc
int3
Function at 0x40f2e6
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.TestWeakPtr.exe_gMozillaPoisonSize], eax
call fcn.0040c549
pop ecx
mov ecx, dword [sym.TestWeakPtr.exe_gMozillaPoisonSize]
mov dword [sym.TestWeakPtr.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40f31e
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestWeakPtr.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x55781465
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x7dfa3fc6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40214a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44614c]
jne 0x402154
repz ret
jmp fcn.00402d5d

Function at 0x40fc8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44614c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b1b
and dword [ebp - 0x14], 0
cmp dword [0x448fe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fd3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fde5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fde5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448fe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x448fe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448fec], eax
call edi
push eax
call esi
mov dword [0x448ff4], eax
test eax, eax
je 0x40fd3d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448ff0], eax
mov eax, dword [0x448ff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fd96
cmp dword [0x448ff4], ecx
je 0x40fd96
push eax
call esi
push dword [0x448ff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fd96
test ebx, ebx
je 0x40fd96
call edi
test eax, eax
je 0x40fd8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fd8d
test byte [ebp - 8], 1
jne 0x40fd96
or dword [ebp + 0x10], 0x200000
jmp 0x40fdc9
mov eax, dword [0x448fe8]
cmp eax, dword [ebp - 0x18]
je 0x40fdc9
push eax
call esi
test eax, eax
je 0x40fdc9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fdc9
mov eax, dword [0x448fec]
cmp eax, dword [ebp - 0x18]
je 0x40fdc9
push eax
call esi
test eax, eax
je 0x40fdc9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448fe4]
call esi
test eax, eax
je 0x40fde5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fde7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040214a
leave
ret
Function at 0x437410
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x44614c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x44d1fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x44ce64], edi
cmp eax, 0x3dc
jne 0x43745a
push 0
push 0
push 0
call esi
mov eax, dword [0x44d1fc]
dec ebx
jne 0x437440
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x437470
cmp eax, 0x997
jne 0x4374b7
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x44d1fc]
cmp esi, 0x846017
jne 0x4374ce
mov eax, dword [0x447d60]
add eax, 0xa231
mov dword [0x44d1fc], eax
cmp eax, 0x141
jne 0x4374e9
mov dword [0x449508], 0xec58acac
mov dword [0x44950c], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x437470
call fcn.00436f70
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040214a
add esp, 0x41c
ret 0x10