joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418140
Capabilities:
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45e248
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x144]
test eax, eax
lea ebx, [esi + 0x140]
push edi
je 0x41822d
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
test ebp, ebp
mov dword [esp + 0x14], ebp
jle 0x41822d
xor edi, edi
test ebp, ebp
jle 0x41822d
lea ecx, [ecx]
push edi
push ebx
mov ecx, esi
call fcn.004120e0
test eax, eax
je 0x418242
cmp eax, 3
je 0x418225
push edi
mov ecx, esi
call fcn.00416e00
call fcn.00405920
push eax
push ebx
mov ecx, esi
call fcn.004119a0
push str.release_patch_patch.ini
lea eax, [esp + 0x14]
push 0x47cadc
push eax
call fcn.00401f80
mov eax, dword [eax]
add esp, 0xc
push eax
push 0
push 0x4631cc
push str.SelfPatch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jne 0x41833a
mov ebp, dword [esp + 0x14]
inc edi
cmp edi, ebp
jl 0x4181a0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
mov ecx, dword [esi + 0x16c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [0x47c950]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push eax
call fcn.004013c0
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x47c92c]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
push eax
mov dword [esp + 0x30], 0
call fcn.004013c0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00410f80
call fcn.0044ed62
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x144]
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*4]
push eax
lea edx, [esp + 0x18]
mov ebx, 1
push edx
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.00410ec0
mov ecx, dword [0x47c9c8]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x34]
push 0x463104
push eax
mov byte [esp + 0x34], 2
call fcn.00401c60
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41831b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push eax
push 0x430
push str..UpdaterDlg_Update.cpp
call fcn.00402b50
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405920
push eax
push ebx
mov ecx, esi
call fcn.00411830
mov ecx, esi
call fcn.0040e3f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x423d00
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00423c40
add esi, 0x18
mov edx, esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x423d20
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret 8

Function at 0x424a30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x408
mov eax, dword [0x47b8f8]
mov dword [esp + 0x404], eax
movzx eax, byte [esp + 0x40c]
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x424ac1
push esi
call fcn.00419e90
push 0x79
push str..Stream.cpp
lea ecx, [esp + 0x10]
push str._s___d__:
push ecx
call fcn.0043c9ea
mov esi, eax
push 0x466ac4
lea edx, [esp + esi + 0x1c]
push str.Assertion_Failed:_ret___1_
push edx
call fcn.0043c241
add esi, eax
lea eax, [esp + esi + 0x24]
push 0x461e78
push eax
call fcn.0043c9ea
lea ecx, [esp + 0x2c]
push ecx
call fcn.00419da0
add esp, 0x28
call fcn.00401000
call fcn.00419ea0
pop esi
mov ecx, dword [esp + 0x404]
call fcn.0043e0a5
add esp, 0x408
ret 4

Function at 0x424dc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x424dd5
xor eax, eax
pop esi
add esp, 8
ret
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x424dce
mov ecx, dword [esi + 8]
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x424dce
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
sete al
pop esi
add esp, 8
ret

Function at 0x424e40
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
je 0x424e91
mov ecx, dword [esi + 8]
lea edx, [esp + 4]
push edx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x424e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
add esp, 0x10c
ret
je 0x424ed7
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e91
mov eax, dword [esi + 8]
push 0
push 0x2800
push 0x9ec4b8
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x424e91
push eax
push 0x9ec4b8
lea ecx, [esi + 0x30]
call fcn.00425ce0
mov al, 1
pop esi
add esp, 0x10c
ret
Function at 0x424e46
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
je 0x424e91
mov ecx, dword [esi + 8]
lea edx, [esp + 4]
push edx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x424e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
add esp, 0x10c
ret
je 0x424ed7
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e91
mov eax, dword [esi + 8]
push 0
push 0x2800
push 0x9ec4b8
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x424e91
push eax
push 0x9ec4b8
lea ecx, [esi + 0x30]
call fcn.00425ce0
mov al, 1
pop esi
add esp, 0x10c
ret

Function at 0x424f76
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0
mov dword [esi], 0x466ad8
call fcn.004260f0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.004260f0
mov ecx, dword [esp + 8]
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x425a70
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x45e9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x47b8f8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x10]
mov ecx, ebx
mov dword [esp + 0x424], eax
call fcn.00425c80
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x425b83
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x434], ebp
call fcn.00425940
push ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.00425a00
mov ebp, dword [esp + 0x18]
push esi
push ebp
mov ecx, ebx
call fcn.004260b0
cmp dword [edi + 8], 0xffffffff
jne 0x425b50
call fcn.00419e90
push 0x17c
push str..Stream.cpp
lea eax, [esp + 0x2c]
push str._s___d__:
push eax
call fcn.0043c9ea
push 0x466c18
lea ecx, [esp + eax + 0x38]
push str.Assertion_Failed:__SOCKET__0____m_socket
push ecx
mov dword [esp + 0x2c], eax
call fcn.0043c241
mov ecx, dword [esp + 0x2c]
add ecx, eax
lea edx, [esp + ecx + 0x40]
push 0x461e78
push edx
call fcn.0043c9ea
lea eax, [esp + 0x48]
push eax
call fcn.00419da0
add esp, 0x28
call fcn.00401000
call fcn.00419ea0
mov ecx, dword [edi + 8]
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x425b6c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
jmp 0x425b76
push eax
push 0
mov ecx, ebx
call fcn.00425ea0
test ebp, ebp
je 0x425b83
push ebp
call fcn.0044ed07
add esp, 4
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x418]
pop ebx
call fcn.0043e0a5
add esp, 0x424
ret
Function at 0x426770
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
call fcn.00429220
test al, al
je 0x426838
mov eax, dword [esi + 0x64]
test eax, eax
mov dword [esp + 4], 0
jbe 0x426838
push ebx
push ebp
push edi
nop
mov eax, dword [esi + 0x1c]
mov ebp, dword [esi + 0x70]
mov ebx, dword [esp + 0x10]
mov edi, dword [esi + 0x14]
and eax, 0xfffd
or eax, 2
add ebp, ebx
mov bl, byte [ebp]
mov dword [esp + 0x14], eax
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0x14]
shr edi, 8
xor edi, ecx
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1c], edi
mov bl, byte [ebp]
sar ecx, 8
xor bl, cl
mov byte [ebp], bl
mov ecx, dword [esi + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4267a0
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x426840
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
call fcn.00429220
test al, al
je 0x4268e5
mov eax, dword [esp + 8]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x4268e4
push ebx
push edi
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x70]
mov bl, byte [eax + ebp]
and ecx, 0xfffd
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
add eax, ebp
sar edx, 8
xor bl, dl
mov byte [eax], bl
mov edi, dword [esi + 0x14]
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
mov eax, dword [esp + 0x14]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, eax
mov dword [esi + 0x1c], edi
jb 0x426867
pop edi
pop ebx
pop ebp
pop esi
ret 4
Function at 0x426a60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
jbe 0x426ae3
push ebx
push edi
mov eax, dword [esi + 0xc]
mov bl, byte [eax + ebp]
mov edi, dword [esi + 0x14]
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
shr edi, 8
xor edi, edx
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x10]
inc ebp
cmp ebp, eax
jb 0x426a84
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x426af0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x45eab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov esi, ecx
push 0xc
lea ecx, [esp + 0x1c]
call fcn.0042c7f0
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.0042ae90
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + ebp]
mov edi, dword [esi + 0x14]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.0042c890
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dl, bl
xor edx, edi
and edx, 0xff
mov eax, dword [eax + edx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
call fcn.0042c890
xor ecx, ecx
mov cl, byte [esp + 0x10]
xor ecx, edi
and ecx, 0xff
mov edx, dword [eax + ecx*4]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, 0xc
mov dword [esi + 0x1c], edi
jl 0x426b30
mov ecx, dword [esi + 0x110]
call fcn.00429230
test al, al
mov esi, dword [esi + 0x110]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
je 0x426bd6
mov al, byte [esi + 0x11]
jmp 0x426bd9
mov al, byte [esi + 0x17]
cmp al, bl
sete bl
call fcn.0042c820
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x426c00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00426a60
push 0
call fcn.0043e928
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edi, eax
push edi
call fcn.0043e8f9
add esp, 4
mov dword [esp + 0x14], 0
call fcn.0043e906
mov ebx, eax
sar ebx, 6
test bl, bl
mov byte [esp + 0x13], bl
jne 0x426c4c
mov byte [esp + 0x13], al
mov bl, al
mov ebp, dword [esi + 0x1c]
mov edi, dword [esi + 0x14]
and ebp, 0xfffd
or ebp, 2
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
mov edx, dword [esp + 0x20]
xor ebx, edi
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
shr edi, 8
xor edi, ecx
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
sar ecx, 8
mov dword [esi + 0x1c], edi
mov edx, dword [edx + 4]
xor cl, bl
mov byte [eax + edx], cl
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x426c34
mov ebp, dword [esi + 0x1c]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi + 0x14]
sar ebx, 0x10
and ebp, 0xfffd
mov byte [esp + 0x13], bl
or ebp, 2
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov ebx, dword [esp + 0x1c]
mov eax, ebp
xor eax, 1
imul eax, ebp
shr edi, 8
xor edi, ecx
mov cl, byte [esp + 0x13]
sar eax, 8
mov dword [esi + 0x1c], edi
xor al, cl
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov byte [edx + 0xa], al
mov ebp, dword [esi + 0x1c]
mov edi, dword [esi + 0x14]
sar ebx, 0x18
and ebp, 0xfffd
mov byte [esp + 0x13], bl
or ebp, 2
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov eax, ebp
xor eax, 1
imul eax, ebp
shr edi, 8
xor edi, ecx
mov cl, byte [esp + 0x13]
mov dword [esi + 0x1c], edi
sar eax, 8
xor al, cl
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
pop edi
pop esi
mov byte [edx + 0xb], al
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x4270e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45eb00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0xe4], 0xff
push edi
mov dword [ebp - 0x10], esp
jne 0x42724f
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x427204
cmp dword [esi + 0x60], ebx
jne 0x427145
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x42714c
push 0xffffffffffffff9a
mov ecx, esi
call fcn.00426e50
jmp 0x42714c
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [esi + 0x110]
cmp word [eax + 0xe], 8
jne 0x427162
lea edx, [esi + 0x28]
push edx
call fcn.0042ca90
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x427204
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
call fcn.0043e8bd
mov ecx, dword [esi + 0x110]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x144], eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x124], bl
call fcn.004293f0
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
mov edx, dword [eax + 4]
lea eax, [ebp - 0x144]
push eax
push edi
mov dword [ebp - 0x138], edx
call fcn.004552bb
mov eax, dword [esi + 0x110]
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x427204
mov dword [ebp - 0x14], 0xfffffffe
lea ecx, [esi + 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ba90
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0042c630
mov ecx, esi
call fcn.004268f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x427270
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
push esi
mov esi, ecx
call fcn.00426a60
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x427301
push ebx
push edi
mov eax, dword [esi + 0x1c]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x14]
mov bl, byte [eax + ebp]
sar ecx, 8
xor bl, cl
mov byte [eax + ebp], bl
mov edi, dword [esi + 0x14]
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edi
mov edi, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov edx, dword [eax + ebx*4]
mov eax, dword [esp + 0x18]
shr edi, 8
xor edi, edx
inc ebp
cmp ebp, eax
mov dword [esi + 0x1c], edi
jl 0x427285
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x427310
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00426a60
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 4], 0
jle 0x4273c5
push ebx
push ebp
push edi
mov ebp, dword [esi + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx + eax]
mov edi, dword [esi + 0x14]
and ebp, 0xfffd
or ebp, 2
call fcn.0042c890
xor ebx, edi
and ebx, 0xff
mov eax, dword [eax + ebx*4]
mov ebx, dword [esi + 0x18]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.0042c890
xor ebx, edi
mov edx, ebp
xor edx, 1
imul edx, ebp
and ebx, 0xff
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0x10]
shr edi, 8
xor edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x1c], edi
mov bl, byte [eax + ecx]
sar edx, 8
xor bl, dl
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x427330
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
Function at 0x4283f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x45ec19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.004026d0
push 0x463078
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.00411150
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00428040
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 1
call fcn.0043c1ad
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x42847e
mov edx, dword [esp + 8]
push edx
call fcn.00426630
add esp, 4
cmp eax, esi
je 0x42847e
xor bl, bl
jmp 0x428480
mov bl, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4284a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x42853d
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00428040
mov eax, dword [eax]
push eax
mov byte [esp + 0x28], 2
call fcn.004283f0
mov bl, al
mov eax, dword [esp + 0x1c]
add esp, 0xc
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4284f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov eax, dword [esp + 8]
jne 0x42850f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, dword [esp + 8]
jne 0x42853d
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x42852a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x428558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret