joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b5e0
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x48b5f1
cmp eax, 9
jne 0x48b5f6
add esi, 2
jmp 0x48b5e4
movzx ecx, word [esi]
test cx, cx
jne 0x48b603
xor al, al
pop esi
pop ecx
ret
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x48b61d
mov eax, dword [esp + 0xc]
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48b6f1
mov ebx, dword [sym.imp.MSVCR100.dll__wcsnicmp]
lea esp, [esp]
lea eax, [ebp - 2]
cmp eax, esi
jbe 0x48b66b
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x48b664
cmp ecx, 9
jne 0x48b66b
sub eax, 2
cmp eax, esi
ja 0x48b657
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x48b689
or byte [esp + 0x13], 1
jmp 0x48b6b5
push edi
push 0x4bd700
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x48b6a0
or byte [esp + 0x13], 4
jmp 0x48b6b5
push edi
push str.Shift
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x48b72e
or byte [esp + 0x13], 0x10
lea esi, [ebp + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x48b6c5
cmp eax, 9
jne 0x48b6ca
add esi, 2
jmp 0x48b6b8
cmp word [esi], 0
je 0x48b72e
lea eax, [esi + 2]
push 0x2b
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x48b650
mov edi, dword [esp + 0x18]
mov bl, byte [esp + 0x13]
cmp word [esi + 2], 0
jne 0x48b736
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [esi]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
lea edi, [esp + 0x1b]
mov esi, eax
call fcn.0041c570
mov bl, byte [esp + 0x1b]
movzx edx, al
mov eax, dword [esp + 0x20]
add esp, 8
mov word [eax + 2], dx
mov edi, eax
jmp 0x48b754
pop edi
pop ebp
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041c480
movzx ecx, al
add esp, 0xc
mov word [edi + 2], cx
test bl, 1
je 0x48b75c
or byte [edi], 8
test bl, 4
je 0x48b764
or byte [edi], 0x10
test bl, 0x10
je 0x48b76c
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret

Function at 0x48b7c0
Capabilities:
Print debug messages

Disassembly:
cmp byte [ecx + 0x251], 0
je 0x48b7e2
mov eax, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push eax
call fcn.004a2810
ret 8
jmp fcn.00449df0
Function at 0x48fa10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x18]
push edi
test eax, eax
je 0x48fa2e
mov edx, dword [esi + 0xc]
mov ecx, eax
add ecx, ecx
mov edi, dword [edx + ecx*8 - 8]
inc edi
jmp 0x48fa33
mov edi, 1
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push edi
push eax
call fcn.0048f7a0
test al, al
jne 0x48fa61
pop edi
pop esi
pop ebp
mov dword [esp + 8], 0x4bd2c4
mov dword [esp + 4], 0x4bd2fc
mov ecx, 0x4ea1d0
jmp fcn.00449df0
lea eax, [edi + ebp - 1]
cdq
pop edi
pop esi
mov dword [ebx], eax
mov dword [ebx + 8], 1
mov dword [ebx + 4], edx
mov eax, 1
pop ebp
ret 8

