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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x58]
push eax
call fcn.00431d23
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004321f9
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00432294
xor eax, eax
inc eax
add esp, 0x18
cmp dword [esi + 0x10], eax
mov dword [ebp + 8], eax
jle 0x4323f0
lea eax, [ebp - 0x58]
push eax
call fcn.00431d23
cmp byte [esi + 0x18], 0
pop ecx
je 0x4323cb
xor ecx, ecx
cmp dword [esi + 0x14], ecx
jle 0x4323cb
mov eax, ecx
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + ebx]
xor byte [ecx + edi], al
inc ecx
cmp ecx, dword [esi + 0x14]
jl 0x4323b9
push dword [esi + 0x14]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.004321f9
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00432294
add esp, 0x14
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jl 0x4323a2
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4327e3
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x43454f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
nop
nop
nop
nop
nop
nop
nop
nop
or eax, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x434585
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
dec dword [ebp + 0xc]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5975b0]
inc ecx
cmp dword [ebp + 0xc], 0
jne 0x434566
nop
nop
nop
nop
nop
nop
nop
nop
not eax
pop ebp
ret

Function at 0x436fed
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x526e79
call fcn.004512a8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [esi + 4]
call fcn.0040215e
mov byte [ebp - 4], 2
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x18]
call fcn.00402133
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.0040215e
mov byte [ebp - 4], 5
lea ecx, [esi + 0x24]
call fcn.00402133
mov byte [ebp - 4], 6
lea ecx, [esi + 0x28]
call fcn.00402133
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00402189
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00402189
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x43cbd2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x527fd4
call fcn.004512a8
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], eax
call fcn.00402133
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 8]
call fcn.00402133
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
call fcn.00402133
mov byte [ebp - 4], 2
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edi
call fcn.0043cb80
mov byte [ebp - 4], 3
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x43f159
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
nop
nop
nop
nop
nop
nop
nop
nop
push 0
call fcn.0043dd07
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x43e54a
push 0
push 0
call fcn.00454286
add esp, 0x18
mov dword [esi + 0x30], eax
nop
nop
nop
nop
nop
nop
nop
nop
pop esi
leave
ret
Function at 0x443825
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x529496
call fcn.004512a8
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
call fcn.00433499
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0x10], esi
je 0x443975
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x4438cf
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x5a46c8
call fcn.004436c7
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.004437d5
inc esi
cmp esi, 4
jl 0x4438a5
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x44385b
xor edi, edi
cmp esi, edi
je 0x443973
cmp esi, 3
jge 0x4438fb
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.00451330
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x44395b
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x5a46c8
call fcn.004436c7
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.004437d5
inc edi
cmp edi, ebx
jl 0x443934
push 3
pop edi
cmp esi, edi
jge 0x443973
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.004437d5
dec edi
jne 0x443964
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4b4f30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4b4f49
mov esi, edi
mov edi, eax
jmp 0x4b4f4b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4b4f5b
mov eax, ebx
jmp 0x4b4f65
push eax
push ebx
call fcn.00477c30
add esp, 8
test eax, eax
jne 0x4b4f6d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4b4f89
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4b4f74
cmp eax, dword [esi + 4]
jge 0x4b4fa0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4b4f90
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4b4fc1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4b4fbe
dec eax
test eax, eax
jg 0x4b4fb0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4e3d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
cmp edi, 8
mov esi, ecx
jl 0x4e3da8
push 0x4c
mov eax, 8
call fcn.004e3bc0
sub edi, 8
add esp, 4
cmp edi, 8
jl 0x4e3da8
push 0x41
mov eax, 8
call fcn.004e3bc0
sub edi, 8
add esp, 4
cmp edi, 8
jl 0x4e3da8
push 0x4d
mov eax, 8
call fcn.004e3bc0
sub edi, 8
add esp, 4
cmp edi, 8
jl 0x4e3da8
push 0x45
mov eax, 8
call fcn.004e3bc0
add esp, 4
sub edi, 8
cmp edi, 0x20
jl 0x4e3e02
push ebx
call fcn.004e2320
mov ecx, eax
lea edx, [eax + 1]
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 8], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e3dc0
sub eax, dword [ebp - 8]
test eax, eax
jle 0x4e3e01
jmp 0x4e3dd3
mov ecx, dword [ebp - 4]
cmp edi, 8
jl 0x4e3e01
movsx eax, byte [ebx + ecx]
push eax
mov eax, 8
sub edi, 8
call fcn.004e3bc0
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e3df4
sub eax, edx
cmp ebx, eax
jl 0x4e3dd0
pop ebx
cmp edi, 1
jl 0x4e3e3a
jmp 0x4e3e10
mov ecx, dword [esi + 0xcba8]
push ecx
mov eax, 1
call fcn.004e3bc0
xor edx, edx
add esp, 4
cmp dword [esi + 0x90], edx
sete dl
xor dword [esi + 0xcba8], edx
sub edi, 1
jne 0x4e3e10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e5a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
jle 0x4e5aba
mov edx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
movzx eax, word [edx]
movzx ebx, byte [ecx + edi]
xor ebx, eax
and ebx, 0xff
shr ax, 8
xor ax, word [ebx*4 + 0x55a960]
inc ecx
cmp ecx, esi
mov word [edx], ax
jl 0x4e5a95
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x43b107
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43b135
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43b153
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043b06d
jmp 0x43b153
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43b153
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043b06d
test edi, edi
mov eax, edi
jne 0x43b13d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406224
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x406336
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0x406259
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x406334
lea ecx, [eax - 1]
cmp edi, ecx
je 0x40628e
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0x4062be
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0x4062a0
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0x4062ed
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0x40632b
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0x4062fa
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0x4062cb
inc edi
cmp edi, eax
jl 0x406272
pop esi
pop ebx
pop edi
leave
ret

Function at 0x406a37
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x406a9f
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
jne 0x406a63
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret

Function at 0x406d57
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov eax, 0xce9e3d4a
cmp dword [esp + 8], ecx
jbe 0x406d85
push esi
mov edx, dword [esp + 8]
movsx edx, byte [ecx + edx]
mov esi, eax
shl esi, 5
add edx, esi
mov esi, eax
shr esi, 2
add edx, esi
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x406d65
pop esi
ret
Function at 0x406dcb
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
push 0x6b
pop eax
push 0x65
mov word [ebp - 0x1c], ax
pop eax
push 0x72
mov word [ebp - 0x1a], ax
pop eax
push 0x6e
mov word [ebp - 0x18], ax
pop eax
push 0x65
mov word [ebp - 0x16], ax
pop eax
push 0x6c
mov word [ebp - 0x14], ax
pop eax
push 0x33
mov word [ebp - 0x12], ax
pop eax
push 0x32
mov word [ebp - 0x10], ax
pop eax
push 0x2e
mov word [ebp - 0xe], ax
pop eax
push 0x64
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x6c
pop eax
xor ebx, ebx
mov word [ebp - 8], ax
mov word [ebp - 6], ax
xor eax, eax
mov esi, edi
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x1c]
call fcn.00406d86
test eax, eax
je 0x406e57
mov esi, dword [esi]
cmp dword [esi + 0x18], ebx
je 0x406e5a
cmp esi, edi
jne 0x406e3b
jmp 0x406e5a
mov ebx, dword [esi + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x88
push edi
mov edi, dword [ebp + 0x70]
test edi, edi
jne 0x406ebe
xor eax, eax
jmp 0x406fd3
push ebx
mov eax, 0x5a4d
xor ebx, ebx
push esi
cmp word [edi], ax
jne 0x406fcf
mov eax, dword [edi + 0x3c]
lea eax, [eax + edi + 4]
mov ecx, 0x14c
mov dword [ebp + 0x60], eax
cmp word [eax], cx
jne 0x406fcf
mov esi, dword [eax + 0x74]
test esi, esi
je 0x406fcf
mov ecx, dword [ebp + 0x74]
mov eax, ecx
shr eax, 0x10
add esi, edi
test ax, ax
jne 0x406f0a
movzx eax, cx
sub eax, dword [esi + 0x10]
jmp 0x406f81
test byte [ebp + 0x78], 1
je 0x406f15
mov dword [ebp + 0x64], ecx
jmp 0x406f26
call fcn.00406e61
push eax
push ecx
call fcn.00406d57
pop ecx
pop ecx
mov dword [ebp + 0x64], eax
and dword [ebp + 0x70], ebx
cmp dword [esi + 0x18], ebx
jbe 0x406f58
mov ebx, dword [esi + 0x20]
add ebx, edi
mov ecx, dword [ebx]
add ecx, edi
call fcn.00406e61
push eax
push ecx
call fcn.00406d57
pop ecx
pop ecx
cmp dword [ebp + 0x64], eax
je 0x406f74
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x406f33
xor ebx, ebx
cmp ebx, esi
jb 0x406fcf
mov eax, dword [ebp + 0x60]
mov eax, dword [eax + 0x78]
add eax, esi
cmp ebx, eax
jae 0x406fcf
cmp dword [ebp + 0x7c], 0
jne 0x406f93
xor eax, eax
jmp 0x406fd1
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0x70]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
cmp eax, 0xffffffff
je 0x406f58
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ebx, dword [eax + edi]
add ebx, edi
jmp 0x406f5a
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00406e71
pop ecx
lea eax, [ebp - 0x20]
xor ebx, ebx
call fcn.00406e8a
mov esi, eax
cmp esi, ebx
je 0x406fcf
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov byte [esi], bl
call dword [ebp + 0x7c]
cmp eax, ebx
je 0x406fcf
push dword [ebp + 0x7c]
inc esi
push ebx
push esi
push eax
call fcn.00406ea4
add esp, 0x10
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
pop edi
add ebp, 0x68
leave
ret
Function at 0x40e429
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov esi, ecx
and esi, 3
mov eax, esi
neg eax
and eax, 3
push edi
mov edi, edx
je 0x40e48f
cmp eax, dword [ebp + 0x10]
jg 0x40e48f
sub dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
movzx eax, byte [edi]
dec dword [ebp - 4]
shl eax, 0x18
shr ecx, 8
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x40e489
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
cmp dword [ebp - 4], 0
jne 0x40e455
mov eax, dword [ebp + 0x10]
cdq
and edx, 3
add eax, edx
and eax, 0xfffffffc
lea edx, [eax + edi]
mov dword [ebp - 4], edx
cmp edi, edx
jae 0x40e4cc
mov edx, dword [edi]
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor ebx, edx
rol ebx, 0xd
imul ebx, ebx, 5
add edi, 4
add ebx, 0xe6546b64
cmp edi, dword [ebp - 4]
jb 0x40e4a5
mov edx, dword [ebp + 0x10]
sub edx, eax
je 0x40e509
movzx eax, byte [edi]
shl eax, 0x18
shr ecx, 8
dec edx
or ecx, eax
inc edi
inc esi
cmp esi, 4
jne 0x40e505
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul ecx, ecx, 0x1b873593
xor ebx, ecx
rol ebx, 0xd
imul ebx, ebx, 5
add ebx, 0xe6546b64
xor esi, esi
test edx, edx
jne 0x40e4d3
mov eax, dword [ebp + 8]
and ecx, 0xffffff00
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
or ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret

Function at 0x40e525
Capabilities:
Hash data using murmur3

Disassembly:
mov edx, eax
and edx, 3
push esi
mov esi, ecx
je 0x40e545
push 4
pop ecx
sub ecx, edx
shl ecx, 3
shr eax, cl
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, dword [esp + 8]
mov eax, esi
shr eax, 0x10
xor eax, esi
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret
Function at 0x402b18
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.00404230
test esi, esi
jne 0x402b4e
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.00404320
jmp 0x402b6c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a2c
mov edi, eax
test esi, esi
je 0x402b6c
cmp dword [ebx], 0
je 0x402b6c
dec esi
jmp 0x402b55
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40328c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x56d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403324
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403304
xor eax, eax
push ebp
push 0x4032fd
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 0x403340
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 0x403304
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x56d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x56d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404030
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57204c], 0
je 0x404091
cmp word [0x572220], 0xd7b2
jne 0x404059
cmp dword [0x572228], 0
jbe 0x404059
mov eax, 0x57221c
call dword [0x572238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x56d070
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 0x4040b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x56d034], 0
jne 0x4040ad
push 0
push 0x56d068
push 0x56d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x57204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041ac
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ad0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bdc
xor eax, eax
push ebp
push 0x405bd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405918
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bba
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bdc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405cf6
cmp byte [ebp - 0xd], 0
jne 0x405c23
cmp byte [ebp - 0x12], 0
je 0x405cf6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c3c
dec ebx
cmp byte [ebx], 0x2e
je 0x405c4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cf6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c88
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cf6
cmp byte [ebp - 0xd], 0
je 0x405cf6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cf6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret