joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405696
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x40], bl
jne 0x4056bd
push 0x4056c0
mov byte [esi + 0x40], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x44], eax
cmp eax, ebx
jne 0x4096d0
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4097dc
push eax
call edi
push 0x4097cc
push dword [esi + 0x44]
mov dword [esi + 0xc], eax
call edi
push 0x4097b8
push dword [esi + 0x44]
mov dword [esi + 0x10], eax
call edi
push 0x4097a4
push dword [esi + 0x44]
mov dword [esi], eax
call edi
push 0x40978c
push dword [esi + 0x44]
mov dword [esi + 4], eax
call edi
push 0x409778
push dword [esi + 0x44]
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
pop edi
cmp ecx, ebx
je 0x409766
cmp dword [esi + 0x10], ebx
je 0x409766
cmp dword [esi], ebx
je 0x409766
cmp dword [esi + 4], ebx
je 0x409766
cmp dword [esi + 8], ebx
je 0x409766
cmp eax, ebx
je 0x409766
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x38]
call ecx
mov dword [esi + 0x3c], eax
cmp eax, ebx
jne 0x4056bd
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x44], ebx
jmp 0x4056bd

Function at 0x405cb2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00405c91
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x405d54
cmp dword [ebp - 0x94], 5
jb 0x405d27
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x405d70
call fcn.004049f5
test eax, eax
jl 0x40911d
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004018c9
leave
ret
cmp dword [ebp - 0x88], 1
je 0x409105
jmp 0x405d27
cmp dword [ebp - 0x90], 0
jbe 0x405d27
jmp 0x405d23
cmp dword [ebp - 0x94], 4
ja 0x405d23
je 0x405d63
jmp 0x405d27
mov byte [0x416788], 1
jmp 0x405d45
Function at 0x406d16
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0x406ed4
mov dword [ebp - 8], edi
call sub.slc.dll_SLGetWindowsInformationDWORD
test eax, eax
jl 0x40963b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push edi
mov ebx, 0x406de8
push ebx
push 0x80000002
mov dword [ebp - 0xc], edi
call esi
test eax, eax
je 0x409643
lea eax, [ebp - 4]
push eax
push 1
push edi
push ebx
push 0x80000001
mov dword [ebp - 0x10], edi
call esi
test eax, eax
je 0x409677
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push edi
push 0x406e48
push 0x80000002
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x406dc7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x406eb8
push dword [ebp - 4]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4096ab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x406de2
cmp dword [ebp - 0xc], edi
jne 0x406de2
cmp dword [ebp - 0x10], edi
jne 0x406de2
cmp dword [ebp - 0x14], edi
je 0x406de2
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x406ddd
mov dword [ebp - 8], edi
jmp 0x406d3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4096b8
push dword [ebp - 4]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409669
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d61
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x4096b8
push dword [ebp - 4]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40969d
mov dword [ebp - 0x10], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d7b
mov dword [ebp - 0x14], ebx
jmp 0x406dbe
Function at 0x40a1c2
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, ecx
call fcn.0040a17d
test eax, eax
je 0x40a2e1
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
jne 0x40a212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40a208
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x40a438
jmp 0x40a24c
push 0x10020
add edi, 0x70
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40a25d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40a244
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x40a3c8
push 1
call fcn.004018db
add esp, 0xc
mov eax, esi
jmp 0x40a2df
lea ecx, [ebp - 0x24]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x40a2a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40a286
and eax, edi
or eax, esi
mov ebx, eax
cmp ebx, 0x426
je 0x40a2a0
push ebx
push 0x40a358
push 1
call fcn.004018db
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40a2cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40a2bb
and eax, edi
or eax, esi
mov ebx, eax
push ebx
push 0x40a2e8
push 1
call fcn.004018db
add esp, 0xc
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40ab02
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x40ab1d
push 0x80004005
call fcn.0040a608
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40ab1f
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c084
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00405279
mov edi, eax
cmp edi, esi
je 0x40c0f6
lea ecx, [ebp - 0x214]
call fcn.004019ed
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004018c9
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c114
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040c084
cmp eax, esi
jne 0x40c15f
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x40c0fe
lea ecx, [ebp - 0x214]
call fcn.004019ed
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0040a9aa
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004019ed
mov eax, esi
jmp 0x40c0e6
Function at 0x40f323
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x418
mov eax, 0x413d9b
call fcn.00403eac
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x418], eax
cmp eax, esi
jne 0x40f37c
call fcn.0040a703
mov esi, eax
jmp 0x40f45b
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40f395
call fcn.0040a703
jmp 0x40f44d
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x40f38b
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x40f3f1
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40f3d7
lea ecx, [ebp - 0x414]
call fcn.0040b26c
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.0040b17b
mov eax, esi
call fcn.0041237c
ret 0x10
push eax
lea ecx, [ebp - 0x414]
call fcn.0040ccaf
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], esi
jne 0x40f413
mov esi, 0x8007000e
jmp 0x40f44f
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40f38b
mov edx, dword [ebp - 0x414]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x424]
call fcn.0040e7ed
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40f3dc
lea ecx, [ebp - 0x414]
call fcn.0040b26c
jmp 0x40f3dc
Function at 0x410339
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
mov eax, dword [esi]
push 0x64
push esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jge 0x410364
push edi
push 0x4104e0
push 1
call fcn.004018db
add esp, 0xc
mov ebx, edi
mov ecx, esi
call fcn.0040a1c2
test eax, eax
jge 0x410371
mov ebx, eax
push 0
push 0
mov ecx, esi
call fcn.0040f9f0
mov esi, eax
test esi, esi
jge 0x410394
push esi
push 0x410458
push 1
call fcn.004018db
add esp, 0xc
mov ebx, esi
push 0x4103d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4103ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4103bc
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push 0x4104e0
push 1
call fcn.004018db
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x411cf1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
jne 0x411d0e
mov eax, 0x80070057
pop edi
pop ebx
leave
ret
push esi
push ebx
push ebx
push 0x20006
push ebx
push ebx
push eax
push 0x80000002
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401a0b
mov esi, eax
cmp esi, ebx
je 0x411d66
push esi
push dword [edi]
push 0x411e88
push 1
call fcn.004018db
add esp, 0x10
cmp esi, ebx
jle 0x411d57
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
lea ecx, [ebp - 0x1c]
call fcn.004019ed
mov eax, ebx
pop esi
jmp 0x411d0a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 8], ecx
mov esi, 0x401c74
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], eax
call fcn.00401c54
mov edi, eax
cmp edi, ebx
je 0x411dbd
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push 0x411e00
push 1
call fcn.004018db
add esp, 0x18
cmp edi, ebx
jle 0x411db9
and edi, 0xffff
or edi, 0x80070000
mov ebx, edi
jmp 0x411d59
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
mov edi, 0x404398
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x411d59
push esi
push ebx
push edi
push 0x411e00
push 1
call fcn.004018db
add esp, 0x14
jmp 0x411d47
Function at 0x401b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov cl, 0x64
mov al, 0x6c
push esi
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, 0x69
push edi
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x24]
mov dl, 0x6e
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1a], cl
push eax
lea ecx, [ebp - 0x10]
mov bl, 0x74
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 7], 0
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x49
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x54
mov byte [ebp - 0x16], 0x68
mov byte [ebp - 0x15], 0x75
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x6b
mov byte [ebp - 0x12], 0
call fcn.004869f0
mov ebx, eax
xor esi, esi
lea edi, [esi + ebx]
push edi
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00407ac0
mov edx, dword [ebp - 0x28]
mov cl, byte [edx]
cmp cl, 0xe8
je 0x401c41
cmp cl, 0xe9
je 0x401c41
add esi, eax
cmp esi, 0x1000
jb 0x401c02
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046df75
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 1]
mov ecx, dword [ebp - 4]
lea eax, [eax + edi + 5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046df75
mov esp, ebp
pop ebp
ret

Function at 0x4030d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x529868], 0
jne 0x403194
cmp byte [0x529869], 0
mov al, 1
mov byte [0x529868], al
jne 0x40310d
push 0x5294c0
mov byte [0x529869], al
push eax
call fcn.015da8b0
call fcn.00402790
call fcn.004031b0
mov dword [0x529864], eax
mov al, 0x73
mov cl, 0x65
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x20]
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x15], cl
mov dl, 0x6f
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0x36
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], dl
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x12], 0
call fcn.0166f980
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046df75
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x17], al
lea eax, [ebp - 0x24]
mov byte [ebp - 0x22], cl
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x18], cl
mov dl, 0x6e
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x49
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x66
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0
call fcn.0177c444

Function at 0x42ca60
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push esi
mov dword [edi], 0
call fcn.0042c9f0
mov ebx, eax
test ebx, ebx
jne 0x42ca93
mov dword [edi], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x20]
mov edx, dword [esi + 0x78]
push 0
push ecx
push edx
call fcn.00470fad
mov eax, dword [esi + 0x78]
mov ecx, dword [ebx + 0x28]
mov edx, dword [0x529924]
push eax
push 1
push ecx
push edx
call fcn.004714dd
mov ecx, dword [0x529b30]
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x529924]
mov dword [esp + 0x30], 0
mov edx, dword [ebx + 0x28]
push ecx
push edx
push eax
call fcn.004e25e0
add esp, 0x30
test eax, eax
jne 0x42cbea
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x24]
jne 0x42cbea
mov eax, dword [0x529b30]
movzx esi, word [eax]
movzx edi, word [eax + 2]
xor eax, eax
push 0x2c
push eax
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00473d70
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov eax, 0x18
mov word [esp + 0x2e], ax
push 0
mov ecx, 1
lea eax, [esp + 0x4c]
mov word [esp + 0x30], cx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
push eax
mov ecx, 0xa
lea esi, [esp + 0x28]
lea edi, [esp + 0x50]
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x38], 0
push 0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
call fcn.016b79c3
mov dword [edi], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44a2ed
Capabilities:
Authenticate hmac
Encode data using base64
Execute anti-debugging instructions
Parse credit card information
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
sal dl, 0x23
mov eax, dword [0x51f620]
cmp si, 0x4be6
xor eax, esp
push eax
lea eax, [esp + 0x1438]
jmp loc.018054a5

Function at 0x44a500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x44a52f
push ebx
push edi
jmp 0x44a510
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x521a18]
inc ecx
cmp ecx, edx
jb 0x44a510
pop edi
pop ebx
not eax
ret
Function at 0x450470
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x45055b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4504a7
cmp dword [esi + 0x40], edi
jae 0x4504a7
push eax
call fcn.004507e1
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x4504bf
lea eax, [edi + edi]
push eax
call fcn.004507ec
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00475dd0
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x450558
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f670]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50f670]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4504d7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x45059a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x45057f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00475dd0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4505bc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
push ebx
call 0x17acd77
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x536c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x536d8c
test eax, eax
je 0x536d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x551ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x536d73
lea edi, [eax + 4]
jmp 0x536cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x536cec
mov dword [ebp - 4], 2
jmp 0x536d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x536d03
mov dword [ebp - 4], 1
jmp 0x536d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x536d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x536d46
mov byte [ecx], 0x3d
jmp 0x536d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x536d5d
mov byte [ecx], 0x3d
jmp 0x536d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x536cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x541bd3
Capabilities:
Authenticate hmac
Encode data using base64
Execute anti-debugging instructions
Parse credit card information
Parse pe header
Resolve function by parsing pe exports

Disassembly:
call fcn.00474a30
mov eax, dword [0x51f620]
ror dl, 0x1c
mov dl, bl
xor eax, esp
rcr dl, cl
mov dword [esp + 0x1420], eax
ror dl, cl
setg dl
push ebx
jmp loc.0044a2ed