joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d60d7d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d616878]
jne 0x6d60d7df
repz ret
jmp fcn.6d60de74

Function at 0x6d60db2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d60db39
pop dword [ebp - 0x28]
mov eax, 0x6d60db39
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xb2ba44a4
add dword [ebp - 0x38], 0x9b9800a7
mov dword [ebp - 0x34], 0x3808e129
sub dword [ebp - 0x34], 0x5d594e4
mov dword [ebp - 0x30], 0x7705a1d3
sub dword [ebp - 0x30], 0x2ab95da5
mov dword [ebp - 0x2c], 0x1b7d592e
add dword [ebp - 0x2c], 0xe482a6d2
lea eax, [ebp - 0x38]
push eax
mov eax, 0x6cf24c7a
sub eax, 0xff915c56
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x54f98e7f
sub dword [ebp - 0x38], 0xe0872529
mov dword [ebp - 0x34], 0x42d2b0da
add dword [ebp - 0x34], 0xfe99b09b
mov dword [ebp - 0x30], 0x9ce4cb25
sub dword [ebp - 0x30], 0x39755eb9
mov dword [ebp - 0x2c], 0xab5ee879
sub dword [ebp - 0x2c], 0xab5ee879
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xd81aa660
add eax, 0x954649c0
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x35953
push 0
call eax
mov ecx, 0xfe5a02f6
add ecx, 0x1a63deb
mov ebx, eax
mov esi, 0x6d619c00
add esi, dword [ebp - 0x28]
mov edx, 0x7f55d9d7
add edx, 0x4dc7e574
mov edi, dword [esi]
sub dword [ebp - 0x14], ecx
xor edi, edx
add dword [ebp - 0x10], 0xc8bc9c2a
mov dword [ebx], edi
add ebx, 0xda2c234
sub ebx, 0xda2c230
add esi, 0x54a4501f
add esi, 0xab5bafe5
loop 0x6d60dc50
add eax, 0x707a0f76
sub eax, 0x7079191f
mov ebx, eax
add eax, 0x219c7771
add eax, 0xde638894
mov ecx, 0xbe2bd79b
sub ecx, 0x50cbd79b
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x46f9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [0x857a00], 0x857a08
mov dword [0x857a04], 0x857a10
call fcn.0046f980
test al, al
jne 0x46fa20
mov eax, dword [0x857a04]
mov eax, dword [eax]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Unsupported_Windows_version
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 8]
mov eax, 2
pop ebx
pop esi
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.004a8420
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004a8a90
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.004a83b0
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4762f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ecx, dword [esp + 8]
xor edx, edx
mov dword [ecx + 0x34], 0
mov byte [ecx + 0x1f], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov byte [ecx + 0x1e], 0
nop
mov eax, edx
mov ebx, edx
and eax, 1
shr ebx, 1
neg eax
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
neg ebx
shr eax, 1
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
shr eax, 1
neg ebx
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov dword [ecx + edx*4 + 0x60], eax
add edx, 1
cmp edx, 0x100
jne 0x476320
pop ebx
ret

Function at 0x478ab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [edi]
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a

Function at 0x478ba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004787d3
push eax
push esi
push dword [ebp + 8]
call fcn.00478788
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
inc ebp
aam 0x88
pop ebp
aam 0x50

Function at 0x478be0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
aam 0x88
pop ebp
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
Function at 0x478ea0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x478e9a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x478eb8
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x478f16
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x478efd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x478f06
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x478f10
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x478ef2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x478e7c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x478f63
dec eax
je 0x478f5a
sub eax, 3
je 0x478f51
mov dword [ebp - 4], 0x40
jmp 0x478f80
mov dword [ebp - 4], 4
jmp 0x478f66
mov dword [ebp - 4], 0x20
jmp 0x478f66
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x478fb2
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x478f32
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004787c3
test al, 0x62
sub ch, dl
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x478fbe
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b8940
Capabilities:
Get common file path

Disassembly:
push edi
push esi
mov esi, eax
push ebx
xor edx, edx
xor ecx, ecx
sub esp, 0x220
mov eax, dword [eax]
mov dword [esi + 4], 0
lea edi, [esp + 0x14]
mov word [eax], dx
mov word [esp + 0x14], cx
mov dword [esp + 4], edi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
mov ebx, eax
mov ecx, esi
mov dword [esp], edi
sub ebx, 1
call fcn.004729e0
sub esp, 4
cmp ebx, 0x103
setbe al
add esp, 0x220
pop ebx
pop esi
pop edi
ret
Function at 0x4a6529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a6480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x4a6558
mov eax, 0xea61
jmp 0x4a65d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4a6568
mov eax, 0xea62
jmp 0x4a65d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004a6480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x4a6595
mov eax, 0xea62
jmp 0x4a65d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4a65ad
mov eax, 0xea65
jmp 0x4a65d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4a65c2
mov eax, 0xea66
jmp 0x4a65d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4a65d2
mov eax, 0xea67
jmp 0x4a65d6
xor eax, eax
jmp 0x4a65d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ead0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424041
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45d640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
call dword [0x426858]
lea ebx, [edi + 0x20]
mov dword [ebp - 4], 0
push 0
mov ecx, ebx
mov dword [edi], vtable.ShakeDialog.0
mov dword [edi + 8], vtable.ShakeDialog.1.0
mov dword [ebp - 0x1c], ebx
call dword [0x4263b4]
push 8
mov byte [ebp - 4], 1
mov dword [ebx], vtable.ShakeWorker.0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.0041cc7d
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push ebx
mov ecx, esi
mov byte [ebp - 4], 2
call dword [0x426334]
mov dword [esi], vtable.QThread.0
mov ecx, ebx
push esi
mov byte [ebp - 4], 1
mov dword [ebx + 8], esi
call dword [0x426340]
mov ecx, dword [ebx + 8]
push 7
call dword [0x42632c]
push edi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov byte [edi + 0x30], 0
call fcn.0040f1f0
mov esi, dword [0x426874]
mov ecx, edi
push 0xb
call esi
push 2
mov ecx, edi
call esi
push 7
mov ecx, edi
call dword [0x426878]
push 0x40812
mov ecx, edi
call dword [0x426860]
push 1
push 0x78
mov ecx, edi
call dword [0x42685c]
push 0xc
mov dword [ebp - 0x14], fcn.0040f060
mov dword [ebp - 0x24], fcn.0041ad40
mov dword [ebp - 0x20], 0
call fcn.0041cc7d
push 0x45cbb8
push 0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push 0
push eax
mov dword [eax], 1
mov dword [eax + 4], 0x402ec0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, dword [0x42633c]
call edi
mov esi, dword [0x4263dc]
lea ecx, [ebp - 0x18]
add esp, 0x28
call esi
push 0x10
mov dword [ebp - 0x24], fcn.0040f0e0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], fcn.0041ad60
call fcn.0041cc7d
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
push 0x45cba0
push 0
mov dword [eax], 1
push 0
push eax
mov dword [eax + 4], 0x40b560
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call edi
add esp, 0x28
lea ecx, [ebp - 0x14]
call esi
push 0x10
mov dword [ebp - 0x24], 0x40f050
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x41ad20
call fcn.0041cc7d
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
push 0x45cba0
push 0
mov dword [eax], 1
push 0
push eax
mov dword [eax + 4], 0x404f40
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call edi
add esp, 0x28
lea ecx, [ebp - 0x14]
call esi
mov ebx, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [eax], 0x84
mov ecx, dword [ebx + 0x1c]
call dword [0x426840]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4149e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push 0
push 0
push 0
push 0
push str.VsyDownload_1.0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0
call dword [0x42696c]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x414b2d
push esi
push edi
push 0
push 0x84000002
push 0
push 0
push dword [ebp + 8]
push ebx
call dword [0x426968]
mov esi, eax
test esi, esi
je 0x414a53
mov edi, dword [0x426964]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000013
push esi
call edi
test eax, eax
jne 0x414a65
mov dword [ebp + 8], eax
push ebx
call dword [0x42695c]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0xc8
jne 0x414a53
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push esi
call edi
test eax, eax
jne 0x414a8b
mov dword [ebp - 4], eax
jmp 0x414a8e
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0041d022
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
mov dword [ebp - 0x14], edi
push ecx
push 0
push edi
call fcn.00421e58
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x414ab3
mov dword [eax], edi
mov ebx, dword [ebp - 0x14]
xor edi, edi
nop dword [eax + eax]
push 0
mov dword [ebp - 0x10], 0
call dword [0x426038]
mov eax, dword [ebp - 4]
mov ecx, 0x400
sub eax, edi
cmp eax, 0x400
cmovae eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [edi + ebx]
push eax
push esi
call dword [0x426960]
mov eax, dword [ebp - 0x10]
add edi, eax
test eax, eax
jne 0x414ac0
push esi
mov esi, dword [0x42695c]
call esi
mov ebx, dword [ebp - 0x18]
push ebx
call esi
cmp dword [ebp + 0xc], 0
jne 0x414b1a
push dword [ebp - 0x14]
call fcn.0041d02b
add esp, 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424f30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45d640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x4162c1
mov byte [ebp - 0x11], 1
test eax, eax
jne 0x4162c5
mov byte [ebp - 0x11], 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
push 8
push 0x20
call dword [0x4262c4]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x4162ee
call dword [0x4262cc]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
shl ebx, 5
add ebx, eax
lea edx, [eax + ecx]
add ebx, ecx
mov eax, dword [edi + 0xc]
add eax, edi
cmp byte [ebp - 0x11], 0
je 0x416399
cmp edx, ebx
je 0x4163ab
nop
mov edi, eax
mov esi, edx
add eax, 0x20
add edx, 0x20
push esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call dword [0x426354]
mov edx, dword [esi + 4]
xor edx, dword [edi + 4]
and edx, 1
xor edx, dword [edi + 4]
mov dword [edi + 4], edx
mov ecx, dword [esi + 4]
xor ecx, edx
and ecx, 2
xor ecx, edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
xor eax, ecx
and eax, 4
xor eax, ecx
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x18]
mov dword [edi + 0x14], ecx
lea ecx, [edi + 0x18]
push eax
call dword [0x426138]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edx, ebx
jne 0x416320
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x4163a9
sub ebx, edx
and ebx, 0xffffffe0
push ebx
push edx
push eax
call fcn.00421e46
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [edi + 8]
xor eax, dword [ecx + 8]
and eax, 0x7fffffff
xor eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
test eax, eax
je 0x4163d8
cmp eax, 0xffffffff
je 0x4163fe
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x4163fe
cmp dword [ebp + 8], 0
je 0x4163f5
cmp byte [ebp - 0x11], 0
jne 0x4163f5
push 8
push 0x20
push dword [esi]
call dword [0x4262c0]
add esp, 0xc
jmp 0x4163fe
push dword [esi]
mov ecx, esi
call fcn.004161f0
mov dword [esi], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d709
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x42606c]
test eax, eax
je 0x41d748
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d748
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d748
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d748
cmp dword [ecx + 0x74], 0xe
jbe 0x41d748
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40596d
pop dword [ebp - 0x4c]
mov eax, 0x40596d
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x1a82ffd2
add dword [ebp - 0x5c], 0x33cf4579
mov dword [ebp - 0x58], 0xf2ed49ce
add dword [ebp - 0x58], 0x3f460277
mov dword [ebp - 0x54], 0x5aee9b29
add dword [ebp - 0x54], 0xf15da905
mov dword [ebp - 0x50], 0x1f3c93b0
sub dword [ebp - 0x50], 0x1f3c93b0
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x2db6b42d
sub eax, 0x2d7643cd
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xa110e2bb
add dword [ebp - 0x5c], 0xd361869b
mov dword [ebp - 0x58], 0x7ce077b5
sub dword [ebp - 0x58], 0x3b741640
mov dword [ebp - 0x54], 0x1d646fce
sub dword [ebp - 0x54], 0xb9f50362
mov dword [ebp - 0x50], 0xd279c754
sub dword [ebp - 0x50], 0xd279c754
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x5f3d18da
sub eax, 0x5efca7da
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x34243
push 0
call eax
mov ecx, 0x433e21b
add ecx, 0xfbcc5b98
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x4c]
mov esi, 0x76d2cbdc
add esi, 0xac6a0ac
mov edi, dword [ebx]
xor dword [ebp - 0xc], 0x8cf63814
sub edi, esi
xor dword [ebp - 0x30], esi
mov dword [edx], edi
xor dword [ebp - 0x18], ebx
add edx, 0xbcda42a9
add edx, 0x4325bd5b
add ebx, 0x9d670a2b
add ebx, 0x6298f5d9
loop 0x405a84
add eax, 0x712e84d6
add eax, 0x8ed264c9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x308f6cf6
add ecx, 0xcfb0930a
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4028b8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028f5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402915
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404458
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402a7c
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.004041e8
test esi, esi
jne 0x402ab2
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.004042d8
jmp 0x402ad0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402990
mov edi, eax
test esi, esi
je 0x402ad0
cmp dword [ebx], 0
je 0x402ad0
dec esi
jmp 0x402ab9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4031bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403254
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x403234
xor eax, eax
push ebp
push 0x40322d
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 0x403270
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 0x403234
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x4b2024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b2024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40406c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b5048], 0
je 0x4040cd
cmp word [0x4b521c], 0xd7b2
jne 0x404095
cmp dword [0x4b5224], 0
jbe 0x404095
mov eax, 0x4b5218
call dword [fcn.004b5234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b2070
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 0x4040f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b2034], 0
jne 0x4040e9
push 0
push 0x4b2068
push 0x4b2070
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret