joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d0e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
cmp dword [edi + 0x7c], 0x10
jb 0x405cb6
mov eax, dword [edi + 0x68]
push eax
call fcn.004205f0
add esp, 4
xor ebx, ebx
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], ebx
lea ecx, [edi + 0x64]
mov byte [edi + 0x68], bl
call fcn.00401380
mov byte [ebp - 4], 1
cmp dword [edi + 0x48], 0x10
jb 0x405ce3
mov eax, dword [edi + 0x34]
push eax
call fcn.004205f0
add esp, 4
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], ebx
lea ecx, [edi + 0x30]
mov byte [edi + 0x34], bl
call fcn.00401380
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004069b0
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00401380
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.00406920
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4076e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x407740
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x130], 0x128
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407772
test dl, dl
je 0x40776e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407772
add eax, 2
add ecx, 2
test dl, dl
jne 0x407752
xor eax, eax
jmp 0x407777
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4077a2
lea ecx, [ebp - 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407740
mov eax, dword [ebp - 0x134]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop esi
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
Function at 0x40bb00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
or esi, 0xffffffff
cmp dword [ebp + 8], 0
push edi
mov byte [ebp - 0x135], 1
jne 0x40bb39
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x134]
push ecx
push eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40bbe6
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bba0
test dl, dl
je 0x40bb9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bba0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bb80
xor eax, eax
jmp 0x40bba5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bbc5
mov eax, dword [ebp - 0x12c]
push eax
push 1
push 0x1fffff
mov esi, eax
call edi
push 0
push eax
call ebx
cmp eax, 1
jne 0x40bbdf
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40bb75
jmp 0x40bbe6
mov byte [ebp - 0x135], 0
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
cmp esi, 0xffffffff
sete al
pop edi
dec al
and al, byte [ebp - 0x135]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
Function at 0x40e9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452179
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46a524]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
cmp dword [ecx + 0x44], esi
je 0x40ec12
cmp byte [ecx + 0x49], 0
je 0x40ec12
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40ebfa
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.0040e150
mov dword [esp + 0x80], esi
lea esp, [esp]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00406880
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x88], 1
call fcn.00406880
mov edi, eax
mov byte [esp + 0x80], 2
call fcn.0040f210
mov ecx, dword [esp + 0x64]
mov esi, edi
mov ebx, eax
mov dword [esp + 0x18], ecx
call fcn.0040f210
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
add esi, ebx
push esi
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.004050a0
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 0
call fcn.004050a0
mov eax, esi
sub eax, 0
je 0x40eb22
dec eax
je 0x40eb26
sub eax, 2
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
jne 0x40ebf5
jmp 0x40ec0d
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00406880
mov esi, eax
mov byte [esp + 0x80], 3
call fcn.0040f210
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub edi, eax
mov byte [esp + 0x80], 0
call fcn.004050a0
test edi, edi
je 0x40eb9e
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00406880
mov byte [esp + 0x80], 4
or dword [esp + 0x10], 1
mov esi, eax
call fcn.0040f210
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x54]
push ecx
push edi
push 1
push eax
call fcn.004263f0
add esp, 0x10
cmp edi, eax
je 0x40eb9e
mov bl, 1
jmp 0x40eba0
xor bl, bl
mov dword [esp + 0x80], 0
test byte [esp + 0x10], 1
je 0x40ebc0
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.004050a0
test bl, bl
jne 0x40ebe6
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x49], bl
je 0x40ebfe
test edi, edi
jne 0x40ea70
push edi
push 8
lea ecx, [esp + 0x58]
call fcn.0040e200
jmp 0x40ea70
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00401210
xor al, al
jmp 0x40ec14
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00401210
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041fd40
mov esp, ebp
pop ebp
ret
Function at 0x40efe0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041f5a0
push 0x18
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.0041ec20
push eax
push 4
call fcn.0041eb50
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40f06d
call fcn.0041f080
mov dword [edi], eax
call fcn.0041ee90
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041e6d0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f063
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041e710
jmp 0x40f06f
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4180e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ff9
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041acb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0041ae10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.00402430
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x64
call fcn.00402430
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0x84
push eax
call fcn.004180a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00428030
mov esp, ebp
pop ebp
ret

Function at 0x41fd40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a524]
jne 0x41fd4a
repz ret
jmp fcn.0042d6c0
Function at 0x420a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420a68
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00420be0
add esp, 0x14
cmp eax, 1
jne 0x420a68
int3
cmp dword [ebp - 8], 0
jne 0x420aa9
call fcn.0042d230
mov dword [eax], 0
call fcn.0042d200
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.00420820
add esp, 0x14
mov eax, 0x16
jmp 0x420b81
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x420ad9
push 0x457090
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00420be0
add esp, 0x14
cmp eax, 1
jne 0x420ad9
int3
cmp dword [ebp - 0xc], 0
jne 0x420b17
call fcn.0042d230
mov dword [eax], 0
call fcn.0042d200
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push 0x457090
call fcn.00420820
add esp, 0x14
mov eax, 0x16
jmp 0x420b81
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x420b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d150
add esp, 4
call fcn.0042d200
mov eax, dword [eax]
jmp 0x420b81
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x420b4e
xor eax, eax
jmp 0x420b81
mov eax, dword [ebp - 4]
and eax, 1
je 0x420b7f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x420b7f
call fcn.0042d230
mov dword [eax], 5
call fcn.0042d200
mov dword [eax], 0xd
call fcn.0042d200
mov eax, dword [eax]
jmp 0x420b81
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x420b90
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x420baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x420bb6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x420bcd
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042d150
add esp, 4
or eax, 0xffffffff
jmp 0x420bcf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006d36d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rcr byte [ebp + 0xd], 0xa4
lea eax, [ebp - 0x58]
push eax
call fcn.1006d0d9
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1006d08e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1006d3b7
push es
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1006d0c9
jp 0x1006d3b0
invalid
Function at 0x1006f290
Capabilities:
Access peb ldr_data

Disassembly:
push esp
call fcn.1006d0c9
movsb byte es:[edi], byte [esi]
invalid
push eax
call fcn.1006d0c9
inc ecx
sbb al, 0xec
sbb cl, byte [ebx + 0x3c478bf8]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1006d0c9
pushfd
jno 0x1006f26e
ret 0x8b49
Function at 0x40f8d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x40f8c8
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40f8c2
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40f8b3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
pop eax
pop eax
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040f66e
pop es
movsd dword es:[edi], dword fs:[esi]
jecxz 0x40f8a4
inc ebp
test al, 0x50
call fcn.0040f67e
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040f633
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40f95c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040f66e
mov cl, 0xbb
Function at 0x41056f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040f64c
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040f67e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f633
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040f66e
xchg esp, eax
xchg esp, eax
cmp dword [esi + 0x10468], ebp
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x302c870
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x302c887
push 0x57
call fcn.0306dbe7
jmp 0x302c8e4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x302c8aa
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x302c8e2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x302c8d7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x302c8d7
mov eax, dword [ebp - 4]
jmp 0x302c8e4
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x302c8a1
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3036370
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3036396
cmp dword [ebp + 0x18], 0
je 0x303638a
cmp dword [ebp + 0x1c], 0
jne 0x3036396
push 0x57
call fcn.0306dbe7
jmp 0x30364e5
mov eax, dword [ebp + 8]
push eax
call fcn.0306dbe7
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x30363b4
push 6
call fcn.0306dbe7
jmp 0x30364e5
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0306dbe7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x30363dc
push 0x7e
call fcn.0306dbe7
jmp 0x30364e5
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x303649b
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x30fa624]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303641e
push 0x57
call fcn.0306dbe7
jmp 0x30364e5
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x3036449
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x57
call fcn.0306dbe7
jmp 0x30364e5
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0306dbe7
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x303648f
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x303648f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
je 0x303648f
mov ecx, dword [ebp - 4]
push ecx
call fcn.0306dbe7
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x30364c1
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0306dbe7
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30364c1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x30364d0
push 0x57
call fcn.0306dbe7
jmp 0x30364e5
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0306dbe7
mov esp, ebp
pop ebp
ret 0x18
Function at 0x306dbe7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x306dbf6
pop dword [ebp - 0x2c]
mov eax, 0x262e14e7
add eax, 0xdcd8c70f
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x71519
push 0
mov eax, 0x557f7d6
sub eax, 0x257e70e
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x48bc
xor edi, edi
add edi, eax
mov esi, 0x514b8097
add esi, 0xb1c68769
add esi, dword [ebp - 0x2c]
mov ebx, 0x8fb4ca15
sub ebx, 0x2d7d0d52
xor dword [ebp - 0x24], edx
mov edx, dword [esi]
add dword [ebp - 0x1c], 0xd3072916
sub edx, ebx
sub dword [ebp - 8], esi
mov dword [edi], edx
mov dword [ebp - 0x28], 0xdd4a54de
add edi, 0xb6ebd1f4
sub edi, 0xb6ebd1f0
add esi, 4
loop 0x306dc51
add eax, 0x115c3
mov ebx, eax
add eax, 0x51306455
add eax, 0xaecf9bb0
mov ecx, 0x259f741d
add ecx, 0xdd608be3
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4029f4
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.004040c0
test esi, esi
jne 0x402a2a
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.004041b0
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4031e8
Capabilities:
Query or enumerate registry value

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

Function at 0x403f44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x481048], 0
je 0x403fa5
cmp word [0x48121c], 0xd7b2
jne 0x403f6d
cmp dword [0x481224], 0
jbe 0x403f6d
mov eax, 0x481218
call dword [0x481234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d070
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 0x403fcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d034], 0
jne 0x403fc1
push 0
push 0x47d068
push 0x47d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret