joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ca50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x1001cc76
cmp dword [ebp + 8], eax
je 0x1001cc76
cmp dword [ebp + 0xc], eax
je 0x1001cc76
push ebx
mov ebx, dword [0x3bf921c]
push edi
xor edi, edi
push esi
call fcn.1001d320
test eax, eax
jne 0x1001ca99
push 0xc8
call ebx
inc edi
cmp edi, 0x14
jl 0x1001ca82
push esi
call fcn.1001d320
test eax, eax
je 0x1001cc71
push esi
push 0
push 0x1f0fff
call dword [0x3bf91ac]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x1001cc71
push 0x3bf95e4
mov dword [ebp + 0xc], 0
call dword [0x3bf9170]
mov esi, dword [0x3bf9168]
test eax, eax
je 0x1001caf9
push 0x3bfdbfc
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1001caf9
lea eax, [ebp + 0xc]
push eax
call dword [0x3bf9184]
push eax
call ebx
cmp dword [ebp + 0xc], 0
je 0x1001cb32
push 0x3bf95e4
mov dword [ebp + 0xc], 0
call dword [0x3bf9170]
test eax, eax
je 0x1001cb28
push 0x3bfdbfc
push eax
call esi
test eax, eax
je 0x1001cb28
lea ecx, [ebp + 0xc]
push ecx
push edi
call eax
cmp dword [ebp + 0xc], 0
je 0x1001cc6a
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
xor edx, edx
push 0x40
add ebx, eax
mov word [eax], dx
mov eax, dword [ebx + 0x50]
push 0x3000
push eax
push edx
push edi
mov dword [ebx], edx
call dword [0x3bf90c0]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1001cc6a
mov edx, dword [ebx + 0x54]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
push esi
push edi
mov dword [ebx + 0x58], 0
call dword [0x3bf90b8]
movzx ecx, word [ebx + 0x14]
xor edx, edx
lea eax, [ecx + ebx + 0x18]
mov dword [ebp + 0xc], 0
cmp dx, word [ebx + 6]
jae 0x1001cc01
lea esi, [eax + 8]
mov eax, dword [esi]
push 4
push 0x3000
push eax
push 0
call dword [0x3bf9198]
mov edi, eax
test edi, edi
je 0x1001cbe9
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add edx, dword [ebp + 8]
push ecx
push edx
push edi
call fcn.10038202
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push ecx
push edi
push edx
push eax
call dword [0x3bf90b8]
push 0x8000
push 0
push edi
call dword [0x3bf9190]
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp + 0xc], eax
cmp eax, ecx
jl 0x1001cb96
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebx + 0x28]
push 0
push 0
push edi
add ebx, esi
call dword [0x3bf90f8]
push 0
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [0x3bf90cc]
test eax, eax
je 0x1001cc48
push eax
call dword [0x3bf91c0]
push edi
mov dword [ebp - 4], 1
call dword [0x3bf91c0]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
call dword [0x3bf9558]
xor edx, edx
test eax, eax
setns dl
mov dword [ebp - 4], edx
push edi
call dword [0x3bf91c0]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10020080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10020090
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x1002015f
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x3bfbab0]
add ecx, 8
sub edx, 8
dec esi
jne 0x100200a2
pop edi
test edx, edx
je 0x1002017c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x3bfbab0]
inc ecx
dec edx
jne 0x10020163
not eax
pop esi
pop ebp
ret 4
Function at 0x10020190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
call dword [0x3bf909c]
cmp eax, 1
je 0x100201b1
mov eax, 0x1000000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x74]
push eax
push edi
call dword [0x3bf9098]
test eax, eax
jne 0x100201cd
mov eax, 0x200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x30]
push ecx
call dword [0x3bf9090]
lea edx, [ebp - 0x40]
push edx
call dword [0x3bf90a4]
mov esi, dword [0x3bf90a8]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 0x14]
sub dword [ebp - 0x60], eax
sbb dword [ebp - 0x5c], ecx
sub dword [ebp - 0x68], eax
sbb dword [ebp - 0x64], ecx
sub dword [ebp - 0x70], eax
sbb dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x74]
mov eax, ecx
xor esi, esi
and eax, 1
je 0x1002022f
mov dword [ebp - 8], 1
mov esi, dword [ebp - 8]
test cl, 2
je 0x10020237
or esi, 2
test cl, 4
je 0x1002023f
or esi, 4
mov edx, ecx
and edx, 0x10
je 0x10020249
or esi, 0x10
test cl, 0x20
je 0x10020251
or esi, 0x20
test edx, edx
je 0x1002025d
or esi, 0x40000000
jmp 0x10020263
or esi, 0x80000000
or esi, 0x1000000
mov dword [ebp - 8], esi
test eax, eax
jne 0x10020279
or esi, 0x800000
mov dword [ebp - 8], esi
push 0
push edi
call dword [0x3bf90b0]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x10020320
mov esi, dword [0x3bf90ac]
push 0
push 0
push 0
push edi
call esi
mov ebx, dword [0x3bf91ec]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push edi
call ebx
push 0
push 0
push 0x24
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push edi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x1002031d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1002031d
push 0
push 0
push eax
push edi
call esi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x5a4d
je 0x10020316
cmp eax, 0x454e
je 0x10020316
cmp eax, 0x454c
je 0x10020316
cmp eax, 0x4550
jne 0x1002031d
or dword [ebp - 8], 0x400000
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1002032b
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10020337
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x10020346
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x1002036e
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [0x3bf90b4]
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100249f6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
test eax, eax
jne 0x10024a14
mov eax, 0x3bfe6b4
push 0x3bfe6a0
push eax
lea eax, [ebp - 0x20c]
push 0x3bfe6bc
push eax
call dword [0x3bf9468]
lea eax, [ebp - 0x20c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024a38
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea eax, [ecx + eax + 0xd]
cmp eax, 0x7530
jbe 0x10024a61
mov eax, ebx
call fcn.10026f51
test al, al
je 0x10024b37
mov al, byte [0x3c02065]
xor ecx, ecx
test al, al
sete cl
dec ecx
and ecx, 0x302fefc
add ecx, 0xfffe0003
mov dword [ebp - 4], ecx
xor ecx, ecx
test al, al
lea eax, [ebp - 0x20c]
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], cx
lea edx, [eax + 1]
je 0x10024ab5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024a94
sub eax, edx
lea ecx, [eax + 1]
shr ecx, 8
and ecx, 0xff
inc eax
shl eax, 8
xor ecx, eax
mov word [ebp - 8], cx
jmp 0x10024ac3
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024ab5
sub eax, edx
inc eax
mov word [ebp - 8], ax
push esi
push edi
xor eax, eax
mov word [ebp - 6], ax
mov eax, dword [ebx + 0x75c4]
push 0xc
lea edi, [eax + ebx + 0x94]
lea esi, [ebp - 0xc]
pop ecx
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edi, dword [ebx + 0x75c4]
lea eax, [ebp - 0x20c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024af6
sub eax, esi
lea ecx, [eax + 1]
lea esi, [ebp - 0x20c]
lea edi, [edi + ebx + 0x94]
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024b1a
sub eax, esi
inc eax
add dword [ebx + 0x75c4], eax
mov eax, ebx
call fcn.10026f51
neg al
pop edi
sbb al, al
pop esi
pop ebx
leave
ret 4
Function at 0x1002c96b
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
push ebx
xor eax, ecx
xor ecx, edx
push esi
rol ecx, 1
push edi
mov edi, 0x3c10d30
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
mov esi, eax
ror esi, 4
xor esi, dword [edi]
push 0x3f
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov edx, dword [ecx*4 + 0x3c016b0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or edx, dword [ebx*4 + 0x3c018b0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or edx, dword [ecx*4 + 0x3c01ab0]
and esi, 0x3f
or edx, dword [esi*4 + 0x3c01cb0]
mov esi, dword [edi + 4]
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x3c017b0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x3c019b0]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x3c01bb0]
add edi, 0x10
mov ebx, ecx
pop ecx
and esi, ecx
or ebx, dword [esi*4 + 0x3c01db0]
or ebx, edx
xor dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
ror esi, 4
xor esi, dword [edi - 8]
mov edx, esi
shr edx, 0x18
and edx, ecx
mov edx, dword [edx*4 + 0x3c016b0]
mov ebx, esi
shr ebx, 0x10
and ebx, ecx
or edx, dword [ebx*4 + 0x3c018b0]
mov ebx, esi
shr ebx, 8
and ebx, ecx
or edx, dword [ebx*4 + 0x3c01ab0]
and esi, ecx
or edx, dword [esi*4 + 0x3c01cb0]
mov esi, dword [edi - 4]
xor esi, dword [ebp - 4]
mov ebx, esi
shr ebx, 0x18
and ebx, ecx
mov ebx, dword [ebx*4 + 0x3c017b0]
mov ecx, esi
shr ecx, 0x10
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x3c019b0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x3c01bb0]
and esi, 0x3f
or ebx, dword [esi*4 + 0x3c01db0]
or ebx, edx
xor eax, ebx
dec dword [ebp - 8]
jne 0x1002c9e9
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x100381d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x100381f9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x3c01100]
inc esi
xor eax, edx
dec ecx
jne 0x100381e4
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x401f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401f71
add esp, 0x104
ret
push edi
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f77
mov ecx, dword [str.d3d9.dll]
mov edx, dword [0x446c7c]
mov ax, word [0x446c80]
mov dword [edi], ecx
lea ecx, [esp + 4]
mov dword [edi + 4], edx
push 0
push ecx
mov word [edi + 8], ax
call fcn.004200f9
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
add esp, 0x104
ret

Function at 0x402650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402669
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40267d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40269e
cmp esi, eax
jae 0x402677
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402690
cmp esi, eax
jae 0x402677
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b40
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0x18]
ja 0x402b74
jb 0x402b6c
mov eax, dword [esp]
cmp eax, dword [esp + 0x14]
ja 0x402b74
xor al, al
add esp, 0x10
ret 8
mov al, 1
add esp, 0x10
ret 8

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, ecx
jle 0x40449f
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebx + 0xc]
push 0
push esi
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x4044a8
sub esi, eax
add edi, eax
test esi, esi
jg 0x404488
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x4044be
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0xc], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4473c8
call fcn.00420ccf
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
Function at 0x404f30
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443d09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push ebp
push esi
push edi
mov ebp, ecx
or esi, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], esi
xor ebx, ebx
mov dword [ebp], 0x447530
mov dword [esp + 0x52c], ebx
mov dword [ebp + 0x20], esi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp + 0x28]
mov byte [esp + 0x544], 1
call fcn.0043eae4
mov dword [ebp + 0x60], esi
push ebx
push ebx
push 1
push ebx
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x41], bl
mov byte [ebp + 0x25], bl
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x866], bl
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x864], bl
mov byte [ebp + 0x865], bl
mov byte [ebp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
push str..CONFIG.ini
mov byte [ebp + 0x874], bl
mov ecx, 7
mov esi, str.patch.shaiyarenegade.com
mov edi, 0x45b9c0
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x447068
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4050eb
mov edi, str.GERMANY
lea esi, [esp + 0x18]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4050eb
push 0x44743c
push str.UpdaterURL.txt
call fcn.00420e8c
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40506d
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420c7b
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0x4470ac
push esi
call fcn.00420e9f
lea eax, [esp + 0x12c]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4050a0
sub eax, edx
cmp eax, 1
jae 0x4050c6
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420c7b
xor eax, eax
jmp 0x4050d0
mov cl, byte [esp + eax + 0x120]
mov byte [eax + 0x45b9c0], cl
inc eax
cmp cl, bl
jne 0x4050d0
push esi
call fcn.00420ddf
add esp, 4
mov ecx, dword [esp + 0x524]
pop edi
mov eax, ebp
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405510
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x58]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret 4
mov al, byte [ecx + 0x41]
test al, al
je 0x405551
mov al, byte [ecx + 0x25]
test al, al
je 0x405546
mov eax, dword [0x45c630]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x45c630]
mov dword [esp + 4], str.Game.exe_new_updater
jmp 0x402740
mov ecx, dword [0x45c630]
call fcn.00403e40
ret 4

