joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451028
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4510ca
cmp dword [ebx + 0x90], 0
jne 0x4510c4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450f74
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4510c4
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
test al, 8
je 0x45108a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4510c4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0040aca8
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451099
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4512e8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x493558]
cmp dword [eax + 0x170], 0
je 0x45144d
test bl, bl
jne 0x45139b
cmp dword [esi + 0x98], 0
jne 0x451390
mov eax, esi
call fcn.00453bcc
push eax
push 0x4511f4
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x40], 0
je 0x451361
mov eax, dword [0x493558]
cmp byte [eax + 0xcf], 0
je 0x451361
mov eax, dword [esi + 0xd4]
call fcn.0042cec0
mov edi, eax
cmp edi, 0
jl 0x451361
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45134a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x451390
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0040aca8
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x451370
inc dword [esi + 0x98]
jmp 0x45144d
cmp dword [esi + 0x98], 0
jle 0x45144d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x45144d
cmp dword [esi + 0x40], 0
je 0x4513f8
mov eax, dword [0x493558]
cmp byte [eax + 0xcf], 0
je 0x4513f8
mov eax, dword [esi + 0xd4]
call fcn.0042cec0
mov edi, eax
cmp edi, 0
jl 0x4513f8
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4513e1
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x451427
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0040aca8
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x451407
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4469f0]
call fcn.0042d080
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x452008
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x452073
cmp byte [ebx + 0xcf], 0
jne 0x452073
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0042ba0c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x452060
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x452080
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0042b8d0
jmp 0x452080
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0042b8d0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x45338c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4533fa
mov eax, esi
call fcn.00464028
test al, al
je 0x4533fa
mov eax, dword [ebx + 0x80]
call fcn.00463c7c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4533fa
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4533ee
push 0
mov eax, dword [ebx + 0x80]
call fcn.00463c7c
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0045b3b0
jmp 0x4533fa
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004531d8
pop esi
pop ebx
ret
Function at 0x458b54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x49361c], 0
je 0x458c95
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48e088]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x458c95
mov eax, dword [0x493620]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x49361c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x458c64
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x49361c]
call fcn.0040aca8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x458c5c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x458c5c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x458c5c
mov eax, dword [ebp - 0x14]
call fcn.00463c7c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x458c5c
push ebp
call fcn.00458b10
pop ecx
test al, al
jne 0x458c5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0042a1d0
test al, al
je 0x458c5c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.0042a1d0
cmp byte [ebp - 1], 0
je 0x458c5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00415a88
test al, al
je 0x458c5c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x493620]
call fcn.00458284
inc edi
dec ebx
jne 0x458bb9
mov eax, dword [0x493620]
cmp dword [eax + 8], 0
jle 0x458c7c
mov eax, dword [0x493620]
call fcn.0045833c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x458c95
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00458974
pop ecx
test al, al
jne 0x458c95
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460968
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00415a70
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0045afd0
test ebx, ebx
jne 0x4609bb
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004607fc
mov ebx, eax
test ebx, ebx
je 0x460aa6
cmp esi, ebx
je 0x4609e4
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4609f9
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x460a31
add eax, 0xffffff5f
sub eax, 2
jb 0x460a49
dec eax
sub eax, 2
jb 0x460a5d
dec eax
sub eax, 2
jb 0x460a53
jmp 0x460a67
add eax, 0xfffffdff
sub eax, 2
jb 0x460a49
dec eax
sub eax, 2
jb 0x460a5d
dec eax
sub eax, 2
jb 0x460a53
jmp 0x460a67
mov byte [esp + 0x120], 0
jmp 0x460a6f
mov byte [esp + 0x120], 2
jmp 0x460a6f
mov byte [esp + 0x120], 1
jmp 0x460a6f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044709c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045c7a4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x460aa8
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x46d460
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4885dc
call fcn.004772d8
mov word [ebp - 0x18], 0xc
mov edx, 0x488af8
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.00472108
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46d4ad
mov word [ebp - 0x18], 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.0047088c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x46d4b0
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472f18
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x489b68
call fcn.004772d8
mov word [ebp - 0x18], 0xc
mov edx, 0x489ef0
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.00472108
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x472f65
mov word [ebp - 0x18], 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.0047088c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x472f68
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478184
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4781a0
call fcn.00479314
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4781bf
test bl, 1
je 0x4781bf
call fcn.0047e5d0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x47b4a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00476f80
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00477010
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00477010
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x48be15
lea ecx, [ebp - 0x200]
push ecx
call fcn.00476f80
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00477010
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0047c748
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x47b5b1
push esi
call fcn.00477010
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00477010
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00476374
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x47b588
xor eax, eax
jmp 0x47b63a
push esi
call fcn.00477010
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00477010
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00476ed8
add esp, 0xc
jmp 0x47b5f3
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.00477010
pop ecx
push eax
push esi
call fcn.00477010
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00477010
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00476394
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x47b5f3
xor eax, eax
jmp 0x47b63a
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00476f80
add esp, 8
push 0x48be17
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00476f80
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00476f80
add esp, 8
push 0x48be19
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00476f80
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e564
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x47e591
jmp 0x47e5c8
call fcn.0047e514
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00477010
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00477010
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47e64c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x48c440], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47e726
cmp dword [0x48c43c], 0
jne 0x47e726
cmp dword [0x48c550], 0
je 0x47e6e0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047e414
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47e6c6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047e414
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47e6c6
lea ebx, [ebp - 0x84]
jmp 0x47e6c7
inc ebx
call fcn.0047e604
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47e761
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x48c444
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00477010
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x48c447
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x47e761
cmp dword [0x48c43c], 0
je 0x47e740
cmp dword [0x48c43c], 0xffffffff
je 0x47e761
push esi
call dword [0x48c43c]
pop ecx
mov eax, dword [0x48c440]
test eax, eax
je 0x47e761
cmp dword [0x48c440], 0xffffffff
je 0x47e761
cmp byte [eax], 0
je 0x47e761
push esi
push eax
call fcn.0047e564
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f254
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x47f2da
mov eax, dword [0x4943a4]
inc dword [0x4943a4]
test eax, eax
jne 0x47f2da
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x494370], eax
mov edx, dword [ebp + 0x10]
mov dword [0x48508b], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00478bc4
pop ecx
cmp dword [0x48c498], 0
je 0x47f2c5
call fcn.0047f0d0
mov ebx, eax
test eax, eax
je 0x47f2c5
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x47f2c5
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x47f2da
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x48c498], eax
call fcn.0047f0d8
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.0047f3e8
mov ebx, eax
test edi, edi
jne 0x47f349
test edi, edi
jne 0x47f31a
dec dword [0x4943a4]
jne 0x47f31a
cmp dword [0x494370], 0
je 0x47f31a
mov eax, dword [0x494370]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x494370], edx
cmp dword [0x4943a4], 0
jne 0x47f349
cmp dword [0x48c498], 0
jne 0x47f349
cmp dword [0x48c488], 0
je 0x47f33b
call dword [0x48c488]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.0047f0d8
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x482db4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x48d9bc
call fcn.004772d8
mov word [ebp - 0x14], 0xc
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x30], eax
push 0x20
push 0
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
call fcn.00476ed8
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x1d5d7a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1d5d7b2
pushal
call 0x1d5d7b8
pop ebp
sub ebp, 0x10
sub ebp, 0x195d7a8
jmp 0x1d5d7ce
add byte [eax], al
add byte [ecx - 0x6a285713], al
add ecx, ebp
add al, 0
add byte [eax], al
call 0xba4286c4
test al, 0xd7
xchg ebp, eax
add dword [ebx], eax
lds eax, [ecx + 0x4cc0]
add byte [ecx + 0x5c5], bh
mov eax, 0x195d7a8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0xf477efc6
xor byte [eax], dl
inc eax
dec ecx
jne 0x1d5d7e5
jmp 0x1d5d7f8
dec ebp
or ecx, dword [ebp + 0x4f]
cli
mov dh, 0xc6
inc edi
pop es
mov dh, 0xc6
lds ecx, [ebx]
jle 0x1d5d7ca
mov dh, 0xc6
jl 0x1d5d7fd
mov dh, 0xc6
xor dword [eax*8 - 0x35b8b2f2], esp
mov dh, 0xc6
lds eax, [ebx]
dec ebx
mov byte [0xc24f3ae2], al
loop 0x1d5d7bc
scasb al, byte es:[edi]
push ss
out dx, eax
xchg esp, eax
invalid
Function at 0x4048bb
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.00404850
xor eax, eax
mov edx, dword [eax + 0x427490]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x4048c8
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x405594
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x4055c1
test cl, 7
je 0x4055c1
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42d2a0]
dec esi
inc ecx
jmp 0x4055a2
cmp esi, 8
jb 0x405664
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42d6a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42d2a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42daa0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42e2a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42e6a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42eaa0]
movzx edx, dl
xor edi, dword [edx*4 + 0x42dea0]
movzx eax, al
xor edi, dword [eax*4 + 0x42eea0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x4055d3
pop ebx
jmp 0x405664
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42d2a0]
dec esi
inc ecx
test esi, esi
ja 0x405650
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40598b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x4059d5
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410472
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410774
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004107ed
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x4059f5
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4059e4
cmp esi, ebx
jae 0x405a0d
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a0b0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.00410472
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410774
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.00410774
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004107ed
lea eax, [ebp - 0x160]
push eax
call fcn.00410472
xor ecx, ecx
test esi, esi
jbe 0x405a77
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a66
pop edi
cmp esi, ebx
jae 0x405a90
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a0b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410774
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410774
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.004107ed
pop esi
pop ebx
leave
ret 0x14