joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba82306
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x4ba82360
push eax
push 0x4ba80e6a
call fcn.4ba8239e
push 7
push 0x4bad20bc
push dword [eax + 0x30]
call fcn.4ba826f7
cmp eax, 0
jne 0x4ba8233a
inc eax
jmp 0x4ba82362
push 0x4ba80e82
call fcn.4ba8239e
push 7
push 0x4bad20bc
push dword [eax + 0x30]
call fcn.4ba826f7
cmp eax, 0
jne 0x4ba8235b
inc eax
jmp 0x4ba82362
pop eax
mov eax, dword [eax]
jmp 0x4ba82314
xor eax, eax
ret

Function at 0x4ba82378
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x4ba8238c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x4ba8239e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x4bad20bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xc1
stosw word es:[edi], ax
cmp ax, 0
jne 0x4ba823ac
pop edi
pop esi
leave
ret 4

Function at 0x4ba823c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x4bad20bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xc1
stosb byte es:[edi], al
cmp al, 0
jne 0x4ba823ce
pop edi
pop esi
leave
ret 4

Function at 0x4ba82602
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x4ba82653
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x4ba82653
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x4ba8265a
add edx, 4
loop 0x4ba8261a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x4ba82661
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x4ba826ad
cmp dx, 0x41
jb 0x4ba82692
cmp dx, 0x5a
jbe 0x4ba82698
cmp dx, 0x61
jb 0x4ba826a4
cmp dx, 0x7a
ja 0x4ba826a4
xor dx, 0x20
jmp 0x4ba826a6
jmp 0x4ba826c0
cmp dx, word [edi]
je 0x4ba826ad
jmp 0x4ba826c0
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x4ba8267e
mov eax, dword [eax + 0x18]
jmp 0x4ba826c8
mov eax, dword [eax]
cmp ebp, eax
jne 0x4ba82673
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4bad015f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
call sub.KERNEL32.DLL_GetTickCount
mov esi, 0x1f4
mov dword [0x4bad2200], eax
push esi
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4bad2204], eax
sub eax, dword [0x4bad2200]
xor ecx, ecx
cmp eax, esi
pop esi
setge cl
dec ecx
mov eax, ecx
ret
Function at 0x40894b
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov ebx, ecx
mov ecx, 0x996f91e6
call fcn.00408979
sub ecx, ecx
mov ebx, ebx
xor dword [eax], esi
dec ecx
or ebx, ecx
inc eax
sub ebx, 0x62cc08d5
add ebx, 0x1878e20
cmp eax, edi
jne fcn.0040894b
ret

Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
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 al, bl
loop 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194
Function at 0x4010d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, str._ccav_
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401224
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401108
push ebx
call fcn.0040fae3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x41bef1]
test ebx, ebx
je 0x40111f
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [0x41bef1], eax
push 0x41b216
push dword [0x41bef1]
call fcn.00401037
add esp, 8
cmp eax, 0
jne 0x401165
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401448
call fcn.00403124
call main
call fcn.004033f7
call fcn.0040d441
mov eax, str._35df36d6f88d0d94_
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401194
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40119d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4011ad
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4023a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004109b0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4023ea
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402415
push 6
call fcn.0040fae9
add esp, 4
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402434
mov eax, 0x41b216
push eax
push 2
mov ebx, 0x138
call fcn.00410bc0
add esp, 0x1c
mov dword [ebp - 8], eax
push 0x41b2a5
push dword [ebp - 8]
call fcn.00401037
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402478
push ebx
call fcn.0040fae3
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4024b2
push 0x41b2a5
push dword [ebp - 4]
mov ecx, 2
call fcn.004013b5
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4024ae
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024ce
push eax
mov ebx, eax
call fcn.004011b9
inc eax
push eax
call fcn.0040fadd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4024d3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4024e4
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x403124
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, 0x41b316
test eax, eax
je 0x403157
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040fadd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403168
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push VariantClear
push 0
push 0x41b2a0
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403197
mov eax, 0x41b265
push eax
push 3
mov ebx, 0x10
mov eax, 0x414a00
call fcn.0040fdf0
add esp, 0x28
mov dword [ebp - 0xc], eax
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4031c5
mov eax, 0x41b265
push eax
push 1
mov ebx, 0x168
call fcn.00410150
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4031eb
push ebx
call fcn.0040fae3
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4031ff
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40322f
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403265
mov dword [ebp - 0xc], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403296
push 6
call fcn.0040fae9
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4032a6
push ebx
call fcn.0040fae3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4032b6
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4032ba
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
jne 0x403347
mov dword [ebp - 0xc], esp
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403303
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403315
jmp 0x403347
push 0
mov ebx, 0x350
call fcn.00410d00
add esp, 4
push 0x80000301
push 0
push 1
push 1
mov ebx, 0x67c
call fcn.00410d70
add esp, 0x10
jmp 0x4032d1
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.004109b0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40531c
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40534e
push 6
call fcn.0040fae9
add esp, 4
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.004011b1
push VariantClear
push 0
push 0x41b216
push VariantClear
push 0
push 0x41b294
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40538f
mov eax, 0x41b216
push eax
push 6
mov ebx, 0x180
call fcn.0040fe90
add esp, 0x4c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4053b9
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x41b216
push dword [ebp - 8]
call fcn.00401037
add esp, 8
cmp eax, 0
jne 0x4053f0
mov eax, 0x41b3df
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4053ec
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40540c
push eax
mov ebx, eax
call fcn.004011b9
inc eax
push eax
call fcn.0040fadd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405411
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405422
push ebx
call fcn.0040fae3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405432
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40a505
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2000
push 1
mov ebx, 0x1bc
call fcn.00411470
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a551
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a568
mov eax, 0x41b265
push eax
push 1
mov ebx, 0x194
call fcn.00411680
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a593
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a5b3
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40a67b
lea eax, [ebp - 4]
push eax
call fcn.0040a775
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push 1
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
push 1
push dword [ebp + 8]
push dword [0x41bf11]
call fcn.0040a4cc
jmp 0x40a680
jmp 0x40a685
jmp 0x40a51c
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40a6a7
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
push dword [ebp + 8]
push dword [0x41bf15]
call fcn.0040a4cc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a76f
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40d375
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push htons
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40d393
mov eax, 0x41b265
push eax
push 1
mov ebx, 0x194
call fcn.00411680
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x40d3c0
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40d3e0
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setg al
jmp 0x40d3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x410420
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x410489
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0040fc70
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x410580
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x410612
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x410604
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4105fc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4105c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4176e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4176f2
pop dword [ebp - 0x34]
mov eax, 0x4176f2
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3e2be
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4a05
mov ebx, eax
mov edx, 0xc7af3506
add edx, 0x38944afa
add edx, dword [ebp - 0x34]
mov edi, 0x9387ed98
sub edi, 0x63e4f7f0
add dword [ebp - 4], eax
mov esi, dword [edx]
sub dword [ebp - 0x30], 0xf9578687
add esi, edi
add dword [ebp - 0x2c], 0xeca15a69
mov dword [ebx], esi
xor dword [ebp - 0xc], 0x8322929c
add ebx, 0x35c0155a
sub ebx, 0x35c01556
add edx, 0x7d77a1df
add edx, 0x82885e25
loop 0x417741
add eax, 0x11ae7
xor ebx, ebx
add ebx, eax
add eax, 0x595782aa
add eax, 0xa6a87d5b
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4012ef
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], 0x4031b0
cmp dword [edi], ebx
je 0x401394
push str._mozilla.org_observer_service_1
mov edx, 0x4033f0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.0040119d
mov eax, dword [ebp - 4]
test eax, eax
je 0x401374
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_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
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.00401135
mov eax, dword [ebp - 4]
test eax, eax
je 0x401394
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4013cb
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 0x4013cb
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.004018c0
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.00401950
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4013e7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4013f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x401400
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 0x401410
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x404450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x6da014]
mov esi, ecx
test eax, eax
je 0x40454e
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x404484
mov ebx, eax
mov eax, dword [eax]
add ebx, 4
test eax, eax
cmove ebx, eax
jne 0x404589
mov eax, dword [0x6da014]
test eax, eax
je 0x40456d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x404587
mov edi, eax
test eax, eax
jne 0x404509
mov eax, dword [0x6da108]
test eax, eax
jne 0x4044c4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4045a1
mov dword [0x6da108], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4045a1
mov dword [eax], 0
mov edi, eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0x6da014
mov eax, dword [0x6da014]
test eax, eax
je 0x404592
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x404523
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x404527
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x404527
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x404589
test ecx, ecx
je 0x404589
lock dec dword [ecx]
jne 0x404589
call fcn.00403520
jmp 0x404589
mov ecx, 0x6da014
call fcn.00406b80
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x404472
jmp 0x404484
mov ecx, 0x6da014
call fcn.00406b80
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4044a2
xor ebx, ebx
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
ret
mov ecx, 0x6da014
call fcn.00406b80
jmp 0x404501
mov ecx, 0x10
mov edx, 4
call fcn.00406610
ud2