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

Disassembly:
push 0xffffffffffffffff
push 0x497960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00434075
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x43658e
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00431415
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00431405
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00435be5
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.0049a504]
push 0
lea ecx, [esp + 0x4c]
call fcn.00499089
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0044c685
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00433a95
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [fcn.0049a13c]
mov ecx, ebx
call fcn.00431385
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x436659
push edi
mov ecx, esi
call fcn.00433ba5
push eax
push ebp
mov ecx, esi
call fcn.00433d65
cmp eax, dword [esp + 0x40]
jg 0x436655
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x436633
mov eax, ebx
jmp 0x43665f
cmp edi, ebx
jl 0x43665d
mov eax, ebx
jmp 0x43665f
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x436670
mov dword [esp + 0x30], eax
jmp 0x43667b
cmp edi, ebx
jl 0x436676
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00431345
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x4366c2
push edi
mov ecx, esi
call fcn.00433ac5
push eax
push ebx
mov ecx, esi
call fcn.00433e95
cmp eax, dword [esp + 0x44]
jg 0x4366ba
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x436694
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4366cc
cmp edi, ebp
jl 0x4366c6
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4366cc
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4366d5
mov ecx, eax
jmp 0x4366de
cmp edi, ebp
jl 0x4366db
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00433ab5
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004990fb
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x44cd25
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x498708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.0049a504]
push 0
lea ecx, [esp + 0x20]
call fcn.00499089
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044c685
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00498fb7
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049587b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049587b
push 1
push 0
push 0
mov ecx, esi
call fcn.00495823
push 1
push 0
push 1
mov ecx, esi
call fcn.00495823
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004990fb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44cea5
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x498728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00499089
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044c685
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00498fb7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.0049a504]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44cf69
cmp dword [esp + 0x40], 1
jne 0x44cf67
cmp ecx, eax
jge 0x44cf69
mov eax, ecx
cmp eax, 0xc8
jge 0x44cf75
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044cd25
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.0049a500]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004990fb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44d775
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4987d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00493c99
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4a1040
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4a0f88
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.0049a0dc]
push eax
mov ecx, edi
call fcn.00499331
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049a84d
test eax, eax
je 0x44d891
mov ecx, dword [esp + 0x3c]
call fcn.0049935e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.0049a524]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d855
push edi
mov ecx, esi
call fcn.004969c2
mov ecx, esi
call fcn.0044da35
cmp dword [esp + 0x38], 1
jne 0x44d88a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00496afd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x44faa5
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44fad8
push esi
call fcn.0045de45
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44fad1
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44fb5e
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44fb47
mov eax, dword [esi + 8]
test eax, eax
je 0x44fafc
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44fb43
cmp eax, 2
je 0x44fb47
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44faef
cmp eax, 3
je 0x44fb22
cmp eax, 1
jne 0x44faef
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44faef
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44faef
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044fb85
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44fb6d
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044fb85
add esp, 4
pop esi
ret
Function at 0x46d835
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d6eb8]
xor edx, edx
cmp eax, edx
jne 0x46d85b
xor eax, eax
mov byte [eax + 0x4d6db8], al
inc eax
cmp eax, 0x100
jl 0x46d843
mov dword [0x4d6eb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d6db8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46d8ec
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46d8bf
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46d88d
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x46d8f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46d948
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46d92f
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4742c5
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x498cbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00474be5
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a3144
call fcn.0049242b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x474358
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049242b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x474351
push 0
mov ecx, eax
call fcn.0046b465
mov dword [esi + 0xc], eax
jmp 0x47435a
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47435a
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x58c42e9d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x11b3417e
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x853500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c7000]
push edi
jmp 0x85351a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x853521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853510
mov eax, 1
add ebx, ebx
jne 0x853533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x853544
jne 0x853563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853563
dec eax
add ebx, ebx
jne 0x853550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x853528
add ebx, ebx
jne 0x85355f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8535b5
xor ecx, ecx
sub eax, 3
jb 0x85357b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8535ea
sar eax, 1
mov ebp, eax
jmp 0x853586
add ebx, ebx
jne 0x853586
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853554
inc ecx
add ebx, ebx
jne 0x853594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853554
add ebx, ebx
jne 0x8535a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x853596
jne 0x8535b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x853596
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8535d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8535c6
jmp 0x853516
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8535d4
add edi, ecx
jmp 0x853516
pop esi
mov edi, esi
mov ecx, 0xe4d7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8535f2
cmp byte [edi], 0x2c
jne 0x8535f2
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 0x8535f7
lea edi, [esi + 0x43d000]
mov eax, dword [edi]
or eax, eax
je 0x85366f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x47862c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4787d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x853624
mov ecx, edi
jns 0x853653
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4787d8]
or eax, eax
je 0x853669
mov dword [ebx], eax
add ebx, 4
jmp 0x853641
call dword [esi + 0x4787d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8536a0
cmp al, 0xef
ja 0x853693
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x853675
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x853682
mov ebp, dword [esi + 0x4787dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x8536d4
sub esp, 0xffffff80
jmp 0x57ecd3
Function at 0x401020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push 0x43a800
mov esi, SysReAllocString
push esi
mov dword [esp + 0x20], 0x409
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40108c
push esi
call edi
test eax, eax
mov esi, dword [esp + 8]
jne 0x40108c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.lang
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ecx, word [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test esi, esi
je 0x40109f
push esi
call edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x401480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x124
mov eax, dword [0x4444b0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x134]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x4014ee
test ecx, ecx
je 0x4014e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x4014fc
test ecx, ecx
je 0x4015a1
push ecx
jmp 0x40159b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x40156e
jmp 0x401530
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00401480
mov edi, eax
test edi, edi
jne 0x4015bd
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x401530
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401585
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4015a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041f8f1
add esp, 0x124
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4015cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4015a3
Function at 0x403000
Capabilities:
Create http request
Create process on windows
Read data from internet
Receive data

Disassembly:
sub esp, 0x54
mov eax, dword [0x4444b0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [esp + 0x21]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x28], 0
call fcn.00420ea0
mov ecx, dword [str.KGB1.2.1.24]
mov edx, dword [0x43acf8]
mov eax, dword [0x43acfc]
add esp, 0xc
push 0
push 0
push 0
push 1
push str.KGB_Archiver
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x40309c
push 0
push 0
push 0
push 0
push str.http:__kgbarchiver.sourceforge.net_version.txt
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x40309c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x1c], 0x4b
jne 0x403146
cmp byte [esp + 0x1d], 0x47
jne 0x403146
cmp byte [esp + 0x1e], 0x42
jne 0x403146
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4030e5
test al, al
je 0x4030e1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4030e5
add ecx, 2
add edx, 2
test al, al
jne 0x4030c5
xor eax, eax
jmp 0x4030ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403136
push 4
push str.KGB_Archiver
mov edi, 0x68
call fcn.004013d0
push eax
mov ecx, ebx
call fcn.0040b6a3
cmp eax, 6
jne 0x403168
push 0xa
push 0
push 0
push str.http:__kgbarchiver.sourceforge.net__pagedownload.php
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041f8f1
add esp, 0x54
ret
cmp byte [ebx + 0x21c], 0
jne 0x403168
mov edi, 0x69
jmp 0x403154
cmp byte [ebx + 0x21c], 0
jne 0x403168
mov edi, 0x67
push 0
push str.KGB_Archiver
call fcn.004013d0
push eax
mov ecx, ebx
call fcn.0040b6a3
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f8f1
add esp, 0x54
ret

Function at 0x4034f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403509
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403544
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403540
lea ebx, [ebx]
cmp esi, eax
jae 0x403544
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403530
cmp esi, eax
jb 0x40354a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret