joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409588
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4095dd
push dword [esp + 0x10]
push 0x409507
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4095d5
cmp byte [esi + 0x10], 0
je 0x4095d5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4095b1
jmp 0x409636
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40962f
cmp byte [esi + 0x11], 0
je 0x40960b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409622
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x418144
call 0x40e1b2
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4095ea
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40973a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x41872c]
call fcn.0040d968
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40983a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x409790
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x409788
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4097d0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409812
push 0x22
pop edx
cmp cx, dx
je 0x4097c2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097b2
xor ecx, ecx
cmp word [eax], cx
je 0x409812
mov ecx, eax
add eax, 2
jmp 0x409814
test dx, dx
je 0x40981a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4097c2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409808
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409812
cmp cx, dx
je 0x409805
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097f5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4097da
jmp 0x4097c2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40981c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409825
test edi, edi
jne 0x409842
test edx, edx
je 0x40982a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40977e
test edi, edi
jne 0x409853
mov eax, ebx
jmp 0x409857
test esi, esi
je 0x409853
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409857
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40ae39
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40ae62
test byte [esp + 8], 2
je 0x40ae56
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40ae64
xor eax, eax
ret 8

Function at 0x40cef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403203
pop dword [ebp - 0x1c]
mov eax, 0x57234c3b
sub eax, 0x56e31a38
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x5e8d66d8
sub dword [ebp - 0x2c], 0x103b218d
mov dword [ebp - 0x28], 0x43486a97
sub dword [ebp - 0x28], 0x11151e52
mov dword [ebp - 0x24], 0x6dfbebdc
sub dword [ebp - 0x24], 0x21afa7ae
mov dword [ebp - 0x20], 0xcd7e5490
sub dword [ebp - 0x20], 0xcd7e5490
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x5dfa4e76
sub eax, 0x5db9de12
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x7fc09109
add dword [ebp - 0x2c], 0xf4b1d84d
mov dword [ebp - 0x28], 0x1d866b70
add dword [ebp - 0x28], 0x23e5f605
mov dword [ebp - 0x24], 0xff584509
sub dword [ebp - 0x24], 0x9be8d89d
mov dword [ebp - 0x20], 0x54c5b7b3
sub dword [ebp - 0x20], 0x54c5b7b3
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37ddd
push 0
call eax
mov ecx, 0x4d17
xor ebx, ebx
add ebx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x1c]
mov edx, 0xf4055366
add edx, 0x417791f9
xor dword [ebp - 0x14], 0x7b61ec0a
mov esi, dword [edi]
add dword [ebp - 4], eax
xor esi, edx
mov dword [ebx], esi
add ebx, 0x9a5312e7
add ebx, 0x65aced1d
add edi, 0x73f43aa4
sub edi, 0x73f43aa0
loop 0x403316
add eax, 0xb39bdaa1
sub eax, 0xb39ab372
mov ebx, eax
add eax, 5
mov ecx, 0x257e5457
sub ecx, 0x253e5457
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402a84
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x402abf
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x402aa6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x402ab7
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x402ac1
inc edi
add eax, 0x28
cmp edi, esi
jb 0x402a9c
xor eax, eax
pop edi
pop esi
ret

Function at 0x404c98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x404caa
xor eax, eax
jmp 0x404cf1
and dword [edi], 0
mov ecx, 0x400000
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push 0
push eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x404cf5
test ecx, ecx
je 0x404cee
mov ecx, 0x400000
test esi, esi
jne 0x404cb6
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x404d79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x404d8b
xor eax, eax
jmp 0x404dd2
and dword [edi], 0
mov ecx, 0x400000
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push 0
push eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x404dd6
test ecx, ecx
je 0x404dcf
mov ecx, 0x400000
test esi, esi
jne 0x404d97
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x100028f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002951
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002912
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x40ab01
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041a710
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40ab1f
xor al, al
jmp 0x40aca9
push ebx
push edi
push esi
call fcn.0040a596
push esi
call fcn.0041a3cb
pop ecx
push esi
mov ebx, eax
call fcn.0040aa3d
test al, al
je 0x40abc9
push esi
call fcn.0040a596
test al, al
je 0x40ab76
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40aca5
mov edi, dword [ebp + 0xc]
push 4
push 0x4276e4
push edi
call fcn.0041c5bf
push esi
add edi, 8
push edi
call fcn.0041a413
add esp, 0x14
jmp 0x40aca1
cmp word [esi], 0x5c
jne 0x40aca5
add esi, 2
cmp word [esi], 0x5c
jne 0x40aca5
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40aca5
mov edi, dword [ebp + 0xc]
push 4
push 0x4276e4
push edi
call fcn.0041c5bf
lea eax, [edi + 8]
push 0x4276dc
push eax
call fcn.0041a413
push esi
add edi, 0xe
push edi
call fcn.0041a413
add esp, 0x1c
jmp 0x40aca1
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40aca5
cmp eax, edi
ja 0x40aca5
movzx eax, word [esi]
push eax
call fcn.0040a356
test al, al
je 0x40ac36
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40aca5
mov edi, dword [ebp + 0xc]
push 4
push 0x4276e4
push edi
call fcn.0041c5bf
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041c5bf
push esi
add edi, 0xc
push edi
call fcn.0041a413
add esp, 0x20
jmp 0x40aca1
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a37b
lea eax, [ebp - 0x1000]
push eax
call fcn.0041a3cb
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40aca5
mov edi, dword [ebp + 0xc]
push 4
push 0x4276e4
push edi
call fcn.0041c5bf
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041a413
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40ac97
movzx eax, word [esi + 2]
push eax
call fcn.0040a356
test al, al
je 0x40ac97
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.00410da1
mov al, 1
jmp 0x40aca7
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x41a141
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x41a150
pop dword [ebp - 0x4c]
mov eax, 0x73ad1682
add eax, 0x8c948ace
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3d914
push 0
mov eax, 0x9ad8413e
sub eax, 0x9a95ef26
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x7138f2e
add ecx, 0xf8ecb7f9
xor esi, esi
add esi, eax
mov edx, 0xb6543bf5
sub edx, 0xb610e7f5
add edx, dword [ebp - 0x4c]
mov edi, 0xf39837b2
add dword [ebp - 0xc], 0xe354d254
mov ebx, dword [edx]
xor dword [ebp - 0x28], esi
sub ebx, edi
sub dword [ebp - 0x24], eax
mov dword [esi], ebx
mov dword [ebp - 0xc], 0x5be5a42c
add esi, 4
add edx, 0x3c9c763a
sub edx, 0x3c9c7636
loop 0x41a1ab
add eax, 0x10f6f
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4018c0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c8a30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x24], 0x10
lea eax, [ebx + 0x10]
jb 0x4018db
mov eax, dword [eax]
push esi
push edi
push eax
mov eax, dword [ebx + 4]
push 0x2712
push eax
call fcn.005287d0
add esp, 0xc
mov edi, 0x5f
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_Phone_OS_7.5__Trident_5.0__IEMobile_9.0__HTC__Titan_
lea esi, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00401c00
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x401923
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 4]
push eax
push 0x2722
push ecx
call fcn.005287d0
mov edx, dword [ebx + 4]
push 5
push 0x44
push edx
call fcn.005287d0
mov eax, dword [ebx + 4]
push 1
push 0x34
push eax
call fcn.005287d0
mov ecx, dword [ebx + 4]
push 1
push 0x63
push ecx
call fcn.005287d0
mov edx, dword [ebx + 4]
push 0
push 0x2f
push edx
call fcn.005287d0
mov eax, dword [ebx + 4]
push 0x401ac0
push 0x4e2b
push eax
call fcn.005287d0
mov ecx, dword [ebx + 4]
add esp, 0x48
push ebx
push 0x2711
push ecx
call fcn.005287d0
mov edx, dword [ebx + 4]
push 0
push 0x40
push edx
call fcn.005287d0
mov eax, dword [ebx + 4]
push 0
push 0x51
push eax
call fcn.005287d0
add esp, 0x24
cmp dword [ebp - 0xc], esi
pop edi
pop esi
jb 0x4019bb
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040f0dc
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d23d
mov esp, ebp
pop ebp
ret

Function at 0x404710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
push str.D___Vtfst__Qvcmjd__nbdgff_ebu
call fcn.00561184
mov eax, str.e1:egik7v5e65kk653
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404731
sub eax, edx
push 0x5a520c
push str.D___Vtfst__Qvcmjd__nbdgff_ebu
mov dword [ebp - 8], eax
call fcn.0050dc1e
push 0x5a4a50
push str.D___Vtfst__Qvcmjd__ljohtpgu_ebu
mov esi, eax
call fcn.0050dc1e
push esi
mov ebx, eax
call fcn.0050ee61
add esp, 0x14
test eax, eax
jne 0x4047b9
lea esp, [esp]
push esi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0050f0fb
push esi
call fcn.0050ee61
add esp, 0x14
test eax, eax
jne 0x4047ac
mov eax, edi
cdq
idiv dword [ebp - 8]
push ebx
push 1
push 1
mov cl, byte [edx + str.e1:egik7v5e65kk653]
xor byte [ebp - 1], cl
lea edx, [ebp - 1]
push edx
call fcn.0050dd8c
add esp, 0x10
inc edi
push esi
call fcn.0050ee61
add esp, 4
test eax, eax
je 0x404770
push esi
call fcn.0050daee
push ebx
call fcn.0050daee
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5c8a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040ec60
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x40483d
call fcn.0040ed90
test eax, eax
je 0x404850
cmp dword [ebx], 1
je 0x40481e
mov dword [0x5d0eac], 0x80000
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d23d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
call fcn.0040ec00
mov dword [0x5d0eac], eax
cmp esi, edi
je 0x404834
call fcn.0040ed40
push ebx
call fcn.0040f0dc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d23d
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x10], edi
cmp dword [ebx], 1
je 0x40488a
mov edi, ebx
mov dword [0x5d0eac], 0x80000
call fcn.0040ee00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d23d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
or edx, 0xffffffff
cmp dword [ecx + 4], edx
jg 0x40489e
mov ecx, 0x10000
jmp 0x4048e1
cmp dword [esi + 4], edx
je 0x4048af
mov edi, ecx
call fcn.0040dfa0
xor edi, edi
or edx, 0xffffffff
mov eax, dword [esi]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
xor ecx, ecx
mov dword [0x5d0eac], ecx
cmp ecx, edi
je 0x404905
mov edi, ebx
call fcn.0040ee00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d23d
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x13c], eax
cmp eax, edi
jle 0x404983
jmp 0x404920
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x10], edi
cmp dword [ebx], 1
je 0x404941
mov dword [0x5d0eac], 0x80000
jmp 0x404955
mov ecx, dword [ebx + 4]
push esi
lea edx, [ebp - 0x138]
call fcn.0040e190
mov dword [0x5d0eac], eax
cmp dword [ebx], 1
je 0x404966
mov dword [0x5d0eac], 0x80000
jmp 0x40497a
mov ecx, dword [ebx + 4]
push esi
lea edx, [ebp - 0x134]
call fcn.0040e8c0
mov dword [0x5d0eac], eax
inc esi
cmp esi, dword [ebp - 0x13c]
jl 0x404920
cmp dword [ebx], 1
je 0x404994
mov dword [0x5d0eac], 0x80000
jmp 0x4049b3
mov esi, dword [ebx + 4]
call fcn.0040ec00
mov dword [0x5d0eac], eax
cmp esi, edi
je 0x4049aa
call fcn.0040ed40
push ebx
call fcn.0040f0dc
add esp, 4
push str.D___Vtfst__Qvcmjd__ljohtpgu_ebu
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050d23d
mov esp, ebp
pop ebp
ret
Function at 0x406770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40678b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4067c2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4067be
jmp 0x4067b0
cmp esi, eax
jae 0x4067c2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4067b0
cmp esi, eax
jb 0x4067c9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.0040fafb
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
push 0
call fcn.0050e130
add esp, 4
mov dword [esp + 0x10], eax
add eax, 0x93a80
mov dword [esp + 0x14], edx
adc edx, 0
lea ecx, [esp + 8]
mov dword [esp + 0xc], edx
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0xbc]
mov dword [esp + 0x10], eax
call fcn.0041fff7
mov eax, dword [esi + 0x150]
push str.8:00_9:00
push 0
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x150]
push str.9:00_10:00
push 1
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x150]
push str.10:00_11:00
push 2
push 0x14a
push edx
call edi
mov eax, dword [esi + 0x150]
push str.11:00_12:00
push 3
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x150]
push str.12:00_13:00
push 4
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x150]
push str.13:00_14:00
push 5
push 0x14a
push edx
call edi
mov eax, dword [esi + 0x150]
push str.14:00_15:00
push 6
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x150]
push str.15:00_16:00
push 7
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x150]
push str.16:00_17:00
push 8
push 0x14a
push edx
call edi
mov eax, dword [esi + 0x150]
push str.17:00_18:00
push 9
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x150]
push str.18:00_19:00
push 0xa
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x150]
push str.19:00_20:00
push 0xb
push 0x14a
push edx
call edi
mov eax, dword [esi + 0x150]
push str.20:00_21:00
push 0xc
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x150]
push str.21:00_22:00
push 0xd
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x150]
push str.8:00_9:00
push 0
push 0x14d
push edx
call edi
mov eax, dword [esi + 0x1c4]
push 0x5a5100
push 0
push 0x14a
push eax
call edi
mov ecx, dword [esi + 0x1c4]
push 0x5a5104
push 1
push 0x14a
push ecx
call edi
mov edx, dword [esi + 0x1c4]
push 0x5a5108
push 2
push 0x14a
push edx
call edi
mov eax, dword [esi + 0x1c4]
push 0x5a5104
push 1
push 0x14d
push eax
call edi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40c657
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40c72d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5a7740]
add ecx, 8
sub edx, 8
dec esi
jne 0x40c670
pop edi
test edx, edx
je 0x40c74a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5a7740]
inc ecx
dec edx
jne 0x40c731
not eax
pop esi
ret

Function at 0x40c750
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5a7740]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5a7740]
mov dword [edx + 8], ecx
ret

Function at 0x40c7a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5a7740]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5a7740]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40cf10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x40cf46
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cf3c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x40cf57
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00512040
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret