joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a2750]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d02
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x7a2750]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a2750], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x405244
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0cb8], 0x44
push eax
xor eax, eax
push 0x7a0cb8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40527f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405309
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055b8
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40533d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2728], eax
jmp 0x4054d1
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40535b
test eax, eax
je 0x40547c
test byte [ebp + 0xc], 2
je 0x40547c
mov esi, 0x79fcb8
push edi
push esi
call fcn.004059e4
test ebx, ebx
je 0x405378
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40537e
push edi
call fcn.0040551e
cmp byte [edi], 0
jne 0x40538c
cmp byte [0x79fcb8], 0x5c
jne 0x405397
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405472
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405502
cmp byte [eax], 0
je 0x4053dd
cmp byte [ebp - 0x18], 0
je 0x4053dd
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053f3
mov al, byte [esi + 1]
test al, al
je 0x405451
cmp al, 0x2e
jne 0x4053f3
cmp byte [esi + 2], 0
je 0x405451
push esi
push ebx
call fcn.004059e4
test byte [ebp - 0x148], 0x10
je 0x405418
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405451
push dword [ebp + 0xc]
push edi
call fcn.00405309
jmp 0x405451
push edi
call fcn.0040569c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405449
test byte [ebp + 0xc], 4
je 0x405441
push edi
push 0xfffffffffffffff1
call fcn.00404d82
push 0
push edi
call fcn.00405732
jmp 0x405451
inc dword [0x7a2728]
jmp 0x405451
push edi
push 0xfffffffffffffff2
call fcn.00404d82
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40547c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054d1
cmp dword [ebp - 8], esi
jne 0x405491
inc dword [0x7a2728]
jmp 0x4054d1
push edi
call fcn.00405cdb
test eax, eax
je 0x4054d1
push edi
call fcn.004054d7
push edi
call fcn.0040569c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054c9
test byte [ebp + 0xc], 4
je 0x405489
push edi
push 0xfffffffffffffff1
call fcn.00404d82
push esi
push edi
call fcn.00405732
jmp 0x4054d1
push edi
push 0xffffffffffffffe5
call fcn.00404d82
pop edi
pop esi
leave
ret 8
Function at 0x4055b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00b8
push esi
call fcn.004059e4
push esi
call fcn.0040556b
mov edi, eax
test edi, edi
jne 0x4055d9
xor eax, eax
jmp 0x40562b
push edi
call fcn.00405c42
test byte [0x7a26b8], 0x80
je 0x4055f2
mov al, byte [edi]
test al, al
je 0x4055d5
cmp al, 0x5c
je 0x4055d5
sub edi, esi
jmp 0x40560a
call fcn.00405cdb
test eax, eax
je 0x405604
test byte [eax], 0x10
je 0x4055d5
push esi
call fcn.0040551e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055f6
call fcn.004054d7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40569c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056b8
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056bb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40572e
test edi, edi
jne 0x4056f5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405728
Function at 0x405732
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d02
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405756
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40588f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e40], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e40
je 0x40579a
push 1
push 0
push esi
call fcn.004056bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405895
cmp eax, edi
jg 0x405895
mov esi, 0x7a08b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405895
cmp eax, edi
jg 0x405895
push esi
push ebp
push str._s_s_r_n
push 0x7a04b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a06
push 4
push 0xc0000000
push esi
call fcn.004056bb
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40588f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405888
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405888
cmp edi, dword [esp + 0x18]
jne 0x405888
push str._Rename__r_n
push esi
call fcn.00405630
test eax, eax
jne 0x40589c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059e4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04b8
push eax
call fcn.0040567c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2730]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405630
test eax, eax
je 0x405853
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058c3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b8
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405855
Function at 0x4058cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40593c
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40592b
cmp dword [ebp + 0x14], 1
je 0x40592d
cmp dword [ebp + 0x14], 2
je 0x40592d
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d6e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405da5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d7a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405db8
pop edi
not eax
pop esi
ret 0xc

Function at 0x40ca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca78
mov eax, 1
add ebx, ebx
jne 0x40ca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ca90
jne 0x40caac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ca90
xor ecx, ecx
sub eax, 3
jb 0x40cac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb32
mov ebp, eax
add ebx, ebx
jne 0x40cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cafc
inc ecx
add ebx, ebx
jne 0x40cae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cadd
jne 0x40caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb0d
jmp 0x40ca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb1c
add edi, ecx
jmp 0x40ca7e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cb7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb39
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9fc]
or eax, eax
je 0x40cb75
mov dword [ebx], eax
add ebx, 4
jmp 0x40cb56
call dword [esi + 0xe9f8]
mov ebp, dword [esi + 0xea00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x40cbaf
sub esp, 0xffffff80
jmp 0x401978
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push 0
mov dword [edi], 0x422824
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401082
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov byte [esi], 0xb9
mov byte [esi + 5], 0xe9
mov dword [esi + 1], edi
mov dword [edi + 8], esi
mov eax, edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
lea ecx, [esp + 4]
call 0x4119e6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.004016af
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x432b80
push 0x432fc8
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x401752
push 0x42283c
push 0x426584
call fcn.0041524e
pop ecx
pop ecx
call fcn.004010c5
mov ecx, eax
call fcn.00403275
test eax, eax
jne 0x401767
push 2
pop esi
jmp 0x401773
call fcn.00408643
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x432fc8]
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4026ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x40266a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret 4

Function at 0x40334a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
stosd dword es:[edi], eax
push esi
push esi
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x4033bc
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4033cd
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.0041524e
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40c06b
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x414
mov eax, 0x420d01
call fcn.0041f61b
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
call fcn.00401445
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x414], ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x41c], 1
jmp 0x40c100
cmp dword [ebp - 0x414], 0
je 0x40c11a
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
mov eax, esi
call fcn.0040571d
and dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x418]
call edi
test eax, eax
jne 0x40c0c7
push 0x429718
mov edi, 0x426484
push edi
call fcn.0041524e
pop ecx
pop ecx
jmp 0x40c11f
mov edi, 0x426484
push dword [esi]
lea eax, [ebp - 0x418]
push eax
call fcn.00414ce9
mov ebx, dword [ebp - 0x418]
push ebx
push str.Received_cmd3_ack_s
push edi
call fcn.0041524e
mov eax, dword [esi]
add esp, 0x14
cmp dword [eax - 0xc], 0
jne 0x40c157
push 0x4297a0
push edi
call fcn.0041524e
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.004016af
mov eax, esi
call fcn.0041f69e
ret
Function at 0x410887
Capabilities:
Encode data using xor

Disassembly:
inc edi
add byte [esi + 0xcd0015], ch
dec edi
retf
ret
in eax, 0x82
pushfd
sub al, 0x29
jl 0x4107e3
mov dl, 0xf1
sbb byte [edi + 0x4ce45af5], ch
movsb byte es:[edi], byte [esi]
cmpsd dword [esi], dword es:[edi]
jb 0x410827
push esp
rcl byte fs:[edx - 0x28420b16], 0xce
out 0x57, eax
popfd
mov esi, 0x21663fc6
fsub qword [ebx - 0x3d]
mov esp, 0x416da3af
xor eax, 0xcfe37528
adc edi, edx
stosb byte es:[edi], al
jbe 0x41088c
lodsd eax, dword [esi]
xor al, 0xd4
add dword [eax - 0x46], esp
pushal
mov edx, 0xf2549ef7
ja 0x4108ec
aam 1
pushal
mov edx, 0xf2549ef7
ja 0x4108ec
bnd ja 0x4108ec
sub dword [ebx + 0x723b3c00], ebx
jl 0x41084c
imul esp, ebx, 0xad32b7fe
aad 0x9e
jb 0x410885
cmc
imul eax, dword [eax - 0x7cf4b520], 0x34c69817
and al, 0xd3
sub dword [eax], ecx
mov eax, 0x6e8e93b0
dec eax
add ecx, ebx
add byte [edi - 0x33], dl
pop es
sbb ebx, 0xffffffb9
inc esp
xchg edi, eax
int3
or esi, ecx
add edi, dword [ebx]
xchg ebp, eax
cmp ch, byte [ebx + esi*2 - 0x6b]
push es
mov ah, 0xd6
or edx, dword [ecx]
pop ebx
xchg ecx, eax

Function at 0x4109ac
Capabilities:
Encode data using xor

Disassembly:
add esp, dword [eax + 0x1be8f3]
mov ah, 0x91
mov ebp, 0x7414ad8
pop esi
aas
loopne 0x4109d0
xor byte [esi], dl
xchg edx, eax
xor al, 0xa8
mov al, byte [0x11e278a2]
jmp 0x8ae081ed
or ebx, ecx
sbb byte [ecx - 8], ah
movsb byte es:[edi], byte [esi]
jno 0x4109dc
mov dl, 0x37
arpl ax, si
sbb dl, ch
adc eax, 0x59c1bc45
invalid

Function at 0x412762
Capabilities:
Encode data using xor

Disassembly:
jg 0x412755
add esi, ebx
test dword [ebx + 0x61], esi
add dl, ah
add byte [ebx - 0x31], ah
and eax, 0x7d7dd95d
fnstcw word [ebp + 0x7d]
push ds
jae 0x412734
imul ebx, dword [eax + ebp*8 + 0x12], 0x1589f
and cl, byte [ecx - 0x17ed89b7]
pop es
dec esi
and edx, dword [ebx]
add byte [eax + 0x16], ch
xchg edx, eax
or eax, 0x184dcc00
sar byte [ecx + ebp*2 + 0x5969d1c9], 0xe2
retf
aaa
sahf
lahf
adc eax, 0x832a59a
loope 0x4127c2
and eax, 0x80ea24d9
push eax
inc esp
jne 0x4127a6
out dx, eax
out dx, eax
add al, 0xb
adc byte [ebx + 0x5e], cl
mov al, byte [0xebdbba60]
scasb al, byte es:[edi]
push edx
popal
mov ebp, 0xf19f787a
cmp dh, byte [esi + esi - 0x68b746b4]
cmpsb byte [esi], byte es:[edi]
push esp
fst dword [ecx]
push 0x69
or al, 0x98
out dx, eax
ja 0x412726
pop ebx
and bl, byte [ebx]
out dx, al
test ah, 0x59
inc ebp
add ebx, dword [esi]
push ds
add ebx, eax
push ecx
clc
sar dword [edx - 0x3750580d], 0xb8
invalid
xor al, 0xc0
add eax, 0x22a42055
mov dl, 0x44
adc eax, 0x8f39c33c
xor edx, dword [ecx]
mov ds, esi
adc ebx, dword [edx - 0x17]
cmp ah, byte [esi - 0x6fff5d61]
ja 0x4127c2
lea esi, [esi - 0x79234ede]
dec ebp
call 0x41697446
dec esp
mov edx, 0xfa2234ab
retf 0xec47

Function at 0x414c81
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffc4
mov ah, 0x8d
daa
adc ah, dl
daa
jl 0x414cb6
add byte [eax + 0x6d24ec8d], al
insd dword es:[edi], dx
sal bl, 1
mov al, 0xb6
imul dword [eax]
cdq
cmc
clc
out 7, eax
les ebx, [edx + 0x2c]
xor ebx, edi
jg 0x414c98
mov dh, 0x1a
jmp [edi - 0x490334b7]
clc
invalid
Function at 0x418687
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.M_GetAdaptersAddresses_begin.
mov edi, str.bugreport
push edi
call fcn.0041524e
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
mov dword [ebp - 0xc], eax
jne 0x41871f
cmp esi, ebx
je 0x4186cd
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 8]
call fcn.0041ebe4
mov esi, eax
cmp esi, ebx
pop ecx
je 0x41870a
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x4186ac
cmp esi, ebx
je 0x4186f0
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0xc]
push str.GetAdaptersAddresses_failed___ld_.
push edi
call fcn.0041524e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
push edi
call fcn.0041524e
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x4186e5
cmp esi, ebx
je 0x4186f0
push dword [ebp + 8]
mov ecx, esi
call fcn.0041874d
mov edi, eax
cmp edi, ebx
je 0x418742
push dword [ebp + 8]
call fcn.004190c9
mov edi, eax
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
jmp 0x418703

Function at 0x41968d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test edx, edx
push edi
mov edi, dword [ebp + 8]
jle 0x4196f7
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push esi
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 8]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x4196a4
pop esi
pop ebx
pop edi
leave
ret