Function at 0x405950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004057e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00405560
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4059e2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x409210
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4440be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x60]
push eax
call fcn.004083f0
xor ebx, ebx
mov ecx, ebp
mov dword [ebp + 0x60], ebx
call fcn.00407a60
push 0x118
call fcn.004332b0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x824], ebx
je 0x409271
mov ecx, eax
call fcn.00407f80
jmp 0x409273
xor eax, eax
lea esi, [ebp + 4]
mov dword [ebp + 0x60], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esp + 0x824], 0xffffffff
je 0x409294
push eax
call fcn.0042105b
add esp, 4
push 0x8000
push str.data.sah
mov dword [esi], 0xffffffff
call fcn.00421a30
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4092cb
xor al, al
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004212d1
mov eax, dword [esi]
push 4
lea edx, [ebp + 0x88]
push edx
push eax
call fcn.004212d1
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x80]
push ecx
push edx
call fcn.004212d1
mov ecx, dword [esi]
push 0x28
lea eax, [ebp + 0x14]
push eax
push ecx
call fcn.004212d1
mov edx, dword [ebp + 0x60]
add esp, 0x30
push edx
push esi
mov ecx, ebp
call fcn.00408800
push esi
mov ecx, ebp
call fcn.00408d20
lea eax, [ebp + 0x9c]
push 4
push eax
mov dword [eax], ebx
mov eax, dword [esi]
push eax
call fcn.004212d1
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x409345
push eax
call fcn.0042105b
add esp, 4
push 0x447a2c
push str.delete.lst
mov dword [esi], 0xffffffff
call fcn.00420e8c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x409406
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x18]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x800
push ecx
call fcn.00421d8a
add esp, 0xc
test eax, eax
je 0x4093eb
jmp 0x409390
mov cl, byte [esp + 0x18]
xor eax, eax
cmp cl, bl
je 0x4093b7
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x18]
cmp cl, 9
je 0x4093b7
cmp cl, 0xa
je 0x4093b7
mov cl, byte [esp + eax + 0x19]
inc eax
cmp cl, bl
jne 0x4093a0
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + eax + 0x1c], bl
call fcn.00408a10
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x18]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.00421d8a
add esp, 0xc
test eax, eax
jne 0x409390
push esi
call fcn.00420ddf
add esp, 4
push str.delete.lst
mov byte [ebp + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x81c]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2f0
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.0040d8a0
test al, al
je 0x40a3b8
mov eax, dword [esi + 0x64]
test eax, eax
mov dword [esp + 4], 0
jbe 0x40a3b8
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.0040f200
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.0040f200
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 0x40a320
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x40a3c0
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.0040d8a0
test al, al
je 0x40a465
mov eax, dword [esp + 8]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x40a464
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.0040f200
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.0040f200
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 0x40a3e7
pop edi
pop ebx
pop ebp
pop esi
ret 4