joyce8/EMBER2024-capa huggingface dataset:
Function at 0x779f91
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 0x10], 0x4d
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x6d
mov byte [ebp - 7], 0
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0x44
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x24], 0x5c
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x64
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x2e
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0
cmp dword [ebp + 0x18], 0
je 0x77a01a
mov dword [ebp - 4], 0x23
jmp 0x77a021
mov dword [ebp - 4], 0x1a
cmp dword [0x793184], 0
je 0x77a0fd
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [0x793184]
test eax, eax
jne 0x77a0fd
mov edx, dword [ebp + 8]
push edx
call fcn.00764249
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
je 0x77a074
push 0x761838
mov eax, dword [ebp + 8]
push eax
call fcn.00763ff4
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x77a0c9
cmp dword [ebp + 0x10], 0
je 0x77a0c9
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00763faf
add esp, 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00763ff4
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00763faf
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00763ff4
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00763ff4
add esp, 8
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00763ff4
add esp, 8
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00763ff4
add esp, 8
xor eax, eax
jmp 0x77a154
push 0x100
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x77a14f
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00779350
add esp, 8
test eax, eax
je 0x77a14f
lea eax, [ebp - 0x24]
push eax
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00779350
add esp, 8
add eax, 1
push eax
call fcn.00763faf
add esp, 8
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
xor eax, eax
jmp 0x77a154
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x77a158
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov byte [ebp - 0x110], 0
mov al, byte [ebp - 0x110]
mov byte [ebp - 0x104], al
mov cl, byte [ebp - 0x104]
mov byte [ebp - 0x128], cl
xor edx, edx
cmp dword [ebp + 8], 1
sete dl
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.00779f91
add esp, 0x14
test eax, eax
jne 0x77a244
cmp dword [ebp + 8], 1
jne 0x77a1fc
lea edx, [ebp - 0x100]
push edx
push 6
lea eax, [ebp - 0x128]
push eax
push 0x76183c
push 0x761844
push 0x760492
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x100]
push ecx
push 4
lea edx, [ebp - 0x104]
push edx
push 0x76184c
push 0x761850
push 0x760492
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 8], 2
jne 0x77a244
mov eax, dword [0x75ca1d]
push eax
push 0x761858
lea ecx, [ebp - 0x120]
push ecx
call dword [fcn.007930f0]
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
push 9
lea eax, [ebp - 0x110]
push eax
push 0x76185c
lea ecx, [ebp - 0x120]
push ecx
push 0x760492
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 8], 1
jne 0x77a28c
push 3
push 0x761860
lea edx, [ebp - 0x128]
push edx
call fcn.00777975
add esp, 0xc
test eax, eax
jne 0x77a26b
mov byte [0x75df8e], 1
push 2
push 0x761864
lea eax, [ebp - 0x104]
push eax
call fcn.00777975
add esp, 0xc
test eax, eax
jne 0x77a28c
mov byte [0x75df8f], 1
cmp dword [ebp + 8], 2
jne 0x77a31d
movsx ecx, byte [ebp - 0x110]
test ecx, ecx
je 0x77a31d
movsx edx, byte [ebp - 0x110]
sub edx, 0x30
imul edx, edx, 0xa
movsx eax, byte [ebp - 0x10f]
lea ecx, [edx + eax - 0x30]
mov byte [0x75fdf7], cl
movsx edx, byte [ebp - 0x10e]
sub edx, 0x30
imul edx, edx, 0xa
movsx eax, byte [ebp - 0x10d]
lea ecx, [edx + eax - 0x30]
mov byte [0x75fdf8], cl
movsx edx, byte [ebp - 0x10c]
sub edx, 0x30
imul edx, edx, 0x3e8
movsx eax, byte [ebp - 0x10b]
sub eax, 0x30
imul eax, eax, 0x64
add edx, eax
movsx ecx, byte [ebp - 0x10a]
sub ecx, 0x30
imul ecx, ecx, 0xa
add edx, ecx
movsx eax, byte [ebp - 0x109]
lea ecx, [edx + eax - 0x30]
mov word [0x75fdf9], cx
mov esp, ebp
pop ebp
ret
Function at 0x77a321
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
cmp dword [ebp + 8], 1
jne 0x77a39a
movsx eax, byte [0x75df8e]
test eax, eax
je 0x77a351
push 0x761868
lea ecx, [ebp - 0x324]
push ecx
call fcn.00763faf
add esp, 8
jmp 0x77a365
push 0x76186c
lea edx, [ebp - 0x324]
push edx
call fcn.00763faf
add esp, 8
movsx eax, byte [0x75df8f]
test eax, eax
je 0x77a386
push 0x761874
lea ecx, [ebp - 0x304]
push ecx
call fcn.00763faf
add esp, 8
jmp 0x77a39a
push 0x761878
lea edx, [ebp - 0x304]
push edx
call fcn.00763faf
add esp, 8
cmp dword [ebp + 8], 2
jne 0x77a3e8
mov eax, dword [0x75ca1d]
push eax
push 0x76187c
lea ecx, [ebp - 0x31c]
push ecx
call dword [fcn.007930f0]
add esp, 0xc
movsx edx, word [0x75df8c]
push edx
movsx eax, byte [0x75df8b]
push eax
movsx ecx, byte [0x75df8a]
push ecx
push 0x761880
lea edx, [ebp - 0x310]
push edx
call dword [fcn.007930f0]
add esp, 0x14
xor eax, eax
cmp dword [ebp + 8], 1
sete al
push eax
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x300]
push edx
lea eax, [ebp - 0x200]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.00779f91
add esp, 0x14
test eax, eax
jne 0x77a4d9
cmp dword [ebp - 0x328], 0
je 0x77a471
lea edx, [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x77a471
push 0x75c178
call fcn.00763825
add esp, 4
push 0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x75c178
call fcn.00763a2c
add esp, 4
cmp dword [ebp + 8], 1
jne 0x77a4b3
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x324]
push eax
push 0x761890
push 0x760492
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x304]
push edx
push 0x761898
push 0x760492
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp + 8], 2
jne 0x77a4d9
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x31c]
push edx
push 0x760492
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esp, ebp
pop ebp
ret
Function at 0x77bcfe
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x32
lea eax, [ebp - 0x34]
push eax
push 0x761904
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x77bd21
or eax, 0xffffffff
jmp 0x77bdc3
lea ecx, [ebp - 0x34]
test ecx, ecx
jne 0x77bd30
or eax, 0xffffffff
jmp 0x77bdc3
push 0x761910
lea edx, [ebp - 0x34]
push edx
call fcn.00764042
add esp, 8
test eax, eax
je 0x77bd5a
push 0x761914
lea eax, [ebp - 0x34]
push eax
call fcn.00764042
add esp, 8
test eax, eax
jne 0x77bd5e
xor eax, eax
jmp 0x77bdc3
push 0x761918
lea ecx, [ebp - 0x34]
push ecx
call fcn.00764042
add esp, 8
test eax, eax
je 0x77bd88
push 0x76191c
lea edx, [ebp - 0x34]
push edx
call fcn.00764042
add esp, 8
test eax, eax
jne 0x77bd8f
mov eax, 1
jmp 0x77bdc3
push 0x761920
lea eax, [ebp - 0x34]
push eax
call fcn.00764042
add esp, 8
test eax, eax
je 0x77bdb9
push 0x761928
lea ecx, [ebp - 0x34]
push ecx
call fcn.00764042
add esp, 8
test eax, eax
jne 0x77bdc0
mov eax, 2
jmp 0x77bdc3
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x77bdc7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
and eax, 0xff
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp eax, 0xc
jne 0x77bdfc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 7
jne 0x77be11
mov dword [ebp - 4], 2
mov edx, dword [ebp - 8]
and edx, 0xffff
cmp edx, 0xa
jne 0x77be26
mov dword [ebp - 4], 3
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x77d83d
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x761a34
mov eax, dword [0x7931a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x77d867
mov eax, 0x211
jmp 0x77d966
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
push 0
push 4
call dword [0x793910]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x77d896
mov eax, 0x20e
jmp 0x77d966
mov dword [ebp - 0x30], 0x1c
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x7939f0]
test eax, eax
jne 0x77d8b9
mov eax, 0x20f
jmp 0x77d966
cmp dword [ebp - 0x30], 0x10
jae 0x77d8c9
mov eax, 0x212
jmp 0x77d966
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
je 0x77d8d3
jmp 0x77d943
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0xc]
jne 0x77d8dd
jmp 0x77d943
mov edx, dword [ebp - 0x28]
cmp edx, dword [0x76010f]
jne 0x77d8ea
jmp 0x77d943
mov eax, dword [ebp - 0x28]
push eax
push 0
push 2
call dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x77d905
mov eax, 0x20d
jmp 0x77d966
cmp dword [ebp + 8], 0
je 0x77d923
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x77d921
mov eax, 0x210
jmp 0x77d966
jmp 0x77d939
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x77d939
mov eax, 0x20c
jmp 0x77d966
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x793920]
test eax, eax
jne 0x77d8b9
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x7802d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x78030d
xor eax, eax
jmp 0x7803ad
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x3c], 0x3e8
jbe 0x780320
xor eax, eax
jmp 0x7803ad
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
je 0x78033b
xor eax, eax
jmp 0x7803ad
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
add edx, 0x60
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x780388
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
je 0x7803a8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x78110d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x7530
mov eax, dword [0x7931dc]
push eax
call fcn.007643f4
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x781132
mov eax, dword [ebp - 4]
jmp 0x78117e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00781062
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [0x7931dc]
push eax
call fcn.00764450
add esp, 4
xor ecx, ecx
mov cl, byte [0x75fdf6]
test ecx, ecx
je 0x78117b
cmp dword [ebp - 4], 0
je 0x78117b
xor edx, edx
mov dl, byte [0x7606d7]
test edx, edx
jne 0x78117b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x7959be
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [eax + 0x10], 4
jne 0x795ad7
mov ecx, dword [eax + 0x1c]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x14]
push edi
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
push 0
push 4
lea edx, [esp + 0x20]
push edx
add eax, 0x1d3
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [fcn.00402014]
mov edx, dword [esp + 0x18]
xor edx, edi
xor edx, esi
mov eax, 4
lea esp, [esp]
lea ecx, [eax + 1]
and ecx, 3
movzx ecx, byte [esp + ecx + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, eax
and ecx, 3
movzx ecx, byte [esp + ecx + 0x10]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
mov ebx, esi
shl ebx, cl
lea ecx, [eax - 2]
and ecx, 3
movzx ecx, byte [esp + ecx + 0x10]
xor ebx, ecx
lea ecx, [eax - 1]
and ecx, 3
movzx edi, byte [esp + ecx + 0x10]
mov ecx, eax
mov ebp, esi
shl ebp, cl
lea ecx, [eax - 3]
xor edi, ebp
add ebx, edi
mov edi, dword [esp + 0x14]
mov ebp, esi
shl ebp, cl
lea ecx, [eax + 1]
xor ebp, edi
add ebx, ebp
mov ebp, esi
shl ebp, cl
lea ecx, [eax - 2]
xor ebp, edi
mov edi, dword [esp + 0x1c]
add ebx, ebp
mov ebp, esi
shl ebp, cl
lea ecx, [eax + 2]
add eax, 6
xor ebp, edi
add ebx, ebp
mov ebp, esi
shl ebp, cl
lea ecx, [eax - 4]
xor ebp, edi
add ebp, edx
cmp ecx, 0xc
lea edx, [ebx + ebp]
jl 0x795a0e
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov esi, dword [fcn.00402028]
push 0
push 4
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
call esi
call dword [fcn.00402008]
push 0
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
add edi, 4
push edi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x43b65c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
or eax, ebx
sub eax, 0x1476da8c
add ebx, 0xb2a4f80
call fcn.0043b695
mov ebx, ebx
sub ebx, eax
xor dword [edi], esi
inc ebx
add edi, 1
or eax, eax
mov ebx, eax
cmp edi, ecx
jne fcn.0043b65c
sub ebx, 1
add eax, eax
and eax, ebx
ret
Function at 0x401cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x401cd2
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x51c1b8]
inc eax
cmp eax, 1
mov dword [0x51c1b8], eax
jne 0x401cf7
push 0
call fcn.004a7d1a
xor eax, 0xbb40e64e
push eax
call fcn.004b6a6a
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.00401e90
add esp, 0xc
xor esi, esi
call fcn.004b6a49
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00401e10
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.00401e30
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x401d14
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.00401e90
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00401e10
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.00401e30
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x401d69
push edi
push ebp
call fcn.00401e10
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00401e10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x402180
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x4090]
test eax, eax
je 0x4021eb
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x4021eb
mov eax, 0xffffff78
push ebx
push ebp
sub eax, esi
push edi
lea ebp, [esi + 0x4094]
lea edi, [esi + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40a0]
push eax
push ebp
call fcn.00401e10
mov edx, dword [esi + 0x40a0]
xor ecx, ecx
mov cl, byte [edi]
mov ebx, eax
push ecx
push edx
push ebp
call fcn.00401e30
mov al, byte [edi]
add esp, 0x14
xor al, bl
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add eax, edi
cmp eax, ecx
jb 0x4021b0
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x88]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [esi + 8]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp eax, ecx
je 0x402217
mov dword [esi + 0x6c], 0
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x6c], 0
xor eax, eax
pop esi
ret
Function at 0x40f990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da47c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5194b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40fb7f
cmp word [edi], 0
je 0x40fb7f
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40f9eb
or eax, 0xffffffff
jmp 0x40fb81
call fcn.0040f470
mov ecx, eax
test ecx, ecx
je 0x40fb9f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.0040eb50
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040f520
mov edx, dword [ebp - 0x228]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x40fa79
or edi, 0xffffffff
jmp 0x40fb5f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004881a0
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x40fac6
xor edi, edi
jmp 0x40fb5f
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.0040f200
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.0040f100
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040eb50
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0045ae60
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.0040ef50
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.00494e47
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.0040ef50
lea ecx, [ebp - 0x224]
call fcn.0040ef50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40fb7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x40fb81
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469a5c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040f1b0
int3
Function at 0x4104d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410529
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41051a
cmp esi, edx
jae 0x410529
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x410508
cmp esi, edx
jae 0x410529
cmp word [esi], 0
je 0x410529
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4169a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x416a09
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x416a25
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x416a09
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x416a25
cmp dword [edi + 4], 0
je 0x416a25
cmp dword [edi + 0xc], 0
je 0x416a25
mov eax, 1
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4