joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b7a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10012385
call fcn.1001109f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000b97f
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1000e8d5
add esp, 0x10
test eax, eax
js 0x1000b979
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000b83d
push esi
call fcn.10006ae7
pop ecx
test al, al
je 0x1000b83d
mov eax, esi
call fcn.100110e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000b849
push esi
lea ecx, [ebp - 0x428]
call fcn.1000e8d5
push 3
push esi
push edi
push eax
call fcn.1000e8d5
mov esi, eax
test esi, esi
je 0x1000b979
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x1000b895
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x1000b895
call fcn.10002f77
mov esi, eax
jmp 0x1000b95e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000b8b8
call fcn.10002f77
jmp 0x1000b951
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000b8ae
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000b8e8
mov esi, 0x8007000e
jmp 0x1000b953
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000e8d5
jmp 0x1000b90e
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000b8e1
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.1000e8d5
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.1000e8d5
mov esi, eax
test edi, edi
je 0x1000b95e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000b999
lea ecx, [ebp - 0x418]
call fcn.1000af68
jmp 0x1000b999
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000b994
lea ecx, [ebp - 0x418]
call fcn.1000af68
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10001f09
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.10010ff1
ret 0x10
Function at 0x1000d27a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__wcsicmp]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x100144f0
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push str.file:__
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push dword [ebp + 0xc]
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push 0x38
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000d300
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000d2f9
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000d300
mov esi, edi
jmp 0x1000d300
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1000e8d5
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x1000e1bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000e1cb
pop dword [ebp - 0xc]
mov eax, 0x59e0bd3a
sub eax, 0x49dfdb6f
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x369dd
push 0
mov eax, 0xb93fc531
sub eax, 0xa93e84cd
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x1bc5c9f
sub ecx, 0x1bc1e2e
mov edi, eax
mov esi, 0x10018600
add esi, dword [ebp - 0xc]
mov ebx, 0x8ee12b9a
sub dword [ebp - 4], 0xf9ef8c11
mov edx, dword [esi]
xor dword [ebp - 4], 0x3d2ba062
sub edx, ebx
mov dword [ebp - 4], 0x7eea034d
mov dword [edi], edx
sub dword [ebp - 8], 0x6a2fa88d
add edi, 0x91b772a0
sub edi, 0x91b7729c
add esi, 4
loop 0x1000e21e
add eax, 0xf5f02aee
sub eax, 0xf5ef3e57
mov ebx, eax
add eax, 0xd9b521b3
add eax, 0x264ade52
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1000567b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001ae0c
call fcn.1001a6e0
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100056f8
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100056f8
call fcn.10003dca
mov esi, eax
jmp 0x100057fe
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000571b
call fcn.10003dca
jmp 0x100057f1
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10005711
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000574e
mov esi, 0x8007000e
jmp 0x100057f3
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1000582c
jb 0x10005769
cmp eax, 0xffffffff
ja 0x1000582c
cmp eax, 0x400
jbe 0x1000577e
push eax
lea ecx, [ebp - 0x418]
call fcn.1000af33
jmp 0x100057a0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x100057a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10005744
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10005711
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1000af33
mov esi, eax
test edi, edi
je 0x100057fe
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005817
lea ecx, [ebp - 0x418]
call fcn.10003d92
lea ecx, [ebp - 0x428]
call fcn.10004436
mov eax, esi
call fcn.1001a631
ret 0x10
push 0x80070216
call fcn.1000af33
int3
Function at 0x10005e6b
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1001aed0
call fcn.1001a63e
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x20
call fcn.1000af33
mov esi, eax
pop ecx
test esi, esi
je 0x10005eab
and dword [esi + 4], 0
lea ecx, [esi + 8]
mov edi, ecx
xor eax, eax
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [esi + 0x18], 0
mov edi, dword [ebp - 0x10]
jmp 0x10005ead
xor esi, esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x10005ec2
mov ebx, 0x8007000e
jmp 0x10005fa1
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov dword [esi], edi
test edi, edi
je 0x10005f1b
test ebx, ebx
je 0x10005f9c
cmp dword [ebp + 8], 0
jne 0x10005f9c
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call ebx
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x10005f15
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x10005f0f
push edi
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x10005fe5
jmp 0x10005f37
and dword [esi + 4], 0
xor eax, eax
test eax, eax
jne 0x10005f37
jmp 0x10005eb8
test ebx, ebx
jne 0x10005f9c
cmp dword [ebp + 8], ebx
je 0x10005f9c
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantChangeType]
mov ebx, eax
test ebx, ebx
js 0x10005fa1
lea ecx, [esi + 0x18]
call fcn.1000af33
mov ebx, eax
test ebx, ebx
js 0x10005fa1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fef
mov eax, dword [ecx]
push ecx
call dword [eax + 0xbc]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10006064
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x10005f8b
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10005f8f
xor esi, esi
xor ebx, ebx
test edi, edi
je 0x10005fa1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10005fa1
mov ebx, 0x80070057
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005fdb
mov dword [ebp - 4], 8
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fc1
and dword [esi + 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call fcn.1000af33
pop ecx
mov eax, ebx
call fcn.1001a60f
ret 4
push 0x8007000e
call fcn.1000af33
push 0
push 0x152139a
call fcn.1000af33
int3
Function at 0x1000af33
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000af42
pop dword [ebp - 0x20]
mov eax, 0xa568a39e
add eax, 0x6a980ba4
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x298b50cb
sub dword [ebp - 0x30], 0xdb390b80
mov dword [ebp - 0x2c], 0x24b890b5
add dword [ebp - 0x2c], 0xd7abb90
mov dword [ebp - 0x28], 0xa42d5f94
add dword [ebp - 0x28], 0xa81ee49a
mov dword [ebp - 0x24], 0x38202580
sub dword [ebp - 0x24], 0x38202580
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2f6aec4d
sub dword [ebp - 0x30], 0xbaf882f7
mov dword [ebp - 0x2c], 0xacb32233
sub dword [ebp - 0x2c], 0x6b46c0be
mov dword [ebp - 0x28], 0x3e384405
add dword [ebp - 0x28], 0x25372867
mov dword [ebp - 0x24], 0xbb61f862
add dword [ebp - 0x24], 0x449e079e
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x74cccf40
sub eax, 0x64cb0ef8
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3ae4f
push 0
call eax
mov ecx, 0x44ff
mov ebx, eax
mov edx, 0xe30a50ed
sub edx, 0xd307b6ed
add edx, dword [ebp - 0x20]
mov edi, 0x10250b17
xor dword [ebp - 8], edx
mov esi, dword [edx]
xor esi, edi
xor dword [ebp - 0x10], 0x4a3df607
mov dword [ebx], esi
mov dword [ebp - 0x1c], 0xa2189bdb
add ebx, 0x31c7b6a4
add ebx, 0xce384960
add edx, 4
loop 0x1000b053
add eax, 0x5909cc9e
add eax, 0xa6f73a31
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x86c9e460
add ecx, 0x89361ba0
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x471b2b
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x74], 4
mov esi, dword [edi + 0x54]
mov dword [ebp - 4], esi
jne 0x471b4e
or esi, str._WP4_t
mov dword [ebp - 4], esi
movzx eax, word [ebx + 0x78]
push 0
push 0
push dword [ebx + 0x70]
push dword [ebx + 0x30]
push dword [ebx + 0x20]
push eax
push dword [ebx + 0x10]
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
test eax, eax
jne 0x471b86
push eax
push 0xdeadbeef
push 0xb
mov ecx, edi
call fcn.00472599
jmp 0x471c75
xor ecx, ecx
push ecx
push esi
push ecx
push ecx
push ecx
push dword [ebx + 0x60]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x471bab
push eax
push 0xdeadbeef
push 0xc
jmp 0x471c5f
cmp byte [ebp + 0xc], 0
je 0x471bba
push ebx
push esi
mov ecx, edi
call fcn.004725d0
test dword [ebp - 4], 0x1000
je 0x471bef
push 4
pop ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push ebx
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x471c57
push esi
call fcn.00471aea
cmp eax, 0xc8
jne 0x471c57
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00423713
pop ecx
mov ecx, edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x471c51
push esi
call fcn.00472404
jmp 0x471c66
push 1
push ebx
push ebx
jmp 0x471c61
push ebx
push 0xdeadbeef
push 0xd
mov ecx, edi
call fcn.00472599
mov bl, al
test esi, esi
je 0x471c73
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x27da460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x27da860]
xor edx, dword [ebx*4 + 0x27dac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x27da460]
add ecx, 4
xor edx, dword [eax*4 + 0x27db060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x27da860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x27dac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x27da460]
add ecx, 4
xor eax, dword [edx*4 + 0x27db060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x27da860]
xor edx, dword [ebx*4 + 0x27dac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x27da460]
xor edx, dword [eax*4 + 0x27db060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x27da860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x27dac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x27da460]
xor eax, dword [edx*4 + 0x27db060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x27da860]
xor edx, dword [ebx*4 + 0x27dac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x27da460]
xor edx, dword [eax*4 + 0x27db060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x27da860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x27dac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x27da460]
and edx, 0xff
xor eax, dword [edx*4 + 0x27db060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x27da860]
xor edx, dword [ebx*4 + 0x27dac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x27da460]
add ecx, 4
xor edx, dword [eax*4 + 0x27db060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x27da860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x27dac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x27da460]
and edx, 0xff
xor eax, dword [edx*4 + 0x27db060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x27da860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x27dac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x27da460]
and eax, 0xff
xor edi, dword [eax*4 + 0x27db060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x27da460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x10009ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0xc], ecx
je 0x10009c68
push ebx
push ebp
push edi
nop
movzx edi, byte [eax]
mov ecx, dword [esp + 0x10]
add eax, 1
mov ebp, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x40]
shl edi, 4
xor edi, eax
lea edx, [edi + edi*2]
shl ebp, 0xc
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx]
or ebp, eax
cmp ecx, ebp
jne 0x10009b19
movzx edx, word [ebx + 8]
mov dword [esi + 0x40], edx
jmp 0x10009c57
cmp ecx, 0xffffffff
jne 0x10009b3b
push eax
push esi
call fcn.10009500
mov eax, dword [esp + 0x14]
mov dword [esi + 0x40], eax
mov dword [ebx], ebp
mov cx, word [esi + 0x44]
mov word [ebx + 8], cx
jmp 0x10009c33
mov ecx, dword [ebx + 4]
cmp ecx, ebp
jne 0x10009b65
movzx ecx, word [ebx + 0xa]
mov dword [esi + 0x40], ecx
mov edx, dword [ebx]
mov ax, word [ebx + 8]
mov dword [ebx + 4], edx
mov word [ebx + 0xa], ax
mov dword [ebx], ebp
mov cx, word [esi + 0x40]
mov word [ebx + 8], cx
jmp 0x10009c57
cmp ecx, 0xffffffff
jne 0x10009ba7
push eax
push esi
call fcn.10009500
mov edx, dword [esp + 0x14]
mov dword [esi + 0x40], edx
mov dword [ebx + 4], ebp
mov ax, word [esi + 0x44]
mov word [ebx + 0xa], ax
add dword [esi + 0x44], 1
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
add ecx, 1
add esp, 8
cmp eax, ecx
jbe 0x10009c57
mov edx, dword [esi + 0xc]
add edx, 1
push edx
jmp 0x10009c4e
test edi, edi
jne 0x10009bb0
lea ecx, [edi + 1]
jmp 0x10009bb5
mov ecx, dword [esi + 0x18]
sub ecx, edi
mov dword [esp + 0x14], ecx
lea esp, [esp]
cmp edi, ecx
jae 0x10009bcd
mov edx, dword [esi + 0x18]
sub edx, ecx
add edi, edx
jmp 0x10009bcf
sub edi, ecx
mov edx, dword [esp + 0x10]
lea ecx, [edi + edi*2]
mov ecx, dword [edx + ecx*4 + 4]
cmp ecx, ebp
je 0x10009be9
cmp ecx, 0xffffffff
je 0x10009c10
mov ecx, dword [esp + 0x14]
jmp 0x10009bc0
lea eax, [edi + edi*2]
movzx ecx, word [edx + eax*4 + 0xa]
lea eax, [edx + eax*4]
mov dword [esi + 0x40], ecx
mov edx, dword [ebx]
mov dword [eax + 4], edx
mov cx, word [ebx + 8]
mov word [eax + 0xa], cx
mov dword [ebx], ebp
mov dx, word [esi + 0x40]
mov word [ebx + 8], dx
jmp 0x10009c57
push eax
push esi
call fcn.10009500
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x40], eax
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
mov dword [eax + 4], ebp
mov cx, word [esi + 0x44]
mov word [eax + 0xa], cx
mov edx, dword [esi + 0x48]
add dword [esi + 0x44], 1
mov eax, dword [esi + 0x44]
add edx, 1
add esp, 8
cmp eax, edx
jbe 0x10009c57
mov eax, dword [esi + 0xc]
add eax, 1
push eax
push esi
call fcn.10009610
add esp, 8
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
jne 0x10009ae0
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406e95
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x406fdc
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x406f3b
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x406ee5
cmp ecx, 0x40010001
je 0x406ee5
cmp ecx, 0x40020001
je 0x406ee5
cmp ecx, 0x40030001
jne 0x406ef0
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x406f02
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x406f35
dec ecx
je 0x406f2f
dec ecx
je 0x406f29
dec ecx
je 0x406f23
dec ecx
je 0x406f1d
dec ecx
jne 0x406f48
or dword [ebp - 4], 0xe
jmp 0x406f48
or dword [ebp - 4], 0xc
jmp 0x406f48
or dword [ebp - 4], 0xa
jmp 0x406f48
or dword [ebp - 4], 8
jmp 0x406f48
or dword [ebp - 4], 6
jmp 0x406f48
or dword [ebp - 4], 2
jmp 0x406f48
cmp ecx, 0x40030000
jne 0x406f48
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x406f58
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x406f66
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x406f74
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x406f82
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x406f97
push 3
jmp 0x406fc2
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x406fc8
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x406fb4
xor edx, edx
inc edx
jmp 0x406fc3
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x406fd4
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x406f85
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x406fe9
mov eax, 0x8876086c
jmp 0x406ff3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

