joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47af3b
mov eax, dword fs:[0]
push eax
sub esp, 0x610
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
push esi
mov eax, dword [0x4a05d0]
xor eax, esp
push eax
lea eax, [esp + 0x61c]
mov dword fs:[0], eax
mov eax, dword [edi]
push pe_nt_image_headers32
lea ecx, [esp + 0x21c]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x424]
push edx
push pe_nt_image_headers32
lea ecx, [esp + 0x2c]
push ecx
push 3
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0045cfec
add esp, 0x24
cmp word [esp + 0x10], 0
jne 0x4255ba
call fcn.0043ab96
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x425405
push 0x80004005
call fcn.0040a7c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x624], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
cmp byte [esp + 0x62c], 0
je 0x425486
or eax, ecx
jge 0x425450
push 0x104
lea ecx, [esp + 0x10]
call fcn.0040a450
mov esi, dword [esp + 0xc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x425478
cmp eax, 0x104
je 0x425478
or eax, 0xffffffff
push eax
lea ecx, [esp + 0x10]
call fcn.00409f70
jmp 0x4254ee
xor eax, eax
push eax
lea ecx, [esp + 0x10]
call fcn.00409f70
jmp 0x4254ee
or eax, ecx
jge 0x42549c
push 0x104
lea ecx, [esp + 0x10]
call fcn.0040a450
mov esi, dword [esp + 0xc]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4254b8
cmp eax, 0x104
jae 0x4254b8
or eax, 0xffffffff
jmp 0x4254ba
xor eax, eax
push eax
lea ecx, [esp + 0x10]
call fcn.00409f70
mov eax, 0x5c
lea ebx, [esp + 0xc]
call fcn.00425bb0
mov eax, 0x2f
call fcn.00425bb0
push 1
push 0x485764
mov ecx, ebx
call fcn.00409b50
mov esi, dword [esp + 0xc]
push pe_nt_image_headers32
lea ecx, [esp + 0x21c]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x424]
push edx
push pe_nt_image_headers32
lea eax, [esp + 0x2c]
push eax
push 3
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.0045cfec
lea eax, [esp + 0x34]
add esp, 0x24
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425530
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.0040a500
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425555
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.00409b50
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00409b50
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0040a030
mov dword [esp + 0x624], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4255ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x61c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x60c]
xor ecx, esp
call fcn.004597c7
add esp, 0x61c
ret
Function at 0x427c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x427c17
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x427cf4
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 + 0x48a2e8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x48a2e8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x427c30
pop edi
test edx, edx
je 0x427d1b
jmp 0x427d00
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x48a2e8]
inc ecx
sub edx, 1
jne 0x427d00
not eax
pop esi
ret

Function at 0x427d20
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 + 0x48a2e8]
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 + 0x48a2e8]
mov dword [edx + 8], ecx
ret

Function at 0x427d70
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 + 0x48a2e8]
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 + 0x48a2e8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4284d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x428502
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4284f8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x428515
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0045f9a0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x428530
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x428563
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42855d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x42858f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x428575
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0045f9a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4285a6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4285a0
cmp byte [esi + 8], 0
je 0x4285a0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x428690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
cmp byte [esi], 0
push ebx
push ebp
push edi
je 0x4286e1
cmp byte [esi + 1], 0
je 0x4286eb
mov ecx, dword [esi + 4]
push 2
xor edi, edi
lea eax, [esp + 0x28]
push eax
push edi
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
je 0x4286fd
cmp byte [esi + 1], 0
je 0x4286f5
mov eax, dword [esi + 4]
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 0xc], ebp
jmp 0x428706
mov edx, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
xor edi, edi
jmp 0x4286bd
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov dword [esp + 0xc], edi
mov ebp, edi
jmp 0x428706
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xc], ecx
mov ebp, ecx
mov edi, 0xffff
mov dword [esp + 0x10], edi
cmp ebp, edi
jae 0x428719
mov dword [esp + 0x10], ebp
mov edi, ebp
push 0x404
call fcn.0045c744
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4286eb
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x428851
jmp 0x42874f
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x428760
mov dword [esp + 0x14], eax
mov ecx, ebp
sub ecx, dword [esp + 0x14]
sub ebp, ecx
mov dword [esp + 0x20], ecx
cmp ebp, 0x404
jbe 0x428779
mov ebp, 0x404
cmp byte [esi], 0
je 0x4287ad
cmp byte [esi + 1], 0
je 0x428851
mov eax, dword [esi + 0xc]
push 0
add eax, ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4287b0
mov dword [esi + 0x1c], ecx
cmp byte [esi], 0
mov edi, ebp
je 0x4287d8
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4287d2
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4287fe
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4287e9
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0045f9a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x428851
lea eax, [ebp - 3]
test eax, eax
jl 0x42883c
mov edi, edi
dec eax
cmp byte [eax + ebx], 0x50
jne 0x42882c
cmp byte [eax + ebx + 1], 0x4b
jne 0x42882c
cmp byte [eax + ebx + 2], 5
jne 0x42882c
cmp byte [eax + ebx + 3], 6
je 0x428832
test eax, eax
jge 0x428810
jmp 0x42883c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x428851
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x428743
push ebx
call fcn.0045bc37
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4291b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4291cc
mov eax, 0xffffff9a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [edi + 0x18], ebx
je 0x4291bf
cmp dword [edi + 0x7c], ebx
je 0x4291db
call fcn.004295b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00428f10
add esp, 0xc
test eax, eax
je 0x429203
mov eax, 0xffffff99
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x84
call fcn.0045c744
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x429244
push 0x4000
call fcn.0045c744
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x429251
push ebp
call fcn.0045bc37
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x429299
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00427fe0
test eax, eax
jne 0x429299
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4292c3
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4292cc
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x429310
lea esp, [esp]
mov cl, byte [esi]
cmp cl, bl
je 0x429310
call fcn.00427d20
add esi, 1
jne 0x429300
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
mov dword [edi + 0x7c], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4296b0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x429751
cmp dword [esi + 4], 0xffffffff
jne 0x429751
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4296e0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x429719
cmp ax, 0x2f
je 0x429719
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x429706
mov eax, dword [0x485764]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00428430
add esp, 4
test eax, eax
jne 0x429737
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00428870
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x429db0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x429df0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x429df0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x429ed6
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x429e0f
cmp ax, 0x5c
jne 0x429e11
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x429e03
push edi
cmp ecx, ebx
je 0x429e54
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0045f9a0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00429db0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x429e7f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x429e70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x429e70
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429e83
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x429ea0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x429ea0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x429ed6
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004597c7
add esp, 0x414
ret
Function at 0x42aba0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x42ac7b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x42abd4
cmp dword [esi + 0x40], edi
jae 0x42abd4
push eax
call fcn.00439ae5
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x42abeb
lea eax, [edi + edi]
push eax
call fcn.00439ab6
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0045f9a0
add esp, 0xc
cmp edi, ebp
jbe 0x42ac77
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x488b08]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x488b08]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x42ac00
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42acb4
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42ac9c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0045f9a0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42acd5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x42b440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.0041b9e0
push str.Hr_g
mov esi, ebx
mov dword [ebx + 0x80], 0x1e
mov dword [ebx + 0x90], 4
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
call fcn.0041b850
push 0
push 0
push 0
push ecx
mov ecx, dword [0x4a59c4]
push 0x84
call fcn.0041a130
add esp, 8
push 1
push 0
push ecx
mov ecx, dword [0x4a59c4]
push 0x83
mov esi, eax
call fcn.0041a130
add esp, 8
push eax
mov ecx, esi
call fcn.0041baf0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00443a23
push eax
mov ecx, ebx
call fcn.0044334b
mov eax, dword [ebx + 0x20]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x4a59c4]
push 0x99
call fcn.0041a130
mov ecx, dword [0x4a59c4]
add esp, 4
push 0x98
mov ebp, eax
call fcn.0041a130
add esp, 4
lea esi, [ebx + 0x3d8]
mov ecx, ebp
call fcn.0041d6a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push ebx
push 0x42b670
push 0
push 0
call esi
push 0
push 0
push ebx
push 0x42b610
push 0
push 0
mov dword [ebx + 0xa64], eax
call esi
mov dword [ebx + 0xa68], eax
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b570
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, ecx
mov eax, dword [esi + 0xa68]
push 0
push eax
call edi
mov ecx, dword [esi + 0xa64]
push 0
push ecx
call edi
mov edx, dword [esi + 0xa64]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0xa68]
push eax
call edi
mov ecx, dword [esi + 0xa6c]
push ecx
call fcn.0045b304
mov eax, dword [esi + 0xa7c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
test eax, eax
je 0x42b5ca
push eax
call edi
mov eax, dword [esi + 0xa78]
test eax, eax
je 0x42b5d7
push eax
call edi
mov eax, dword [esi + 0xa74]
test eax, eax
je 0x42b5e4
push eax
call edi
pop edi
mov dword [esi + 0xa7c], 0
mov dword [esi + 0xa78], 0
mov dword [esi + 0xa74], 0
mov ecx, esi
pop esi
jmp fcn.0043bff0
Function at 0x42c250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0043f814
mov esi, dword [eax + 0xc]
push 0x485cf4
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42c278
pop edi
pop esi
pop ecx
ret 4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42c2c0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.0045f9a0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x42c2c9
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0042bfd0
mov edx, dword [esp + 0x18]
add esp, 4
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x42e460
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x234
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [0x4857b0]
mov ecx, dword [str.stallTag]
mov edx, dword [0x4857b8]
mov dword [esp + 0x10], eax
mov eax, dword [0x4857bc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4857c0]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x4857c4]
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x30], dx
mov dword [esp + 0xc], 0x31
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x34], ax
call fcn.0045db90
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x485264
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00459b8e
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 8
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push 0x4857c8
push eax
call fcn.00413560
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push 0x48538c
push edx
call fcn.00413560
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor ecx, ecx
mov eax, 0x31
cmp ax, word [esp]
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004597c7
add esp, 0x234
ret