joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
call fcn.00448d90
xor eax, eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.00425650
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44852f
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x448504
cmp eax, 5
jne 0x44852f
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ecx, 8
jb 0x44851c
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0041bfb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00448c00
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00419640
push 0x4ab9d4
lea eax, [ebp - 0x74]
push eax
call fcn.0044bc24
int3
Function at 0x448560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d26e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x18], ebx
call fcn.00448d90
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00425650
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44876d
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4485f5
cmp eax, 2
je 0x4485f5
cmp eax, 6
jne 0x44876d
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x448757
shr edi, 1
xor ecx, ecx
mov edx, 2
mov byte [ebp - 0x20], 1
lea esi, [edi + 1]
mov eax, esi
mov dword [ebp - 0x2c], esi
mul edx
mov dword [ebp - 0x28], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044996b
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ebx
push 0
push 0
push ecx
push dword [eax + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp edi, esi
jb 0x448671
push 0
push 0x130
push str...FoundationincludePoco_Buffer.h
push str.index____used
call fcn.00420350
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x88]
push ebx
mov word [ebx + edi*2], ax
call fcn.00447b30
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00425760
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x5c]
add esp, 8
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00404010
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4486e0
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00420790
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 8
jb 0x44870d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0041bfb0
xor eax, eax
mov dword [ebp - 0x74], 7
push ebx
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00449974
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x448742
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.0041bfb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x44872d
push esi
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.00448c00
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00419640
push 0x4ab9d4
lea eax, [ebp - 0x70]
push eax
call fcn.0044bc24
int3
Function at 0x448f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.00448d90
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.00425650
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
call fcn.00425650
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
add esp, 0x10
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x10], 8
cmovae edx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
cmp dword [ebp - 0x28], 8
push eax
cmovae ecx, dword [ebp - 0x3c]
push edx
push 1
push 0
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x448fdb
push dword [ebp + 8]
mov ecx, esi
call fcn.00448b80
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, 8
jb 0x448ff1
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0041bfb0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
cmp eax, 8
jb 0x44901a
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0041bfb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x449030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push edi
mov edi, ecx
call fcn.00448d90
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x44919f
push esi
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x44919e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push dword [edi + 0x1c]
call ebx
test eax, eax
jne 0x44918c
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], ax
cmp word [ebp - 0x248], ax
je 0x449100
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4490f1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x48]
call fcn.00447fa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00425760
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
add esp, 8
push eax
call fcn.004186c0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x44915e
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00420790
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x44918c
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0041bfb0
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4490b0
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4491b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
call fcn.00448d90
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.00425650
add esp, 8
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x449250
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00448c00
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00419640
push 0x4ab9d4
lea eax, [ebp - 0x70]
push eax
call fcn.0044bc24
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp ecx, 8
jb 0x449268
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0041bfb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x449280
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push edi
mov edi, ecx
call fcn.00448d90
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4493df
push esi
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x4493de
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x244]
push eax
push esi
push dword [edi + 0x1c]
call ebx
test eax, eax
jne 0x4493cc
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
cmp word [ebp - 0x244], ax
je 0x449340
lea eax, [ebp - 0x244]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449331
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x44]
call fcn.00447fa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00425760
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
add esp, 8
push eax
call fcn.004186c0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x44939e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00420790
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4493cc
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0041bfb0
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4492f0
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x45e001
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045dec4

Function at 0x466755
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004665d4

Function at 0x469637
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004692f7
Function at 0x474170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
xor edx, edx
push ebp
mov ecx, ebx
mov dword [esp + 0xc], 1
neg ecx
mov dword [esp + 8], 0
mov eax, ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
bts ebp, eax
cmp eax, 0x20
push esi
cmovae edx, ebp
xor ebp, edx
cmp eax, 0x40
mov eax, dword [esp + 0x3c]
cmovae edx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x40]
push edi
call fcn.00477910
mov edx, dword [esp + 0x28]
mov ecx, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], ecx
push eax
add ebp, 0xffffffff
lea eax, [esp + 0x24]
push eax
adc edx, 0xffffffff
mov dword [esp + 0x38], ebp
and ebp, dword [esp + 0x48]
lea eax, [ebx + 0x40]
mov dword [esp + 0x3c], edx
and edx, dword [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.004735f0
mov ebx, dword [esp + 0x70]
add esp, 0x10
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [ecx], 0
cmp dword [ebx], 0
jle 0x474255
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
xor edx, edx
div edi
mov dword [esp + 0x18], edx
add al, 0x30
mov edx, dword [ecx]
mov ecx, dword [esp + 0x54]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x5c]
inc dword [ecx]
dec dword [ebx]
sub esi, 1
je 0x474259
mov eax, 0xcccccccd
mul edi
mov edi, edx
shr edi, 3
cmp dword [ebx], 0
jg 0x474220
test esi, esi
jne 0x474291
mov esi, dword [esp + 0x24]
mov eax, edi
push ebx
push 0
neg esi
xor edx, edx
push 1
mov ecx, esi
call fcn.004778f0
push edx
push eax
mov eax, dword [esp + 0x2c]
xor edx, edx
mov ecx, esi
call fcn.004778f0
add eax, ebp
adc edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x74]
push eax
push dword [edx]
jmp 0x474351
mov edi, dword [esp + 0x1c]
jle 0x47432f
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
cmp edi, eax
jb 0x474331
mov edx, dword [esp + 0x14]
ja 0x4742b6
cmp ebp, edx
jbe 0x474331
mov eax, ebp
mov ecx, edi
shld ecx, eax, 2
shl eax, 2
add ebp, eax
mov eax, edx
adc edi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
shld ecx, eax, 2
shld edi, ebp, 1
shl eax, 2
add ebp, ebp
add edx, eax
mov eax, dword [esp + 0x10]
adc eax, ecx
mov ecx, dword [esp + 0x24]
shld eax, edx, 1
neg ecx
add edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, ebp
mov edx, edi
call fcn.00477910
mov edx, dword [esp + 0x5c]
add al, 0x30
mov ecx, dword [esp + 0x54]
dec esi
and ebp, dword [esp + 0x30]
and edi, dword [esp + 0x34]
mov edx, dword [edx]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x5c]
inc dword [ecx]
dec dword [ebx]
test esi, esi
jg 0x4742a0
mov eax, dword [esp + 0x10]
jmp 0x474331
xor eax, eax
test esi, esi
je 0x47433f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret
push ebx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x34]
push dword [esp + 0x48]
push edi
push ebp
push dword [ecx]
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.004760b0
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x476990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041e5a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.0044996b
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
call fcn.0044996b
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [esi + 0x44], eax
add ecx, 4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x477230
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0xffffffff
je 0x47728a
mov eax, dword [esi + 0x48]
test al, 1
je 0x47728a
test al, 2
je 0x47724a
mov eax, dword [esi]
call dword [eax + 0x34]
push 0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47727a
lea eax, [esi + 0x50]
push eax
call fcn.0041c0a0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
pop ecx
ret 0xc
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc

Function at 0x4775c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x68]
cmp ecx, 0xffffffff
je 0x477669
mov eax, dword [esi + 0x48]
test al, 2
je 0x477669
test al, 8
je 0x477627
push 2
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push ecx
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x47761d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x477619
lea eax, [esi + 0x50]
push eax
call fcn.0041c0a0
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x74], eax
push 0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x477657
lea eax, [esi + 0x50]
push eax
call fcn.0041c0a0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40154c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ecx + 0x40]
push edi
mov edi, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov bh, byte [ecx]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 2]
movzx edx, byte [ecx + 6]
mov bl, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
or ebx, eax
xor eax, eax
mov ah, byte [ecx + 4]
mov al, byte [ecx + 5]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 7]
shl eax, 8
or eax, edx
mov dword [ebp + 8], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x14], 0
je 0x40165a
mov edx, eax
imul edx, edx, 0x9e3779b9
test eax, eax
jle 0x401609
mov dword [ebp + 0x10], eax
mov eax, ebx
shr eax, 5
add eax, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor eax, esi
lea esi, [edx + ebx]
xor eax, esi
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr eax, 5
add eax, dword [ebp - 4]
shl esi, 4
add esi, edi
xor eax, esi
mov esi, dword [ebp + 8]
add esi, edx
xor eax, esi
sub ebx, eax
add edx, 0x61c88647
dec dword [ebp + 0x10]
jne 0x4015c8
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4016a2
movzx edx, byte [esi + 2]
xor eax, eax
mov ah, byte [esi]
push 8
push ecx
push esi
mov al, byte [esi + 1]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 3]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 6]
xor ebx, eax
xor eax, eax
mov ah, byte [esi + 4]
mov al, byte [esi + 5]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 7]
shl eax, 8
or eax, edx
xor dword [ebp + 8], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4016a2
xor ecx, ecx
test eax, eax
jle 0x4016a2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 5
add edx, dword [ebp - 4]
mov esi, eax
shl esi, 4
sub ecx, 0x61c88647
add eax, ecx
add esi, edi
xor edx, esi
xor edx, eax
add ebx, edx
mov eax, ebx
shr eax, 5
add eax, dword [ebp - 8]
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0xc]
xor eax, edx
lea edx, [ecx + ebx]
xor eax, edx
add dword [ebp + 8], eax
dec dword [ebp + 0x10]
jne 0x401663
mov eax, dword [ebp + 0xc]
mov ecx, ebx
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, dword [ebp + 8]
mov edx, ecx
shr edx, 8
mov byte [eax + 6], dl
mov edx, ecx
mov byte [eax + 3], bl
shr ebx, 0x18
pop edi
shr edx, 0x10
mov byte [eax + 7], cl
shr ecx, 0x18
pop esi
mov byte [eax], bl
mov byte [eax + 5], dl
mov byte [eax + 4], cl
pop ebx
leave
ret