Function at 0x41040c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x638b98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410464
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x410464
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x410464
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41048d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x638b98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4104fb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104f2
cmp dword [ebp - 0xc], 4
jne 0x4104f2
cmp dword [ebp - 0x10], edi
je 0x4104f2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6a14d4], edi
xor eax, eax
jmp 0x410523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6a14d4], edi
jge 0x41051e
mov dword [0x6a14d4], edi
call fcn.00410468
test eax, eax
je 0x41051e
emms
mov dword [0x6a14d4], 1
mov eax, dword [0x6a14d4]
pop edi
leave
ret

Function at 0x410603
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41063a
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x41065c
cmp dword [ebp - 0x20], 4
ja 0x410666
jne 0x410656
cmp dword [ebp - 0x1c], 0xa
jb 0x410656
cmp word [ebp - 0x18], 0x55d
jae 0x410666
mov byte [ebp + 0x73], 1
jmp 0x410666
cmp dword [ebp - 0x14], 2
jne 0x41067c
test bl, bl
je 0x410697
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x410687
dec eax
je 0x410680
sub eax, 3
jne 0x41067c
cmp byte [ebp + 0x73], 0
je 0x4106a8
xor eax, eax
jmp 0x4106b0
call fcn.00410526
jmp 0x4106b0
cmp byte [ebp + 0x73], 0
jne 0x41067c
call fcn.0041055e
and eax, 4
jmp 0x4106b0
cmp dword [ebp + 0x7c], 0xa
je 0x4106a8
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x4106b0
call fcn.0041055e
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret