joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x40db29
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dae0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40db29
add ebx, ebx
mov eax, ebx
call fcn.0040ef30
mov edi, esp
test edi, edi
je 0x40db29
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x40db2b
xor esi, esi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40db86
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db37
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x40db86
add eax, eax
call fcn.0040ef30
mov ebx, esp
test ebx, ebx
je 0x40db86
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x40db88
xor edi, edi
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40dbcf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e432
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ef5c
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x3f2257f5
call 0x40ef3a
je 0x40ef42
lea ebx, [0x5a61c37b]
xchg eax, edi
add al, 0xe0
cmp ebp, edx
pop ebp
movzx eax, bx
jmp 0x40ef50
cmp ebx, ecx
sub esi, 0xc650
adc dh, dl
add esi, 0x8b5
mov ch, 8
add byte [eax], al
movd mm1, ebp
xor eax, 0xd0142f1d
imul ecx, ebp, 0xaac092e9
mov ebp, eax
movd edx, mm1
test ebx, 0x60dfaaf6
dec ebx
inc ebp
mov ebx, 0x1173b5
mov esi, ebp
sub ebx, 0x1104c
jmp 0x40ef8d
lea edi, [ebx]
movzx ebp, al
sub edi, 0x25c
xchg bl, al
push edi
xchg al, bh
pop ecx
imul ebx, ebp, 0xf971c30d
sub ecx, 0xd9a37
not ah
add edx, ecx
sub edx, 0xf55
mov ebp, 0xac3d7d07
cmp edx, 0x7e4f
je 0x40efc4
mov ah, 0x18
mov ebp, 0x2298be8b
mov bh, 0x41
dec edi
push edx
and ch, dh
bswap ecx
dec ebx
xor esi, 0xe26f
jmp 0x40efe6
xchg ch, bh
cmp bh, dl
mov ebp, 0x354b66c9
js 0x40eff4
imul ecx, ebp
imul esi, ebp, 0x2c16a0cb
lea edi, [0x30]
test ecx, ebp
imul edi, edi, 0x11
mov ch, 0x4b
xchg edi, ebx
mov cl, 0x87
sub ebx, 0x21b
mov ebp, ebp
mov eax, ebx
or cl, dl
xor eax, 0x115
or eax, 0xf1769
movsx ebp, bl
xor eax, 0xf1f2c
inc cl
cmp ebx, 0x407e2239
imul edi, ecx
lea esi, [0xaa9]
test dl, bh
xor esi, 0x5db
imul ebp, edi
sub eax, esi
imul edi, edx
add eax, 0xf71
cmp eax, 0x3c
jae 0x40f02b
lea ecx, [0xc2e70fe0]
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040a7e3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040a7e3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040a7e3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040a7e3
mov dword [0x41203c], eax
call fcn.0040a7e3
test eax, eax
jge 0x402550
push 8
call fcn.0040a7e3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040a7e3
pop ecx
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040a7e3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040a7e3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040a7e3
jmp 0x402495

Function at 0x40a7e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40a7f2
pop dword [ebp - 0xc]
mov eax, 0x40a7f2
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3a047
push 0
mov eax, 0xe9a492e0
add eax, 0x169c4df8
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4b3c
xor edx, edx
add edx, eax
mov edi, 0xa808f547
add edi, 0x5838467d
add edi, dword [ebp - 0xc]
mov esi, 0x5c57ea52
sub esi, 0x8c573703
sub dword [ebp - 8], edx
mov ebx, dword [edi]
add dword [ebp - 4], 0x27f359fa
add ebx, esi
xor dword [ebp - 8], ebx
mov dword [edx], ebx
xor dword [ebp - 8], 0x251b2825
add edx, 4
add edi, 0xcee61f18
add edi, 0x3119e0ec
loop 0x40a848
add eax, 0xd0db22e1
add eax, 0x2f25fce2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb3853b5f
add ecx, 0x4cbac4a1
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40ebcc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40ebdb
pop dword [ebp - 0x2c]
mov eax, 0xb56738d5
sub eax, 0xb5264cfa
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x34f96
push 0
mov eax, 0x98b62e74
sub eax, 0x98752d5c
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x642e6ef1
sub ecx, 0x642e2d85
mov edi, eax
mov ebx, 0x3c8c3703
add ebx, 0xc3b7fefd
add ebx, dword [ebp - 0x2c]
mov esi, 0x43d7dc0f
add esi, 0xd5710cf2
mov edx, dword [ebx]
sub dword [ebp - 8], ebx
add edx, esi
add dword [ebp - 0x24], 0xd9e4ead1
mov dword [edi], edx
xor dword [ebp - 0x1c], 0x4861a3ac
add edi, 0xbe3d35ec
sub edi, 0xbe3d35e8
add ebx, 4
loop 0x40ec3a
add eax, 0xf883
xor ebx, ebx
add ebx, eax
add eax, 0x179e74d
sub eax, 0x179e748
mov ecx, 0x22b492af
sub ecx, 0x227492af
add ecx, dword [ebp - 0x2c]
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 0x401f6e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
cmp dword [0x2d19788], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401fa4
push 0
lea eax, [ebp - 0xb18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x4245b0]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4245b4]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x30], eax
call fcn.00401f64
mov ecx, dword [0x4245b8]
mov eax, dword [0x4245bc]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d19788], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x2d18d84]
cmove eax, edx
xor edx, edx
cmp dword [0x2d19788], 0x3eb
mov dword [0x2d18d84], eax
mov eax, dword [0x2d18778]
cmove eax, edx
add ecx, ebx
mov dword [0x2d18778], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x2c]
mov ecx, dword [0x2d19788]
xor eax, edx
mov dword [0x2d18d80], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x4020c2
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x2d19788]
sub edi, eax
cmp ecx, 0xc
jne 0x4020d8
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.00401f6b
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x402124
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401fe2
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416538
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
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.00408ae5
mov dword [ebp - 0x14], eax
cmp dword [0x43fe9c], esi
jne 0x41662b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4165b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41670b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41670b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41670b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43fe9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43fea0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43fea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43feac], eax
test eax, eax
je 0x416628
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fea8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416650
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416643
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416665
push 4
pop eax
jmp 0x41670d
cmp dword [ebp - 0x14], esi
je 0x416665
push dword [0x43fe9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41664a
mov eax, dword [0x43fea8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4166c3
cmp dword [0x43feac], edi
je 0x4166c3
push eax
call ebx
push dword [0x43feac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4166c3
test eax, eax
je 0x4166c3
call ecx
test eax, eax
je 0x4166b8
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 0x4166b8
test byte [ebp - 8], 1
jne 0x4166c3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4166f3
mov eax, dword [0x43fea0]
cmp eax, edi
je 0x4166f0
push eax
call ebx
test eax, eax
je 0x4166f0
call eax
mov esi, eax
test esi, esi
je 0x4166f0
mov eax, dword [0x43fea4]
cmp eax, edi
je 0x4166f0
push eax
call ebx
test eax, eax
je 0x4166f0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43fe9c]
call ebx
test eax, eax
je 0x41670b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41670d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406caa
mov esp, ebp
pop ebp
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x817030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3a
and dword [ebp - 4], 0
cmp dword [0x819b68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x819b68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x819b6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x819b70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x819b78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x819b74], eax
mov eax, dword [0x819b74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x819b78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x819b78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x819b6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x819b70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x819b68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x817030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2ff755c]
push ebx
mov ebx, dword [0x2ff7280]
push esi
mov esi, dword [0x817f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2ff755c]
mov dword [0x819d0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2ff755c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x401823
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 2
jge 0x401842
push str.Usage:_TestGetURL__url__n
call fcn.004018b4
pop ecx
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
xor edi, edi
lea ecx, [ebp - 0x2c]
push edi
push str.XMLHttpRequest
call fcn.00401045
cmp dword [ebp - 0x20], edi
jne 0x401865
lea ecx, [ebp - 0x2c]
call fcn.004010b3
xor eax, eax
inc eax
jmp 0x4018af
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.xul.dll_NS_CStringContainerInit]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.xul.dll_NS_CStringSetData]
lea eax, [ebp - 0xc]
push eax
call fcn.00401599
shr eax, 0x1f
test al, 1
push 1
pop eax
cmovne edi, eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.xul.dll_NS_CStringContainerFinish]
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.004010b3
mov eax, edi
pop esi
pop edi
mov esp, ebp
pop ebp
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 0x40a17a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x4016ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40a1cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401718
push edi
call esi
push 0x40170c
push edi
mov dword [0x4172a4], eax
call esi
push 0x401700
push edi
mov dword [0x4172a8], eax
call esi
push 0x4016f8
push edi
mov dword [0x4172ac], eax
call esi
mov dword [0x4172b0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x4172a4], ebx
je 0x40a1f2
cmp dword [0x4172a8], ebx
je 0x40a1f2
cmp dword [0x4172ac], ebx
je 0x40a1f2
cmp dword [0x4172b0], ebx
jne 0x40a216
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4172a8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4172a4], 0x409dcb
mov dword [0x4172ac], esi
mov dword [0x4172b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41616c], eax
cmp eax, 0xffffffff
je 0x40a289
push dword [0x4172a8]
push eax
call esi
test eax, eax
je 0x40a289
call fcn.00409c86
push dword [0x4172a4]
call fcn.00409ccd
push dword [0x4172a8]
mov dword [0x4172a4], eax
call fcn.00409ccd
push dword [0x4172ac]
mov dword [0x4172a8], eax
call fcn.00409ccd
push dword [0x4172b0]
mov dword [0x4172ac], eax
call fcn.00409ccd
add esp, 0x10
mov dword [0x4172b0], eax
call fcn.0040d8bc
test eax, eax
jne 0x40a28f
call fcn.00409e08
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.00409fb7
push dword [0x4172a4]
call fcn.00409d53
pop ecx
call eax
mov dword [0x416170], eax
cmp eax, 0xffffffff
je 0x40a284
push 0x214
push 1
call fcn.0040ef9d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40a284
push esi
push dword [0x416170]
push dword [0x4172ac]
call fcn.00409d53
pop ecx
call eax
test eax, eax
jne 0x40a2e2
push esi
call fcn.00408ab7
pop ecx
jmp 0x40a284
push ebx
push esi
call fcn.00409e4a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40a28b

Function at 0x40c811
Capabilities:
Contain obfuscated stackstrings

Disassembly:
enter 0xfffffffffffffff8, 0xffffffffffffffff
pushfd
mov byte [ebp - 0x737], 0x8f
mov byte [ebp - 0x736], 0x84
mov byte [ebp - 0x735], 0xbc
mov byte [ebp - 0x734], 0xfd
lea eax, [ebp - 0x744]
push eax
call fcn.0040af56
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040af0b
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
invalid
test dword [ecx + edi*8], edx
invalid
Function at 0x41148a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409d45
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x417bdc], ebx
jne 0x411563
push ebx
push ebx
push 0x402a28
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4114ce
xor eax, eax
jmp 0x411627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a1c
push edi
call esi
cmp eax, ebx
je 0x4114c7
push eax
call fcn.00409ccd
mov dword [esp], 0x402a0c
push edi
mov dword [0x417bdc], eax
call esi
push eax
call fcn.00409ccd
mov dword [esp], 0x4029f8
push edi
mov dword [0x417be0], eax
call esi
push eax
call fcn.00409ccd
mov dword [0x417be4], eax
lea eax, [ebp - 8]
push eax
call fcn.00409a70
pop ecx
pop ecx
test eax, eax
je 0x411531
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x411563
push 0x4029dc
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417bec], eax
cmp eax, ebx
je 0x411563
push 0x4029c4
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417be8], eax
mov eax, dword [0x417be8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4115dc
cmp dword [0x417bec], esi
je 0x4115dc
push eax
call fcn.00409d53
pop ecx
call eax
cmp eax, ebx
je 0x4115a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x417bec]
call fcn.00409d53
pop ecx
call eax
test eax, eax
je 0x4115a9
test byte [ebp - 0x18], 1
jne 0x4115dc
lea eax, [ebp - 0xc]
push eax
call fcn.00409ab1
pop ecx
test eax, eax
je 0x4115c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4115d3
or dword [ebp + 0x10], 0x200000
jmp 0x41160d
or dword [ebp + 0x10], 0x40000
jmp 0x41160d
mov eax, dword [0x417be0]
cmp eax, esi
je 0x41160d
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41160d
mov eax, dword [0x417be4]
cmp eax, esi
je 0x41160d
push dword [ebp - 4]
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x417bdc]
call fcn.00409d53
pop ecx
call eax
pop edi
pop esi
pop 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