joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4399a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465e93
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.00459d04
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
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], method.CEdit.virtual_0
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 [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045f39a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004608b6
test eax, eax
je 0x439abc
mov ecx, dword [esp + 0x3c]
call fcn.0045f3c7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x439a80
push edi
mov ecx, esi
call fcn.0045ca2b
mov ecx, esi
call fcn.00439c20
cmp dword [esp + 0x38], 1
jne 0x439ab5
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.0045cb66
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 0x43c4e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c513
push esi
call fcn.0043f5d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c50c
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 0x43c599
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c582
mov eax, dword [esi + 8]
test eax, eax
je 0x43c537
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 0x43c57e
cmp eax, 2
je 0x43c582
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c52a
cmp eax, 3
je 0x43c55d
cmp eax, 1
jne 0x43c52a
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 0x43c52a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c52a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c5c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c5a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c5c0
add esp, 4
pop esi
ret

Function at 0x45aafa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45ab32
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00458bae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00458b86
jmp 0x45ab3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x631750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0062c650
test eax, eax
jne 0x6317bc
push ebp
push 0x507f6c
mov ecx, edi
call fcn.006309d0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0062c1d0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00622170
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0062c800
add esp, 4
test eax, eax
je 0x63185f
add esi, 0x18
push esi
call fcn.0066bf10
add esi, eax
push esi
call fcn.0066bf10
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x631b62
jmp dword [ecx*4 + 0x41fba0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00630b10
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.0066bf10
add esi, eax
push esi
call fcn.0066bf10
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x6318b0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x484538]
test eax, eax
je 0x6318b0
mov eax, 1
jmp 0x6318b2
xor eax, eax
cmp ebx, 8
jge 0x631b17
cmp ebx, 7
ja 0x631b62
jmp dword [ebx*4 + 0x41fbb0]
test eax, eax
jne 0x631b2a
mov ecx, dword [esp + 0x10]
push eax
push 0x507f58
call fcn.006309d0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00632070
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4f07e0
call fcn.00622370
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x63a650
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x51fc28]
xor edx, edx
cmp eax, edx
jne 0x63a676
xor eax, eax
mov byte [eax + 0x51fb28], al
inc eax
cmp eax, 0x100
jl 0x63a65e
mov dword [0x51fc28], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x51fb28
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x63a707
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 0x63a6da
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 0x63a6a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x63a780
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 0x63a7d3
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 0x63a7ba
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 0x63ea70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x63ec91
cmp eax, 8
jg 0x63ec91
cmp dword [esp + 0x8c], 2
jl 0x63ec91
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x63ec91
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x63ec91
mov eax, dword [esp + 0x80]
test eax, eax
je 0x63eaf7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x63ec7a
mov ebp, dword [0x4844c8]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x63eb29
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x63ec61
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x63eb49
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
push ebp
call 0x781147
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x63eb88
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4844b0]
lea ecx, [esp + 0x28]
push ecx
call 0x7fbf5d
xchg edx, eax
test eax, eax
jne 0x63ec48
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0063e080
cmp eax, 1
jne 0x63ec72
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0063e930
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x63eb3d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x63ec7a
jmp 0x63eb14
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0063dc80
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x641210
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x6413a8
cmp ebp, ebx
jle 0x6413a8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x64126e
dec eax
or eax, 0xfffffff8
inc eax
je 0x641275
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x641284
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x64128b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00684be5
add esp, 4
cmp eax, ebx
je 0x6412ac
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00684be5
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x64139e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x641385
mov al, byte [edx]
cmp al, 0xc0
jbe 0x641371
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x641366
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x641374
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x641374
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x641310
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x641301
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x659770
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482813
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.006864a2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4f5280
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], 0x4f3978
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
push edx
call 0x7e7cc7
push eax
mov ecx, edi
call fcn.0068bc11
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0068d169
test eax, eax
je 0x65988c
mov ecx, dword [esp + 0x3c]
call fcn.0068bc3e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x484544]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x659850
push edi
mov ecx, esi
call fcn.00689201
mov ecx, esi
call fcn.006599f0
cmp dword [esp + 0x38], 1
jne 0x659885
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.0068936b
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 0x65c2b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x65c2e3
push esi
call fcn.0065f3a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x65c2dc
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 0x65c369
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x65c352
mov eax, dword [esi + 8]
test eax, eax
je 0x65c307
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 0x65c34e
cmp eax, 2
je 0x65c352
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x65c2fa
cmp eax, 3
je 0x65c32d
cmp eax, 1
jne 0x65c2fa
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 0x65c2fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x65c2fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0065c390
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x65c378
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0065c390
add esp, 4
pop esi
ret
Function at 0x6e2ce1
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x18], 0x10076741
call 0x6c5938
mov dword [0xa019e49], eax
mov word [eax - 1], cs
cmp byte [edx - 0x48], 0x76
mov ah, 0x62
adc dl, cl
or byte [edx + 0x36488ef0], dh
je 0x6e2d44
jl 0x6e2d26
fcom dword [edx - 0x553fedb4]
insb byte es:[edi], dx
push es
and dword [ecx - 0x4b], ecx
imul ecx, dword [ecx + 0x2612ae28], 0x4390fec0
mov ch, 0x69
mov dword [eax], ebp
scasb al, byte es:[edi]
adc ah, byte [esi]
sar dh, 0x90
inc ebx
sub ecx, dword [eax + 0x52ee60b8]
xor al, 0x51
dec ecx
cdq
sbb esi, dword [eax - 0x5d]
mul byte [ebx + ecx*8 + 0x12]
mov dh, 0x70
lahf
sti
push esi
or dh, al
xor al, 0xf0
pop ds
inc esp
add esp, dword [ebx - 0x65101ff]
mov bx, 0x6ad4
or al, 0x5c
push 0xc
pop esp
cli
adc eax, 0x7cf50174
cwde
cli
sub eax, 0x210d5ed5
sbb dl, al
pop ecx
push edx
cmp esp, dword [esi - 0xfb41e50]
mov ebp, 0x17f357c0
test eax, 0x3aeb210d
sti
cmc
setno ch
cdq
jae 0x6e2d12
sub eax, 0x116fcfe9
inc eax
pushal
loop 0x6e2dea
mov edi, 0x36987849
lodsb al, byte [esi]
sub al, 0xc6
sbb eax, dword [edx + eax*4 - 0x14]
int 0x23
lodsd eax, dword [esi]
jnp 0x6e2d2b
xchg ebx, eax
call 0xdd6b58
cmp ah, dh
test al, 8
xchg ebx, eax
mov edi, 0xd1671779
test byte [eax - 0x58], bl
add dl, byte [edx - 0x38]
out dx, al
fcom qword [edx + esi*2 + 0x2ab060c2]
jp 0x6e2db2
mov ebx, 0x7e2e3a87
adc bh, bl
xchg ecx, eax
daa
mov esp, 0x7323695f
cmp eax, 0x2109cf0
mov word [esi + 0x488c0b9f], es
mov byte [0xfa2066b8], al
test al, 0x5e
pushfd
dec edx
clc
ret 0xa200
xor ch, dl
cwde
mov bl, byte [bp + di + 0xa]
cmp dl, byte [eax + 0x5cb28a26]
mov ecx, 0x43b4f0cf
add ebx, edx
lea eax, [edi + 0x76]
popal
and al, 0x9b
add eax, 0xe3c77c2a
rol al, 0xa8
push edx
add eax, 0x1c742e5
mov eax, dword [0xa5c50663]
adc byte [ecx + 0x6b], dh
das
dec edi
cmp bh, byte [esi]
das
and eax, esi
xchg dl, dl
rcl dword [edx + 0x65], cl
mov byte [edi], bh
pop es
imul edi, dword [edi + 0x45], 0x47
sub edi, esp
push eax
pop edx
sbb byte [edi - 0x2e], al
mov dh, bl
std
rol dword [edx], cl
and bl, byte [eax + 0x44756d0e]
jns 0x6e2ea0
push cs
invalid
enter 0xffffffffffffed97, 0x47
xchg ebx, eax
setl ah
outsb dx, byte [esi]
mov esi, 0x939e6b50
mov cs, word [edx - 0x51]
pop ebx
add eax, 0x4a9cf680
or al, 0x4a
hlt

Function at 0x40f9cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004140da
call fcn.00408835
cmp eax, esi
pop esi
jne 0x40f9e9
mov ecx, 0x575da8
jmp fcn.0041e0c1
ret
Function at 0x40334c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405288
test esi, esi
jne 0x403382
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405378
jmp 0x4033a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403250
mov edi, eax
test esi, esi
je 0x4033a0
cmp dword [ebx], 0
je 0x4033a0
dec esi
jmp 0x403389
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b0008], 0x8088405
inc edx
mov dword [ebx + 0x4b0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404218
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041f8
xor eax, eax
push ebp
push 0x4041f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404234
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4b0024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405034
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53804c], 0
je 0x405095
cmp word [0x538220], 0xd7b2
jne 0x40505d
cmp dword [0x538228], 0
jbe 0x40505d
mov eax, 0x53821c
call dword [0x538238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4050bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b0030], 0
jne 0x4050b1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40520c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b0038], 0
je 0x405232
mov edx, esi
mov eax, ebx
call dword [0x4b0038]
jmp 0x405241
mov eax, 8
call fcn.00402f60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x53804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051d4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc