joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44afd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55b36c], 0
je 0x44b03f
cmp word [0x55b65c], 0xd7b2
jne 0x44b001
cmp dword [0x55b664], 0
jbe 0x44b001
mov eax, 0x55b658
call dword [0x55b674]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x44b06c
call fcn.0044bb54
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x53e8e0], 0
jne 0x44b05b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x44b200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x53e8a4], 0
je 0x44b22b
mov edx, edi
mov eax, esi
call dword [0x53e8a4]
mov ebx, eax
jmp 0x44b23c
mov eax, 8
call fcn.00447eec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x55b36d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x44b1c8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x44b26c
mov eax, ebx
call fcn.00447f08
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x44ee04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x44ef70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0044b340
cmp si, word [0x53f2b4]
jb 0x44eea1
cmp si, word [0x53f4b4]
ja 0x44eea1
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jl 0x44eea1
mov ebx, edi
add ebx, dword [ebp - 8]
sar ebx, 1
jns 0x44ee6c
adc ebx, 0
cmp si, word [ebx*8 + 0x53f2b4]
jae 0x44ee7b
mov edi, ebx
dec edi
jmp 0x44ee9c
cmp si, word [ebx*8 + 0x53f2b4]
jbe 0x44ee8b
inc ebx
mov dword [ebp - 8], ebx
jmp 0x44ee9c
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x53f2b8]
call fcn.0044ed24
jmp 0x44eea1
cmp edi, dword [ebp - 8]
jge 0x44ee60
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x44ef50
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x44ef50
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0044be40
push dword [ebp - 0x160]
push 0x44ef8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0044be40
push dword [ebp - 0x164]
push 0x44ef9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0044be40
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0044c07c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef77
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0044b3a0
pop eax
jmp eax
Function at 0x44f124
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44f22a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55df30
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x55df48]
jne 0x44f170
mov eax, esi
mov edx, 0x55df4a
mov ecx, 0x55
call fcn.0044be40
push 0x55df30
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x44f212
push 0x55df30
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0044b340
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x44f1df
cmp byte [0x55df2c], 0
je 0x44f1a4
mov edx, esi
mov eax, ebx
call fcn.0044f008
jmp 0x44f1df
mov edx, esi
mov eax, ebx
call fcn.0044ee04
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x44f1df
cmp dword [esi], 0
je 0x44f1c8
mov eax, esi
mov edx, 0x44f244
call fcn.0044bf9c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0044ee04
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0044bf9c
push 0x55df30
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x55df48], bx
mov eax, dword [esi]
call fcn.0044bda4
mov ecx, eax
mov eax, 0x55df4a
mov edx, 0xaa
call fcn.0044ec84
push 0x55df30
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f231
lea eax, [ebp - 4]
call fcn.0044b340
pop eax
jmp eax
Function at 0x44f46c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0044b434
xor eax, eax
push ebp
push 0x44f694
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x44f4b2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x44f4cc
mov eax, dword [ebp - 4]
call fcn.0044bda4
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0044ec84
cmp word [ebp - 0x21e], 0
je 0x44f677
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f6a4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x44f59b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f6a4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x44f59b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f6e0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x44f59b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f6e0
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x44f59b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f714
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x44f59b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x44f748
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x44f677
xor eax, eax
push ebp
push 0x44f670
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0044f26c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x44f5fe
mov eax, dword [ebp - 0x14]
call fcn.00447eec
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0044be04
jmp 0x44f649
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x44f788
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x44f649
mov eax, dword [ebp - 0x14]
call fcn.00447eec
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x44f788
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0044be04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f677
cmp dword [ebp - 0xc], 0
je 0x44f664
mov eax, dword [ebp - 0xc]
call fcn.00447f08
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f69b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0044b3a0
pop eax
jmp eax
Function at 0x44f9a4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0044b434
xor eax, eax
push ebp
push 0x44fa66
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0044be40
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0044bff4
mov eax, dword [ebx]
call fcn.0044f850
test al, al
jne 0x44fa41
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0044be40
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0044bff4
mov eax, dword [ebx]
call fcn.0044f850
test al, al
jne 0x44fa41
mov eax, ebx
call fcn.0044b340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fa6d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0044b3a0
lea eax, [ebp - 4]
call fcn.0044b340
pop eax
jmp eax

Function at 0x451628
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x45215c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x45223f
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x55bcac], 1
jae 0x45222f
call fcn.004491f8
call fcn.00448e4c
call fcn.00448308
call fcn.00447cb0
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.0044eb88
mov byte [0x53e8c8], 2
mov dword [0x55b328], 0x538546
mov dword [0x55b32c], 0x538570
mov byte [0x55b36e], 2
call fcn.00451628
mov dword [0x55b378], eax
mov dword [0x55b314], 0x44d840
call fcn.00449234
call fcn.00449250
mov word [0x55b380], 0xd7b0
mov word [0x55b65c], 0xd7b0
mov word [0x55b938], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x55b360], eax
call fcn.004464b4
mov dword [0x55b35c], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x55bc94], eax
mov dword [0x55bc98], 0x4b0
call fcn.005383b4
mov dword [0x55b354], eax
call fcn.0045163c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452246
pop eax
jmp eax
Function at 0x4611c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x46121d
test eax, edx
je 0x461220
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4611db
movzx eax, word [eax]
sub eax, ecx
jmp 0x461202
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x461203
add ecx, 4
js 0x4611f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x461200
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x461202
xor eax, eax
ret
test eax, eax
je 0x46122c
test edx, edx
jne 0x4611cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x467368
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x4673a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0044b4d8
jmp 0x4673aa
mov eax, ebx
mov edx, esi
call fcn.0044b730
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4673b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x4673d8
movzx eax, word [esp]
jmp 0x4673da
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4690d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4691f7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00468ed8
mov esi, eax
mov eax, dword [0x545e24]
cmp byte [eax], 0
je 0x46919d
mov eax, dword [0x545e38]
call fcn.00448de8
call fcn.004480f4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4690a0]
call fcn.0044e230
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x469210
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4691d9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x545ef4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x546498]
call fcn.0044e928
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691fe
lea eax, [ebp - 4]
mov edx, dword [0x4690a0]
call fcn.0044e354
pop eax
jmp eax

Function at 0x46b6bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0044b820
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00451608
mov edi, eax
cmp edi, 0x104
jbe 0x46b667
mov eax, edi
add eax, eax
call fcn.00447eec
mov esi, eax
jmp 0x46b669
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00451608
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x46b6a2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x46b68c
mov eax, esp
cmp esi, eax
je 0x46b6af
mov eax, esi
call fcn.00447f08
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x46b6e8
cmp bl, 0
je 0x46b6e4
cmp bl, 0x41
jl 0x46b6df
cmp bl, 0x5a
jg 0x46b6df
or bl, 0x20
xor al, bl
inc esi
jmp 0x46b6c3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x46b628

Function at 0x46c01c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0044be40
add esp, 0x800
pop ebx
ret
Function at 0x46e850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x46e86e
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x46e886
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x46e881
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x46e88b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x46e8f9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x46e942
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x46e8b7
inc dword [ebp - 0xc]
jmp 0x46e8cf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x46e8cf
cmp dword [ebp - 0xc], 0
jle 0x46e8cf
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x46e8f1
xor eax, eax
jmp 0x46e8ed
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x46e8ec
mov eax, esi
jmp 0x46e945
inc eax
cmp eax, ecx
jle 0x46e8d9
inc esi
cmp esi, dword [ebp - 8]
jl 0x46e8a3
jmp 0x46e942
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x46e942
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x46e91a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x46e93c
xor eax, eax
jmp 0x46e938
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x46e937
mov eax, esi
jmp 0x46e945
inc eax
cmp eax, ecx
jle 0x46e924
inc esi
cmp esi, dword [ebp - 8]
jl 0x46e902
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46eb34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x46eb51
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x46eb5f
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x46ec81
test ebx, ebx
jl 0x46ec81
test esi, esi
jle 0x46ec81
mov eax, dword [ebp - 8]
call fcn.0044bda4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0044bda4
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x46ec1e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x46ec81
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x46ec03
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x46ebd2
inc dword [ebp - 0x14]
jmp 0x46ebe2
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x46ebe2
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x46ebed
or eax, 0xffffffff
jmp 0x46ec03
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x46ec00
inc eax
jmp 0x46ec03
or eax, 0xffffffff
test eax, eax
jl 0x46ec0b
cmp esi, eax
jg 0x46ebc0
cmp esi, eax
jg 0x46ec16
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x46ec84
inc edx
dec dword [ebp - 0x1c]
jne 0x46ebbc
jmp 0x46ec81
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x46ec81
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x46ec68
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x46ec47
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x46ec52
or eax, 0xffffffff
jmp 0x46ec68
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x46ec65
inc eax
jmp 0x46ec68
or eax, 0xffffffff
test eax, eax
jl 0x46ec70
cmp esi, eax
jg 0x46ec30
cmp esi, eax
jg 0x46ec7b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x46ec84
inc edx
dec dword [ebp - 0x1c]
jne 0x46ec2c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47ffa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47ffa8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x482c34
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x482c4b
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x482c3b
mov eax, ecx
pop ebx
ret
Function at 0x52095c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x520971
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x520eec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x520f04
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x52144c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x521461
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x52270c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x522735
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x523824
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x523956
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x523956
cmp dword [esp + 0x28], 0
je 0x523956
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x523956
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x562290], eax
cmp dword [ebp], 0
jne 0x52390a
mov dword [ebp], 0x5237f4
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x523919
mov dword [eax], 0x5237e4
mov ecx, dword [esi]
test ecx, ecx
je 0x523946
cmp dword [edi], 0
je 0x523956
cmp dword [ebx], 0
je 0x523956
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x523956
cmp dword [ebp], 0
je 0x523956
cmp dword [eax], 0
je 0x523956
xor eax, eax
test ecx, ecx
setne al
jmp 0x523958
mov dword [esi], 0x5237e4
mov ecx, 0x5237e4
cmp dword [edi], 0
jne 0x523924
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret