joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x42d098
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42d176
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042d9e0
add esp, 8
sar eax, 0xc
cmp eax, 3
jne 0x42d171
mov dword [ebp - 0x10], 0xfff
mov dword [ebp - 0xc], 0x9922c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042d9e0
add esp, 8
and eax, dword [ebp - 0x10]
add eax, 0x8702
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
cmp dword [ebp - 4], 0
jne 0x42d14a
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42d14a
xor eax, eax
jmp 0x42d176
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx - 0x8702]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx - 0x8702], eax
jmp 0x42d08f
mov esp, ebp
pop ebp
ret

Function at 0x42d9e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x240be8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x240be8
push 0x15b9
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42da15
xor eax, eax
jmp 0x42da1f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + edx*2]
mov esp, ebp
pop ebp
ret

Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
adc byte [eax], al
cld
dec edx
out dx, al
cmp byte [eax], al
add byte [eax + ebx*8], dl
insb byte es:[edi], dx
adc al, 0x30
sub al, 0x72
adc al, 0x30
test eax, 0xc37760b2
mov dl, 0xa
ja 0x401004
mov dl, 0xe2
mov al, byte [0x23e2b2a6]
pop esi
mov bl, 0x96
adc al, 0xdd
dec ebx
imul esp, dword [eax - 0x11], 0xef4eeba3
mov dword [0xd6eeb668], eax
inc eax
pop esi
lds eax, fs:[eax + 0x5e]
jmp 0xa88c793f
Function at 0x46ca80
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41fe21
Capabilities:
Enumerate pe sections

