joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7003301
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x7003310
pop dword [ebp - 0x28]
mov eax, 0xe17c8507
sub eax, 0xda7c51f7
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x6773779a
sub dword [ebp - 0x38], 0x1921324f
mov dword [ebp - 0x34], 0xe75ed99c
add dword [ebp - 0x34], 0x4ad472a9
mov dword [ebp - 0x30], 0xe68ebcf4
sub dword [ebp - 0x30], 0x9a4278c6
mov dword [ebp - 0x2c], 0x8dfdd2d5
sub dword [ebp - 0x2c], 0x8dfdd2d5
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa5036721
add dword [ebp - 0x38], 0xcf6f0235
mov dword [ebp - 0x34], 0xc10c34a0
add dword [ebp - 0x34], 0x80602cd5
mov dword [ebp - 0x30], 0x41f685d2
add dword [ebp - 0x30], 0x2178e69a
mov dword [ebp - 0x2c], 0x193a9c30
sub dword [ebp - 0x2c], 0x193a9c30
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x36383
push 0
call eax
mov ecx, 0x3668
mov ebx, eax
mov esi, 0x6627e007
sub esi, 0x5f260007
add esi, dword [ebp - 0x28]
mov edi, 0xb74ee358
sub edi, 0xf88b8038
xor dword [ebp - 0x10], eax
mov edx, dword [esi]
xor dword [ebp - 0x24], ecx
xor edx, edi
sub dword [ebp - 4], 0x5da26e25
mov dword [ebx], edx
sub dword [ebp - 4], ecx
add ebx, 0xe0345cbc
sub ebx, 0xe0345cb8
add esi, 0x62d77e3
add esi, 0xf9d28821
loop 0x7003422
add eax, 0xcc73
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x700c938
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7010cdd
call fcn.07001ea6
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cc00
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d3f5
lea ecx, [ebp - 0x10]
call fcn.0700c8d5
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700c9a5
mov eax, dword [eax + 0x14]
jmp 0x700c9aa
mov eax, 0x70127b2
push 0x701411c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700c9dc
mov ecx, dword [edi + 4]
call fcn.07007826
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003301
mov eax, edi
call fcn.07002b7f
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003301
int3
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x55dc13fd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x317b3a1a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x733d23d3
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x1a40600
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x2ee06f10
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x57157d35
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x417796
Capabilities:
Encode data using xor

Disassembly:
lea esp, [edx]
cmp al, 0xd1
mov dh, 0x19
push ebp
xor dword [ebx - 0x33], ebp
push ebx
cli
xor eax, 0xc48dd879
jle 0x417783
or bl, byte [edi]
inc ecx
in eax, dx
js 0x417781
sbb dl, cl
sbb al, 0xea
cmp al, 0x1a
outsb dx, byte [esi]
add eax, edx
int 0x25
mov ecx, 0xf278d8f8
sar byte [edx + edi*2 - 0x73], 1
or byte [ebx], ah
dec edi
in eax, 0x7f
nop
mov eax, 0x8388bd0e
adc edx, esi
push 0xffffffffffffffc5
aad 0x74
imul ebp, dword [eax + 0x2e1338a7], 0x7b

Function at 0x4c421e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc230
cmp edx, dword [eax]
je 0x4c4240
add eax, 8
inc ecx
cmp eax, 0x4cc2c0
jl 0x4c4231
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc230]
jne 0x4c436e
mov eax, dword [0x4d08b8]
cmp eax, 1
je 0x4c4348
test eax, eax
jne 0x4c4271
cmp dword [0x4cc174], 1
je 0x4c4348
cmp edx, 0xfc
je 0x4c436e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c42a8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c4930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c4b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c42eb
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c4b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c8a20
push edi
call fcn.004c6330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c4930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c4940
lea eax, [ebp - 0xa0]
push 0x4c8a00
push eax
call fcn.004c4940
push dword [esi + 0x4cc234]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c4940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c62a4
add esp, 0x2c
pop edi
jmp 0x4c436e
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc234]
push 0
push eax
push dword [esi]
call fcn.004c4b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419b00
Capabilities:
Encode data using base64

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x438400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43842d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43842d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x409fc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.0040a030
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x3aa25ea5
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1de84a6f
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00438a38
leave
ret 4

Function at 0x401920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00410593

