joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d024f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push ecx
mov eax, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d02a7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x1c]
push edi
call fcn.004b645c
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x4d02c9
push str.Error_accept__ing_server_connect
push ebx
call fcn.004b5af1
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x4d0334
push str.Connection_accepted_from_server_n
push ebx
call fcn.004b5bc7
and dword [edi + 0x284], 0xfffff7ff
push 1
push esi
mov dword [edi + 0x1ac], esi
call fcn.004d8e32
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x610], 0
je 0x4d0332
push 1
push ebx
call fcn.004a94d3
push 1
push esi
push dword [ebx + 0x614]
call dword [ebx + 0x610]
push 0
push ebx
mov esi, eax
call fcn.004a94d3
add esp, 0x1c
test esi, esi
je 0x4d0332
push edi
call fcn.004d06d2
pop ecx
push 0x2a
jmp 0x4d02c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a04e0
mov esp, ebp
pop ebp
ret

Function at 0x4d2206
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x4d2232
push str.Couldnt_set_desired_mode
push edx
call fcn.004b5af1
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4d2286
cmp ecx, 0xc8
je 0x4d2249
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004b5bc7
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4d225a
push edi
call fcn.004d1fb3
pop ecx
jmp 0x4d2282
cmp eax, 0x14
jne 0x4d2267
push edi
call fcn.004d115f
jmp 0x4d2257
cmp eax, 0x15
jne 0x4d2270
push 0xd
jmp 0x4d2277
cmp eax, 0x16
jne 0x4d2284
push 0xe
push 1
push edi
call fcn.004d1bae
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x4dc7a3
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4dc7b3
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x4dc7cc
push 0x1b
pop eax
jmp 0x4dc892
push edi
test esi, esi
je 0x4dc7dd
lea eax, [esi + esi]
push eax
call dword [0x5d40cc]
jmp 0x4dc7e8
push 0x5bd104
call dword [0x5d40d8]
mov edi, eax
pop ecx
test edi, edi
jne 0x4dc7f7
push 0x1b
pop eax
jmp 0x4dc891
xor edx, edx
mov ecx, edx
test esi, esi
je 0x4dc80e
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x4dc7ff
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x4dc87f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4dc874
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x5d40d0]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc898
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 0x28], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4dc8dc
xor al, al
jmp 0x4dc96e
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.004dc97e
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004df8a5
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x4dc935
xor bl, bl
jmp 0x4dc961
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a04e0
mov esp, ebp
pop ebp
ret
Function at 0x4e08fa
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5d40cc]
mov edi, eax
pop ecx
test edi, edi
je 0x4e09e6
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4e0963
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4e0969
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x4e09de
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x4e0983
mov ebx, dword [ebp - 8]
jmp 0x4e09de
push 1
push 0x59c3f7
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x59c3f8
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4e09c0
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f3162
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x4f3188
call fcn.004e991c
jmp 0x4f31b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e8df8
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x4f31b4
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc

Function at 0x4f6ec7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x4f6f28
sub eax, 1
je 0x4f6f0a
sub eax, 3
je 0x4f6f0a
test dword [edi + 0x370], 0x2000
je 0x4f6f43
push esi
call fcn.005389a4
pop ecx
test eax, eax
jne 0x4f6f43
cmp esi, 0x2d
je 0x4f6f43
cmp esi, 0x2e
je 0x4f6f43
cmp esi, 0x2c
je 0x4f6f43
jmp 0x4f6f5e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4f6f43
test dword [edi + 0x370], 0x1000
jmp 0x4f6f41
test byte [edi + 0x374], 0x80
jne 0x4f6f43
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4f6f5e
mov eax, dword [edi + 0x380]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f71cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x2c]
push edi
push esi
call fcn.004e59d9
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], 0x5a069c
mov dword [ebp - 0x24], 0x59f970
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x4f7234
cmp edi, 0xd
jne 0x4f7239
test dword [esi + 0x370], 0x1000
jne 0x4f7239
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4f7239
mov dword [esi + 0x10], ebx
jmp 0x4f7253
mov eax, dword [esi + 0x380]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f92da
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0052eb40
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4f9335
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4f9349
cmp byte [ebp - 6], 1
jne 0x4f9349
cmp dword [ebp - 0x11c], 6
jne 0x4f9349
xor eax, eax
inc eax
jmp 0x4f934b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a04e0
mov esp, ebp
pop ebp
ret

Function at 0x4fc326
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x58fbd4
push dword [ebp + 8]
call fcn.00536cf3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4fc383
push ebx
push edi
push esi
call fcn.00535e0d
push eax
call fcn.0054ab7d
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4fc362
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4fc378
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.005367d1
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.00535aa7
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x500b02
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x78
pop ecx
mov ax, word [edi + 0x210]
add ax, word [ebp + 0xc]
cwde
cdq
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [edi + 0x210], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x500ba8
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
xor edx, edx
mov dword [ebp - 4], ecx
inc edx
mov eax, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
je 0x500b70
mov ecx, edi
call fcn.00501e8b
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x500b4b
cmp si, bx
jge 0x500ba8
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, esi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
mov ecx, edi
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.004e8f80
test bx, bx
je 0x500be7
mov ecx, edi
call fcn.004e6db8
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5048fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x50490a
xor eax, eax
jmp 0x504938
push dword [ecx + 4]
call fcn.004ffe9f
pop ecx
test eax, eax
je 0x504925
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x504906
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4

Function at 0x504a26
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.005048fd
test eax, eax
je 0x504a5b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.00504492
xor eax, eax
inc eax
jmp 0x504b58
push esi
push dword [ebx + 4]
call fcn.004ffe9f
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x504b05
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x504b05
cmp edi, 0x25
je 0x504a95
cmp edi, 0x27
je 0x504aa3
cmp edi, 0x26
je 0x504a95
cmp edi, 0x28
jne 0x504b05
cmp edi, 0x27
je 0x504aa3
cmp edi, 0x28
je 0x504aa3
push 2
jmp 0x504aa5
push 3
pop edi
jmp 0x504ab3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x504aef
push edi
mov ecx, esi
call fcn.004e75e3
mov esi, eax
test esi, esi
jne 0x504aa8
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004e72dc
mov ecx, eax
jmp 0x504ae2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x504aef
push edi
mov ecx, esi
call fcn.004e75e3
mov esi, eax
test esi, esi
jne 0x504ad4
jmp 0x504b00
push 1
mov ecx, esi
call fcn.004e7517
push eax
mov ecx, ebx
call fcn.00504dab
xor eax, eax
inc eax
jmp 0x504b57
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.005069dc
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00504bac
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401f50
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50ab66
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x50ab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x50ac26
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0050a77c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x50abac
push ebx
call fcn.00535aa7
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x50ac02
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x5d42ac]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x50abd7
call fcn.00535aa7
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x50ac02
push esi
push 1
push eax
call fcn.005367d1
push ebx
mov esi, eax
call fcn.00535aa7
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x50ac0b
push dword [ebp - 4]
call dword [0x5d42b0]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x50ac25
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0050ab11
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x512183
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5121a3
xor eax, eax
jmp 0x512202
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x51219f
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x51219f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x51219f
push edi
mov ecx, ebx
call fcn.00511cd6
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.00511cb8
mov ecx, ebx
mov dword [ebx], esi
call fcn.0051225e
test eax, eax
jne 0x512201
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x512498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.004a0767
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x51250e
cmp dword [esi], edi
jbe 0x5124f8
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.0051262b
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x5124c1
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004a0532
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x512559
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jae 0x51257a
xor eax, eax
jmp 0x5125c2
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor esi, esi
push ebx
movzx eax, word [ecx + 0x18]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.0051262b
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x512585
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop ebx
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x5134a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
cmp dword [0x799978], 0x40
jae 0x51358d
mov ecx, dword [ebp + 8]
mov edx, 0xfff80000
push esi
mov esi, dword [ebp + 0xc]
add esi, ecx
add ecx, dword [ebp + 0x14]
push edi
cmp ecx, 0x80000000
lea edi, [ebp - 0x44]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb edx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
mov esi, dword [ebp - 4]
cmovb edi, eax
cmp edi, esi
jae 0x51358b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [0x58ee64]
test eax, eax
je 0x513566
cmp dword [ebp - 0x10], 0x10000
jne 0x51355a
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x51355d
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x51355d
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [0x58ee5c]
mov ebx, eax
test ebx, ebx
jne 0x51356a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x51350f
test ebx, ebx
je 0x51358b
xor eax, eax
cmp dword [eax*4 + 0x799878], 0
je 0x51357e
inc eax
cmp eax, 0x40
jb 0x51356c
jmp 0x51358b
inc dword [0x799978]
mov dword [eax*4 + 0x799878], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522880
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x248
mov eax, 0x58c260
call fcn.004a0b36
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0052eb40
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x5228be
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x254]
call fcn.00405700
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041ad10
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x5228e9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.004060d0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405800
lea eax, [ebp - 0x230]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0057d561
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004057b0
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.004060d0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x249]
cmovae ecx, dword [ebp - 0x230]
push edx
lea edx, [ebp - 0x24a]
mov byte [ebp - 0x249], 0x5c
push edx
lea eax, [ecx + eax*2]
mov byte [ebp - 0x24a], 0x2f
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
call fcn.0051f3e4
add esp, 0x10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
push 1
lea ecx, [ebp - 0x230]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004060d0
mov al, bl
call fcn.004a0ae0
ret 8

Function at 0x52ad27
Capabilities:
Create thread

Disassembly:
push esi
push 0x799c94
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
push eax
push eax
push eax
push 0x52afc5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x799c90], eax
mov eax, esi
pop esi
ret

Function at 0x55051a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005501dd

Function at 0x550525
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055035e

Function at 0x554b54
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00554814