Function at 0x491200
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4ba188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov esi, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebp + 4], edi
mov dword [esp + 0x28], ebx
cmp ecx, ebx
jg 0x491272
mov dword [ebp + 4], edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
xor ebx, ebx
cmp eax, dword [esp + 0x3c]
jl 0x4912b1
mov eax, dword [0x4e4b24]
mov ecx, 0x42
mov esi, 0x4e6aa8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebx
mov dword [0x4eacd0], ebx
mov dword [0x4eacd4], ebx
cmp dword [0x4e808c], ebx
je 0x4912ad
push 0x4e86f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
add eax, eax
mov ecx, dword [ecx + eax*8]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
push edx
push str.call
xor eax, eax
mov ebx, ecx
call fcn.0048e170
add esp, 0x10
test eax, eax
je 0x49131c
cmp dword [esp + 0x30], 0
jne 0x49133e
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x491270
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x18]
pop ebp
mov eax, 3
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x495d30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20214
call fcn.004b9d80
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x495d4a
cmp word [esi], 0
jne 0x495d4f
mov esi, str.ERROR
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x220], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x20228]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [ebx], 0
je 0x495dcd
cmp word [edi], 0
jne 0x495d8d
lea edi, [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0xffff
lea eax, [esp + 0x224]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4e7de0]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x228]
push eax
push ecx
call fcn.004a2810
pop edi
pop esi
add esp, 0x20214
ret 4
cmp word [edi], 0
je 0x495dee
lea ecx, [esp + 0x10]
push ecx
push 0xffff
lea edx, [esp + 0x224]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x495e06
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x495da8
lea eax, [esp + 0x21c]
cmp word [eax], 0
jne 0x495e26
cmp word [eax + 2], 0
je 0x495da8
mov edx, 0xa
mov word [eax], dx
add eax, 2
jmp 0x495e11
Function at 0x495e30
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
mov esi, eax
mov ebp, 1
push edi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x495ead
cmp word [esi], 0
je 0x495ead
push 4
push 0x4ddc10
push esi
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x495e69
lea eax, [esi + 8]
mov ebx, 0x4daa60
call fcn.00405590
test eax, eax
je 0x495e9c
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x495ead
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x495e8f
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x495e8f
mov edx, dword [esp + 0x26c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495ed6
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, 0x5d
push 0
mov word [edx + esi*2], cx
lea edx, [esp + 0x18]
push edx
push 4
push 0x4dcc7c
push edi
lea ebx, [esi + esi + 2]
call ebp
test eax, eax
je 0x495f33
cmp dword [esp + 0x14], 4
jne 0x495f33
mov ecx, dword [esp + 0x26c]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edi
call ebp
test eax, eax
je 0x495f33
cmp dword [esp + 0x14], ebx
je 0x495f3b
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x495f4a
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x26c]
pop edi
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x4967f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x4968b7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x4e4b24]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x4968c4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004967f0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4968c4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x4968c4
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x49683a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4968e0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
test ebx, ebx
je 0x4969d2
test edi, edi
je 0x4968fb
cmp word [edi], 0
jne 0x496903
test ebp, ebp
je 0x4969d2
mov ecx, dword [0x4e4b24]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4969a4
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x4969bb
push eax
call fcn.004967f0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4969a4
mov eax, 1
test byte [0x4eb2e8], al
jne 0x496982
or dword [0x4eb2e8], eax
push str.RegDeleteKeyExW
push 0x4db328
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eb2e4], eax
jmp 0x496987
mov eax, dword [0x4eb2e4]
mov edx, dword [0x4e4b24]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x4969b1
test eax, eax
je 0x4969b1
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x4969d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4969d9
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4969a2
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4969a4
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4e4b24]
mov edi, dword [esp + 0x10]
mov dword [edx + 0x30], eax
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.00449930
pop edi
pop esi
pop ebp
ret 8
Function at 0x49bf50
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 0x2c]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x49bf7b
sub eax, dword [esi + 0x30]
mov ebx, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
push edx
push eax
mov eax, dword [ebx + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x2c], edi
mov dword [esi + 8], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x49bf98
cmp dword [esi + 0x2c], edi
jne 0x49bf98
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], edi
mov edx, dword [esi]
xor eax, eax
mov word [esi + 0x28], ax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0xc]
push 0
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push eax
push ecx
mov ecx, esi
call edx
test al, al
je 0x49c005
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x49c005
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jg 0x49bfe3
jl 0x49bfde
cmp dword [ebp + 8], edi
jae 0x49bfe3
mov eax, dword [ebp + 8]
jmp 0x49bfe7
mov eax, edi
mov ecx, ebx
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
pop edi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49f3d0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x258
push ebx
test esi, esi
je 0x49f452
cmp word [esi], 0
je 0x49f452
push 4
push 0x4ddc10
push esi
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x49f3fb
lea eax, [esi + 8]
mov ebx, 0x4daa60
call fcn.00405590
test eax, eax
je 0x49f435
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49f452
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x49f42b
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x49f442
mov dword [edi], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop ebx
add esp, 0x258
ret
xor al, al
pop ebx
add esp, 0x258
ret

Function at 0x49f6a0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x49f6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49f6d4
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
Function at 0x49fa30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b9d80
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x49fa6f
lea edx, [esi + esi + 2]
push edx
lea eax, [esp + 8]
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10000
ret
xor ecx, ecx
mov word [edi], cx
pop esi
add esp, 0x10000
ret
Function at 0x4a0350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x4a0377
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
jmp 0x4a037d
mov ebx, dword [0x4e7ecc]
cmp ebx, edi
je 0x4a04db
mov eax, ebp
cmp ebp, edi
jge 0x4a0392
neg eax
movzx eax, ax
jmp 0x4a03c0
jne 0x4a0399
mov eax, 1
lea ecx, [esp + 0x14]
push ecx
push 0x4a0320
push 0xe
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x4e9864
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x1c]
cmp eax, 0x4e9864
je 0x4a04b8
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4a04b8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4a04b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a04b8
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4a040d
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x2c], 0
jne 0x4a0420
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x2c], eax
movzx eax, word [edi + 4]
lea esi, [edi + 6]
cmp eax, 1
jle 0x4a0466
lea edx, [esi + 0xe]
lea edi, [eax - 1]
mov al, byte [edx]
mov cl, byte [esi]
cmp al, cl
jbe 0x4a0448
movzx eax, cl
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setl cl
jmp 0x4a0454
movzx eax, al
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setge cl
mov eax, ecx
test eax, eax
je 0x4a045c
mov esi, edx
add edx, 0xe
dec edi
jne 0x4a0432
mov ebp, dword [esp + 0x28]
movzx edx, word [esi + 0xc]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a04b4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a04b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a04b4
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4a04cc
test edi, edi
je 0x4a04cc
mov dword [eax], ebx
jmp 0x4a04d7
test esi, esi
je 0x4a04d7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4a0511
test ebp, ebp
jle 0x4a04f4
lea eax, [ebp - 1]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4a17e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x80c
push edi
mov edi, eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf0000000
push 0x18
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4a1983
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a1983
test esi, esi
je 0x4a1874
mov ecx, dword [esi]
test ecx, ecx
je 0x4a1874
xor eax, eax
mov edx, 0x4de158
cmp esi, 0x4e4b38
jne 0x4a1860
movzx ecx, word [edx]
jmp 0x4a1863
movzx ecx, word [ecx]
mov word [esp + eax*2 + 0x10], cx
mov ecx, dword [esi + eax*4 + 4]
inc eax
add edx, 0xa
test ecx, ecx
jne 0x4a1853
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x4a1880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a1880
mov ecx, dword [esp + 0xc]
sub eax, edx
sar eax, 1
push 0
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a1983
push 0x800
lea edx, [esp + 0x14]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp edi, 0x80
jne 0x4a18d0
mov eax, 0x660e
jmp 0x4a18e0
xor eax, eax
cmp edi, 0xc0
setne al
add eax, 0x660f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
shl edi, 0x10
push edi
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4a1983
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4a1983
cmp byte [esp + 0x818], 0
je 0x4a1942
mov edx, dword [esp + 0x814]
mov ecx, dword [esp + 4]
add edx, 0x10
push edx
lea eax, [esp + 0x818]
push eax
push ebx
push 0
push 1
push 0
push ecx
call dword [0x4e892c]
jmp 0x4a195c
mov eax, dword [esp + 4]
lea edx, [esp + 0x814]
push edx
push ebx
push 0
push 1
push 0
push eax
call dword [0x4e8930]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x814]
pop edi
add esp, 0x80c
ret
xor eax, eax
pop edi
add esp, 0x80c
ret
Function at 0x4a1990
Capabilities:
Encode data using base64 via winapi

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push 4
lea eax, [edi + 0x2800]
push eax
lea ecx, [esp + 0x20]
push ecx
xor eax, eax
xor ecx, ecx
call fcn.00424650
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0x24
push edx
push 0x4d2670
push esi
mov eax, edi
call fcn.00423eb0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
lea ebx, [esp + 0x18]
call fcn.00424850
mov ebp, dword [esp + 0x14]
cmp ebp, edi
jb 0x4a1a07
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
jmp 0x4a1a0b
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [esp + 0xc]
push eax
push 0
push 1
push ebp
push esi
call ebx
mov ecx, dword [esp + 0xc]
add ecx, 0x10
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
lea edx, [esp + 0xc]
push edx
push eax
push 1
push ebp
push esi
mov dword [esp + 0x28], eax
call ebx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a1a8e
cmp dword [ecx], 0
je 0x4a1a8e
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
inc eax
push 1
push eax
mov eax, 0x100
mov esi, ecx
call fcn.004a17e0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4a1a84
mov ecx, ebx
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4a1a96
xor eax, eax
mov ebx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0x4034b50
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4a1ab8
mov eax, ebp
push 4
lea edx, [esp + 0x24]
push edx
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_HashData]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4a1ad1
mov eax, ebp
add eax, 0x14
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
jne 0x4a1b10
mov ecx, ebp
push ecx
add eax, 0x14
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp esi, dword [esp + 0x34]
je 0x4a1b44
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a1b4e
mov ebp, eax
pop esi
lea eax, [ebp + 0x14]
pop ebp
pop ebx
add esp, 0x24
ret