Function at 0x4019d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4019f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a0f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a06
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401a42
nop
cmp esi, ecx
jae 0x401a06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401a30
cmp esi, ecx
jae 0x401a06
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00439300
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x271c], ecx
mov dword [ebp - 0x2720], ebx
call fcn.00418791
mov ecx, eax
test ecx, ecx
je 0x4044d4
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x2711
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x2718]
push edi
push eax
call fcn.0043b130
push 0x1389
push edi
push ebx
call fcn.0043b130
mov bl, byte [ebp + 0x18]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_recv]
nop
push 0
test bl, bl
je 0x4043aa
push 1
jmp 0x4043b2
mov eax, 0x2710
sub eax, edi
push eax
lea eax, [ebp - 0x2718]
add eax, edi
push eax
push ecx
call edx
cmp eax, 0xffffffff
je 0x40447d
test eax, eax
je 0x40447d
add edi, eax
cmp edi, 0x2710
jg 0x40446b
lea eax, [ebp - 0x2718]
push str._r_n_r_n
push eax
call fcn.0043a260
add esp, 8
test eax, eax
jne 0x404416
lea eax, [ebp - 0x2718]
push 0x468e24
push eax
call fcn.0043a260
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4043a0
cmp byte [ebp + edi - 0x271d], 0x30
je 0x40444a
lea eax, [ebp - 0x2718]
push str.Transfer_Encoding:_Chunked
push eax
call fcn.0043a260
add esp, 8
test eax, eax
je 0x40444a
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_recv]
cmp bl, 1
jne 0x4043a0
push 0x1388
lea eax, [ebp - 0x2718]
push eax
push dword [ebp - 0x2720]
call fcn.0043a630
add esp, 0xc
mov edi, 1
jmp 0x4044aa
mov edi, dword [ebp - 0x271c]
mov eax, 1
mov ecx, str._nError_:_could_not_establish_connection_to_the_proxy_server_becouse_it_uses_unsupported_protocol.
jmp 0x40449d
mov edi, dword [ebp - 0x271c]
push str._nError_:_connection_to_the_proxy_server_was_closed_unexpectedly.
push 1
push edi
call fcn.0040d4d0
add esp, 0xc
mov eax, 3
mov ecx, str._n_tPlease_make_sure_that_the_proxy_server_protocol_and_address_are_correct.
push ecx
push eax
push edi
call fcn.0040d4d0
add esp, 0xc
xor edi, edi
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4044bf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438a38
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00402150
int3
Function at 0x40838d
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push edx
push ecx
add esp, 4
sub edx, 0x14de4
and edx, 0x28f1
sub edx, 0x81d2
pop edx
push esi
add esi, 0x1538
xor esi, 0x160d2
sub esi, 0x16f10
or esi, 0xb78a
pop esi
lea edx, [ebp - 0x5c8]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x2d8], ecx
xor edx, edx
mov word [ebp - 0x84], dx
xor eax, eax
mov word [ebp - 0x48], ax
push edi
push eax
add esp, 4
add edi, 0x4be2
pop edi
push ecx
push esi
add esp, 4
sub ecx, 0xe3c0
sub ecx, 0xef1c
xor ecx, 0x6606
add ecx, 0x5ee9
pop ecx
push eax
and eax, 0x432a
pop eax
mov ecx, dword [ebp - 0x2d8]
mov dx, word [ecx]
mov word [ebp - 0x388], dx
mov eax, dword [ebp - 0x2d8]
add eax, 2
mov dword [ebp - 0x2d8], eax
mov cx, word [ebp - 0x388]
mov word [ebp - 0x84], cx
mov edx, dword [ebp - 0x2dc]
mov ax, word [edx]
mov word [ebp - 0x38a], ax
mov ecx, dword [ebp - 0x2dc]
add ecx, 2
mov dword [ebp - 0x2dc], ecx
mov dx, word [ebp - 0x38a]
mov word [ebp - 0x48], dx
push edi
push eax
add esp, 4
and edi, 0x436e
or edi, 0x10ce5
pop edi
push esi
or esi, 0x41dd
call fcn.0040838d
add byte [edi + 0x48], al
dec ecx
cmp al, 0x3b
inc edx
xor al, 0x32
xor al, byte [ebx - 0x317efb3c]
add esp, 4
invalid
into
loope 0x40833c
xchg ebp, eax
and al, 0xfd
invalid
add esp, 4
or esi, 0xa8e1
add byte [eax], al
pop esi
movzx eax, word [ebp - 0x48]
test eax, eax
jne 0x4083b4
movzx ecx, word [ebp - 0x84]
movzx edx, word [ebp - 0x48]
sub ecx, edx
mov dword [ebp - 0x4c8], ecx
jmp 0x4083f8
movzx eax, word [ebp - 0x84]
movzx ecx, word [ebp - 0x48]
cmp eax, ecx
je 0x4082dc
movzx edx, word [ebp - 0x84]
movzx eax, word [ebp - 0x48]
cmp edx, eax
jge 0x4083e2
mov dword [ebp - 0x4c4], 0xffffffff
jmp 0x4083ec
mov dword [ebp - 0x4c4], 1
mov ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ecx
cmp dword [ebp - 0x4c8], 0
jne 0x408441
push eax
sub eax, 0x821d
sub eax, 0x86fc
jmp 0x408413
call 0x408423
add byte [ecx + eax*2 + 0x42], cl
dec esp
dec edx
xor eax, 0x3d3d4b4e
add esp, 4
pop eax
push edx
push edi
add esp, 4
and edx, 0xb3b9
pop edx
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x194], edx
jmp 0x4084a9
push edi
push edx
add esp, 4
jmp 0x40844e
sub edi, 0xe930
jmp 0x40845b
pop edi
push esi
call 0x408469
add byte [edi + 0x503f4333], bh
add esp, 4
and esi, 0x12f0d
pop esi
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf8]
cmp edx, dword [ebp - 0x2e0]
je 0x40849f
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x30], 0
jne 0x408280
mov dword [ebp - 0x194], 0