Disassembly:
je 0x41fe58
mov ebx, dword [ebp - 0x17]
invalid
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x41fe8c
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x41fe85
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x41fe91
add edx, 0x28
cmp edx, esi
jne 0x41fe76
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x41fe8e
Function at 0x471f8b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f99
call fcn.00472075
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fd1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fe4
call fcn.00472075
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472027
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472035
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472041
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472075
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x472098
push 0
call fcn.0042e517
pop ecx
mov ecx, eax
call fcn.00472035
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720ad
mov eax, dword [esi]
mov dword [ebp - 4], 0xff0c018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720e7
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x2d816a23
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2d8e1ef1
call fcn.2d805e23
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push str.SoftwareMicrosoftInternet_Explorer
xor ebx, ebx
push 0x80000002
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x2d816a56
xor al, al
jmp 0x2d816b1e
push ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
inc edx
pop esi
add al, 0
add bh, al
inc ebp
in al, dx
pop es
add byte [eax], al
add byte [esi - 0x77], ah
inc ebp
fsubr st(0)
xor dword [esi + 4], ebx
add byte [ebx + 0x4d8de845], cl
enter 0xffffffffffffff33, 0xffffffffffffff89
inc ebp
enter 0xffffffffffff8947, 0x5d
cld
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ebx
push str.Version
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
jne 0x2d816acf
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x2d816acf
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.2d801b44
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x2d816b1c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], edi
cmp eax, 0x1000
jb 0x2d816b13
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.2d85c8ab
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.2d85c8ab
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
Function at 0x2d834fff
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x2d8e471e
call fcn.2d805e23
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
call fcn.2d85c8ab
pop ecx
test al, al
je 0x2d835159
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
push dword [ebp - 0x44]
push 1
call fcn.2d85c8ab
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2d835161
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
mov byte [edi + 3], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.2d82bc14
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.2d8359fe
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
pop ecx
pop ecx
cmp eax, 0x10
jb 0x2d8350df
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x2d8350d3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.2d85c8ab
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.2d85c8ab
pop ecx
pop ecx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 2
je 0x2d8350fb
cmp eax, 5
jne 0x2d8350fd
mov bl, 1
mov eax, dword [0x2d966aec]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x2d8f7384]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 8
jb 0x2d835159
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 3
cmp eax, 0x1000
jb 0x2d835150
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.2d85c8ab
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.2d85c8ab
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
xor al, al
jmp 0x2d83515b
Function at 0x10005737
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10005746
pop dword [ebp - 8]
mov eax, 0x7a95f92c
sub eax, 0x6a95a1e6
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x6771eb77
sub dword [ebp - 0x18], 0x191fa62c
mov dword [ebp - 0x14], 0x8bd330c4
add dword [ebp - 0x14], 0xa6601b81
mov dword [ebp - 0x10], 0xaa4c37e
add dword [ebp - 0x10], 0x41a780b0
mov dword [ebp - 0xc], 0x5918277e
add dword [ebp - 0xc], 0xa6e7d882
lea eax, [ebp - 0x18]
push eax
mov eax, 0x52e3ad48
sub eax, 0x42dfac34
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x494e1c32
sub dword [ebp - 0x18], 0xd4dbb2dc
mov dword [ebp - 0x14], 0x9a57bb07
add dword [ebp - 0x14], 0xa714a66e
mov dword [ebp - 0x10], 0xde2769b9
sub dword [ebp - 0x10], 0x7ab7fd4d
mov dword [ebp - 0xc], 0xb7dd4a46
add dword [ebp - 0xc], 0x4822b5ba
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xa3442e42
add eax, 0x6cbfd316
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x39875
push 0
call eax
mov ecx, 0x6b566353
sub ecx, 0x6b56220d
xor ebx, ebx
add ebx, eax
mov esi, 0x79eedba
sub esi, 0xf795a3ba
add esi, dword [ebp - 8]
mov edx, 0x584eb18b
sub edx, 0xc7305de
add dword [ebp - 4], 0xd3ad8fa9
mov edi, dword [esi]
add dword [ebp - 4], 0x79704da2
sub edi, edx
xor dword [ebp - 4], 0xca83314
mov dword [ebx], edi
mov dword [ebp - 4], 0xbce172d4
add ebx, 0x67f25f5b
add ebx, 0x980da0a9
add esi, 0x19681e4e
add esi, 0xe697e1b6
loop 0x1000586a
add eax, 0xe4ff40d9
add eax, 0x1b01b712
mov ebx, eax
add eax, 0x844e3bef
add eax, 0x7bb1c416
mov ecx, 0x5a062255
sub ecx, 0x4a062255
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x100058e1
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
and dword [eax + 0x20], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x432005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401226
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x401237
pop esi
ret
movzx eax, word [esp + 0xc]
push edi
push eax
movzx eax, word [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40125d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40127a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebx
jmp 0x40125a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [ecx], eax
inc edi
jmp 0x40126e

Function at 0x401491
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push 0x30
xor esi, esi
lea eax, [ebp - 0x34]
push esi
push eax
mov dword [ebp - 4], ecx
call fcn.0040b2f0
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.00407235
test eax, eax
je 0x4014c3
push 0x27
pop eax
jmp 0x401582
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push edi
cmp eax, esi
je 0x401561
cmp esi, eax
jge 0x40150a
cmp dword [ebp - 0x30], 0
jne 0x40150a
push dword [section..data]
mov eax, dword [ebp - 4]
push dword [0x429160]
push esi
push ebx
push dword [eax]
call fcn.00407126
add esp, 0x14
test eax, eax
jle 0x401566
mov ecx, dword [0x429160]
add esi, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x429164]
mov dword [ebp - 0x24], eax
mov eax, dword [0x427004]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00407d99
mov edi, eax
test edi, edi
je 0x40152e
cmp edi, 4
jne 0x40156b
mov eax, dword [0x427004]
sub eax, dword [ebp - 0x20]
je 0x401551
push dword [ebp + 0xc]
push 1
push eax
push dword [0x429164]
call fcn.0040b4c1
add esp, 0x10
cmp eax, 1
jne 0x40156f
cmp edi, 4
je 0x401573
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4014d3
push 0x28
pop esi
jmp 0x401575
push 6
pop eax
jmp 0x401580
push 0x27
jmp 0x401563
push 7
jmp 0x401563
xor esi, esi
lea eax, [ebp - 0x34]
push eax
call fcn.00407ce5
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x40169d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push ebx
push 0x20
push 1
push esi
call fcn.0040d333
add esp, 0x10
cmp eax, 0x20
je 0x4016cd
push 6
pop eax
jmp 0x40174b
push edi
push dword [esi + 8]
mov edi, dword [sym.imp.WSOCK32.dll_ntohl]
call edi
push dword [esi + 0xc]
mov dword [esi + 8], eax
call edi
push dword [esi + 0x10]
mov dword [esi + 0xc], eax
call edi
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call edi
push dword [esi + 0x18]
mov dword [esi + 0x14], eax
call edi
push dword [esi + 0x1c]
mov dword [esi + 0x18], eax
call edi
push ebx
mov dword [esi + 0x1c], eax
call fcn.00412ee3
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040b843
add esp, 0xc
pop edi
test eax, eax
jne 0x4016c8
push 8
push str.MBDIFF10
push esi
call fcn.0040bb95
add esp, 0xc
test eax, eax
je 0x401734
push 0x29
jmp 0x4016ca
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ecx + 0x20]
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 0x29
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2d4
leave
ret
Function at 0x401759
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x18]
mov eax, dword [edi + 8]
add eax, dword [ebp + 0x10]
add esi, dword [edi + 0x1c]
mov dword [ebp - 0xc], eax
push esi
call fcn.0040b5b2
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40178c
push 0xc
pop eax
jmp 0x4018c7
and dword [ebp + 8], 0
push ebx
mov dword [ebp - 4], eax
test esi, esi
je 0x4017c3
mov ebx, 0x7fffffff
cmp esi, ebx
ja 0x4017a3
mov ebx, esi
push dword [ebp + 0xc]
push ebx
push 1
push dword [ebp - 4]
call fcn.0040d333
add esp, 0x10
cmp eax, ebx
jne 0x4018a1
add dword [ebp - 4], eax
sub esi, eax
jne 0x401798
mov eax, dword [edi + 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
add eax, esi
add ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
add edi, ebx
push dword [esi]
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi + 4]
mov dword [esi], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esi]
lea edx, [eax + ecx]
cmp edx, dword [ebp - 0xc]
ja 0x4018b3
mov edx, dword [ebp - 4]
add edx, eax
cmp edx, dword [ebp - 0x14]
ja 0x4018b3
and dword [ebp - 8], 0
test eax, eax
je 0x40183c
mov eax, dword [ebp - 4]
sub ecx, eax
mov dl, byte [ecx + eax]
add byte [eax], dl
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
inc eax
cmp edx, dword [esi]
jb 0x40182c
push dword [ebp + 0x14]
mov eax, dword [esi]
push eax
push 1
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040b4c1
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, ecx
jne 0x4018aa
mov eax, dword [esi + 4]
add dword [ebp + 0x10], ecx
add dword [ebp - 4], ecx
add eax, ebx
cmp eax, edi
ja 0x4018b3
push dword [ebp + 0x14]
mov eax, dword [esi + 4]
push eax
push 1
push ebx
mov dword [ebp - 8], eax
call fcn.0040b4c1
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x4018aa
mov eax, dword [esi + 8]
add eax, dword [ebp + 0x10]
add ebx, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x4018b3
add esi, 0xc
mov dword [ebp + 0x10], eax
cmp esi, dword [ebp - 0x18]
jb 0x4017de
jmp 0x4018ba
mov dword [ebp + 8], 6
jmp 0x4018ba
mov dword [ebp + 8], 7
jmp 0x4018ba
mov dword [ebp + 8], 0x29
push dword [ebp - 0x10]
call fcn.0040b0b8
mov eax, dword [ebp + 8]
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401df7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x429168]
mov esi, 0x104
push str._s_update.status
lea edi, [ebp - 0x24c]
call fcn.004018e7
mov eax, edi
push 0x41f480
push eax
call fcn.0040b7e5
add esp, 0x10
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x401e45
xor al, al
jmp 0x401ec1
push ebx
push 7
pop ecx
push dword [ebp - 0x250]
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
inc ebx
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040d333
mov esi, str.pending_service
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.applied_service
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xf
lea eax, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0040dcff
add esp, 0x1c
test eax, eax
je 0x401eb2
push 0xf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040dcff
add esp, 0xc
test eax, eax
je 0x401eb2
xor bl, bl
push dword [ebp - 0x250]
call fcn.0040b6b3
pop ecx
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret

Function at 0x401ecf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [0x429168]
mov esi, 0x104
push str._s_update.status
lea edi, [ebp - 0x238]
mov byte [ebx], 0
call fcn.004018e7
mov eax, edi
push 0x41f480
push eax
call fcn.0040b7e5
add esp, 0x10
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x401f20
xor al, al
jmp 0x401f77
push 7
pop ecx
push dword [ebp - 0x23c]
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.0040d333
mov esi, str.succeeded
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push 9
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x30]
push eax
movsw word es:[edi], word [esi]
call fcn.0040dcff
push dword [ebp - 0x23c]
neg eax
sbb al, al
inc al
mov byte [ebx], al
call fcn.0040b6b3
add esp, 0x20
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret

Function at 0x402102
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x401905
push 0
push 0
call fcn.0040e037
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi], eax
pop esi
lea eax, [ecx - 1]
pop ebp
ret 8