joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x472495
mov dword [ebp - 0x38], edi
jmp 0x4724b4
cmp byte [edi], 0
jne 0x4724a3
mov dword [ebp - 0x38], 0
jmp 0x4724b4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4724a8
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
call fcn.00461b10
cmp dword [eax + 0x14], 8
jb 0x4724c7
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x4724e8
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
test esi, esi
jne 0x472501
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x472630
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050283e
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x472532
mov dword [ebp - 0x40], edi
jmp 0x47254f
cmp byte [edi], 0
jne 0x472540
mov dword [ebp - 0x40], 0
jmp 0x47254f
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x472543
sub edi, ecx
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1c]
call fcn.00461b10
cmp dword [eax + 0x14], 8
jb 0x472562
mov eax, dword [eax]
push dword [ebp - 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x47257e
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp word [esi], ax
jne 0x47259b
xor ecx, ecx
jmp 0x4725af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4725a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00405941
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.004619f0
mov edi, eax
cmp ebx, edi
je 0x4725f3
cmp dword [ebx + 0x14], 0x10
jb 0x4725da
push dword [ebx]
call fcn.0050269b
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.004050f6
cmp dword [ebp - 8], 0x10
jb 0x472604
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x20], 8
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jb 0x472627
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
push esi
call fcn.005028a5
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
Function at 0x472a70
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x472b1f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x472b1f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405941
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x472ad7
mov eax, dword [esi]
jmp 0x472ad9
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x472b0c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x472b0c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405941
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4730e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov ecx, dword [ebx]
test ecx, ecx
je 0x473271
cmp ecx, 0xffffffff
je 0x473271
cmp byte [ebx + 0x34], 0
mov edx, 0x1000002
push 0
push 0
push 0
mov eax, 2
cmovne eax, edx
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
lea edi, [ebx + 0x30]
mov dword [ebp - 0x1c], esi
cmp dword [edi], esi
je 0x473217
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4731ed
cmp eax, 0xffffffff
je 0x4731ed
call fcn.0046cb00
mov dword [ebp - 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x768f28]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x473196
call fcn.0046fd50
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x768f28], 0
jne 0x473189
call fcn.0046f8e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x768f28]
push dword [ebp - 8]
mov eax, dword [ecx]
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x18]
call dword [eax + 8]
mov ecx, dword [0x768f28]
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x4731dd
call fcn.0046fd50
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x768f28], 0
jne 0x4731d0
call fcn.0046f8e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x768f28]
mov eax, dword [ecx]
push dword [ebp - 0x18]
call dword [eax]
mov esi, dword [ebp - 0x1c]
mov dword [edi], 0
test esi, esi
je 0x47320e
cmp esi, 0xffffffff
je 0x47320e
mov dword [edi], esi
call fcn.0046cb00
push eax
mov eax, dword [ebp + 4]
mov edx, edi
push eax
mov ecx, esi
call fcn.0046fc90
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
test eax, eax
je 0x473271
cmp eax, 0xffffffff
je 0x473271
xorps xmm0, xmm0
mov ecx, ebx
movq qword [ebp - 0x14], xmm0
call fcn.00471550
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
test edx, edx
ja 0x473271
jb 0x473247
cmp ecx, 0x7ffffffe
ja 0x473271
push 0
push dword [ebp - 0x14]
mov dword [ebx + 0x2c], eax
push dword [ebp - 0x10]
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x28], eax
test eax, eax
je 0x473271
mov dword [ebx + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4781c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, word [edx + 0x14]
add eax, 0x18
mov dword [ebp - 4], edx
add eax, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp edi, dword [eax + 0xc]
lea ecx, [eax + 0xc]
jae 0x4781e8
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
movzx ebx, word [edx + 6]
xor eax, eax
push esi
test ebx, ebx
je 0x478231
lea esi, [eax + 1]
cmp esi, ebx
jne 0x478200
mov edx, dword [edx + 0x50]
jmp 0x478203
mov edx, dword [ecx + 0x28]
cmp edi, dword [ecx]
jb 0x47820b
cmp edi, edx
jb 0x478219
mov eax, esi
add ecx, 0x28
cmp eax, ebx
jae 0x478231
mov edx, dword [ebp - 4]
jmp 0x4781f4
mov edx, dword [ebp - 8]
lea eax, [eax + eax*4]
pop esi
pop ebx
mov ecx, dword [edx + eax*8 + 0x14]
sub ecx, dword [edx + eax*8 + 0xc]
lea eax, [edi + ecx]
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x478d00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 8
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x478d46
cmp byte [0x768f84], al
jne 0x478d71
int3
test bl, 1
je 0x478d59
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.0045cee0
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x478d23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.00505223
int3

Function at 0x4790a0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.005091d0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x4790d8
mov byte [esi + 8], 1
call ebx
jmp 0x4790de
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4790fa
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x4790b0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x47c2a0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x47d640
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5c2460]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x5c3990]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.005028a5
add esp, 4
mov edi, 0x100
jmp 0x47d6a0
mov esi, dword [0x768f90]
xor dl, dl
test esi, esi
jle 0x47d6d8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x47d6d3
mov eax, dword [esi*4 + 0x5da460]
test eax, eax
je 0x47d6d3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x47d6b0
dec edi
test edi, edi
jle 0x47d6e1
test dl, dl
jne 0x47d6a0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x47e8d4
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x5b4448
call fcn.00509540
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x47e93b
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x47e93b
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x47e93b
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x47e93b
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x47e944
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00509585
ret
Function at 0x47e9c0
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x768f9c]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x768fb0]
test edx, edx
jne 0x47ea0e
test eax, eax
je 0x47ea21
mov edx, eax
mov dword [0x768f9c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x47ea21
cmp ecx, ebx
jb 0x47ea21
cmp ecx, edi
jbe 0x47eaf9
mov edx, eax
test eax, eax
jmp 0x47ea43
test edx, edx
je 0x47ea3e
mov eax, dword [edx + 8]
test eax, eax
je 0x47ea3e
cmp eax, ebx
jb 0x47ea3e
cmp eax, edi
jbe 0x47eaf9
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x768f9c], edx
jne 0x47ea27
movzx eax, si
sub esi, eax
mov ecx, esi
cmp esi, ebx
jbe 0x47eb99
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47eb99
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x47ea94
cmp dword [ebp - 0x30], eax
jae 0x47eaa6
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x47ea5a
jmp 0x47eb99
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x768f9c], edx
test edx, edx
je 0x47eb99
mov eax, dword [0x768fb0]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x768fb0], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec esi
jne 0x47eaeb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x47eb9d
cmp esi, edi
ja 0x47eb9d
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x47eb9f
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47eb9d
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x47eb91
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x47eb94
movzx edx, si
test edx, edx
je 0x47eb72
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x768f9c], edx
test edx, edx
jne 0x47eac7
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x47eb22
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ec07
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x768fa4], 0
je 0x47ec1b
mov eax, 0x10dd
jmp 0x47ec70
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x768fa4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x47ec14
push esi
mov esi, dword [0x768fb0]
mov dword [0x768fa8], eax
mov dword [0x768f98], eax
mov dword [0x768fa0], eax
mov dword [0x768fac], eax
mov dword [0x768f94], eax
jmp 0x47ec69
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x47ec54
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47ec74
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x768fa4], eax
je 0x47ec90
mov eax, 0x10dd
jmp 0x47ed18
push ebx
push esi
push edi
mov edi, dword [0x768f98]
xor ebx, ebx
test edi, edi
je 0x47ecda
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x47eccb
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x47eccb
call fcn.0047eba6
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0050269b
mov edi, esi
pop ecx
test esi, esi
jne 0x47ec9f
mov dword [0x768f98], ebx
call fcn.0047e995
mov edi, dword [0x768fa0]
test edi, edi
je 0x47ed07
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.0050269b
mov edi, esi
pop ecx
test esi, esi
jne 0x47ecef
pop edi
pop esi
mov dword [0x768fa0], ebx
xor eax, eax
mov dword [0x768fa4], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ef75
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x768fac]
push ebx
mov ebx, ecx
test eax, eax
jne 0x47efe1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp ebx, eax
jne 0x47ef8f
xor eax, eax
pop ebx
ret
push esi
push edi
push 8
pop esi
push esi
call fcn.005026c6
mov edi, eax
pop ecx
test edi, edi
je 0x47efbc
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x47efcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.0050269b
pop ecx
and dword [0x768f94], 0
mov eax, esi
mov dword [0x768fac], esi
jmp 0x47efdf
mov eax, dword [0x768fa0]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
mov dword [0x768fa0], edi
pop edi
pop esi
pop ebx
ret
Function at 0x47efe6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x768fa4], eax
je 0x47f010
mov eax, 0x10dd
jmp 0x47f1b0
mov eax, dword [0x768fac]
test eax, eax
jne 0x47f1b0
test ebx, ebx
jne 0x47f029
push 6
pop eax
jmp 0x47f1b0
mov ecx, dword [ebx]
push esi
test ecx, ecx
jne 0x47f03e
push 6
pop edi
mov dword [0x768fac], edi
jmp 0x47f17e
mov esi, edi
mov ebx, edi
call fcn.0047ebc7
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.0047ebc7
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 4]
jne 0x47f06b
cmp dword [0x768fa8], ebx
jne 0x47f17b
jmp 0x47f15f
push 0x18
call fcn.005026c6
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
test ebx, ebx
jne 0x47f084
push 8
pop edi
jmp 0x47f15f
mov ecx, dword [ebp - 4]
call fcn.0047e9c0
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x47f07c
mov eax, dword [ebp - 4]
mov ebx, edi
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
push ecx
push ecx
lea ecx, [ebx + esi]
mov dword [ebp - 0x10], edi
mov edx, eax
call fcn.0047f1b8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], edi
jne 0x47f0d3
mov ecx, dword [ebp - 8]
mov ebx, eax
sub ebx, dword [ebp - 4]
call fcn.0047e94a
test eax, eax
jne 0x47f0d3
mov eax, dword [ebp - 0x1c]
cmp ebx, 5
jl 0x47f09d
mov dword [ebp - 8], ebx
cmp ebx, 5
mov ebx, dword [ebp - 0x20]
jge 0x47f0ec
cmp dword [0x768fa8], 0
push 9
pop edi
jne 0x47f165
jmp 0x47f15f
mov eax, dword [ebp - 8]
cmp eax, 0x12
jbe 0x47f0f8
push 6
jmp 0x47f07e
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
add edx, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
add esi, 0x17
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov byte [esi], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
and dword [ebp - 0x24], eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, esi
sub edx, ecx
cmp ecx, esi
cmova edx, dword [ebp - 0x24]
test edx, edx
je 0x47f13a
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x47f131
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [ebp - 8]
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x47f188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc]
mov edi, eax
mov dword [0x768fac], edi
test esi, esi
je 0x47f170
mov ecx, esi
call fcn.0047eba6
test ebx, ebx
je 0x47f17b
push ebx
call fcn.0050269b
pop ecx
mov ebx, dword [ebp - 0x14]
mov dword [0x768f94], ebx
mov eax, edi
jmp 0x47f1af
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [0x768f98]
mov dword [ebx], eax
xor eax, eax
mov dword [0x768f98], ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47f738
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov dword [ebp - 0xfc], ecx
movzx ecx, byte [edx + str.80_]
mov eax, ecx
and ecx, 7
sar eax, 3
mov al, byte [eax + esi]
test byte [ecx*2 + 0x553a60], al
setne al
mov byte [ebp + edx - 0x74], al
inc edx
cmp edx, 0x38
jl 0x47f759
push 0x1e
xor ebx, ebx
pop edi
cmp dword [ebp + 0xc], 1
mov esi, edi
je 0x47f78f
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x553da0]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0xf8], eax
cmp ecx, 0x1c
jge 0x47f7bb
mov al, byte [ebp + ecx - 0x74]
jmp 0x47f7c2
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x47f7b0
mov ecx, dword [ebp - 0xf8]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x47f7e3
mov al, byte [ebp + ecx - 0x74]
jmp 0x47f7ea
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x47f7d8
xor ecx, ecx
movzx eax, byte [ecx + 0x553a70]
cmp byte [ebp + eax - 0x3c], 0
je 0x47f813
mov eax, dword [ecx*4 + 0x5541f0]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x553a88]
cmp byte [ebp + eax - 0x3c], 0
je 0x47f82f
mov eax, dword [ecx*4 + 0x5541f0]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x47f7f7
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x47f784
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xf4]
push eax
call fcn.0047f867
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 8
Function at 0x47f957
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
mov dword [ebp - 4], 8
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 edi, ecx
shr edi, 8
xor edi, edx
and edi, 0xff00ff
xor edx, edi
shl edi, 8
xor edi, ecx
rol edi, 1
mov ebx, edi
xor ebx, edx
and ebx, 0xaaaaaaaa
xor edi, ebx
xor ebx, edx
rol ebx, 1
mov eax, dword [ebp + 0xc]
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x5540f0]
or esi, dword [eax*4 + 0x553eb0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x553aa0]
or esi, dword [edx*4 + 0x553ca0]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
xor edx, edi
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x554250]
or ecx, dword [eax*4 + 0x553db0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x553ba0]
or ecx, dword [edx*4 + 0x553fb0]
mov eax, dword [ebp + 0xc]
or ecx, esi
xor ebx, ecx
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x5540f0]
or esi, dword [eax*4 + 0x553eb0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x553aa0]
mov eax, dword [ebp + 0xc]
or esi, dword [edx*4 + 0x553ca0]
mov edx, dword [eax]
add eax, 4
xor edx, ebx
mov dword [ebp + 0xc], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x554250]
or ecx, dword [eax*4 + 0x553db0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x553ba0]
or ecx, dword [edx*4 + 0x553fb0]
or ecx, esi
xor edi, ecx
dec dword [ebp - 4]
jne 0x47f9cc
ror edi, 1
mov edx, edi
mov esi, dword [ebp + 8]
xor edx, ebx
and edx, 0xaaaaaaaa
xor edi, edx
xor edx, ebx
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor edi, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor edx, eax
mov eax, edi
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor edi, eax
mov ecx, edi
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, edi
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8