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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10015a85
and dword [ebp - 0x14], 0
cmp dword [0x100309f4], 0
mov dword [ebp - 0x18], eax
jne 0x1001c2e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001c38d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001c38d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100309f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100309f8], eax
call edi
push eax
call esi
push 0x10029ea4
push ebx
mov dword [0x100309fc], eax
call edi
push eax
call esi
mov dword [0x10030a04], eax
test eax, eax
je 0x1001c2e5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10030a00], eax
mov eax, dword [0x10030a00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001c33e
cmp dword [0x10030a04], ecx
je 0x1001c33e
push eax
call esi
push dword [0x10030a04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001c33e
test ebx, ebx
je 0x1001c33e
call edi
test eax, eax
je 0x1001c335
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001c335
test byte [ebp - 8], 1
jne 0x1001c33e
or dword [ebp + 0x10], 0x200000
jmp 0x1001c371
mov eax, dword [0x100309f8]
cmp eax, dword [ebp - 0x18]
je 0x1001c371
push eax
call esi
test eax, eax
je 0x1001c371
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001c371
mov eax, dword [0x100309fc]
cmp eax, dword [ebp - 0x18]
je 0x1001c371
push eax
call esi
test eax, eax
je 0x1001c371
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100309f4]
call esi
test eax, eax
je 0x1001c38d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001c38f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001306f
leave
ret
Function at 0x403a3b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x405008], 2
push ebx
jne 0x403b9d
xor ebx, ebx
push ebx
push ebx
call fcn.0040396e
test eax, eax
jne 0x403a6b
mov dword [0x405008], 1
jmp 0x403b9d
lea eax, [ebp - 0xc]
mov byte [ebp - 0x18], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403b9d
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040396e
cmp dword [ebp - 0x10], 5
jb 0x403af3
push 0x401650
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x403b93
push 0x401638
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403ae7
push 0x405008
push dword [ebp - 0xc]
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403b93
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403b93
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x403b89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403b89
push dword [ebp - 4]
push reloc.gdi32.dll_Rectangle
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x403b89
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x403b82
cmp dword [esi], ebx
jbe 0x403b82
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x403b78
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x403b5f
jmp 0x403b82
mov dword [0x405008], 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov ecx, dword [0x405008]
pop ebx
mov eax, ecx
dec eax
dec eax
neg eax
sbb eax, eax
and eax, ecx
leave
ret
Function at 0x403bc3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
call fcn.0040396e
test eax, eax
je 0x403c18
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x401688
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c4a
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x40166c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c4a
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x10c]
push 0x401660
push eax
call fcn.00403529
lea eax, [ebp - 0x10c]
push eax
call fcn.0040391a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x403c50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
mov dword [ebp - 4], 0x80004005
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x58], 0x44
cmp esi, edi
je 0x403c7b
mov dword [esi], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403cf7
cmp esi, edi
mov dword [ebp - 4], edi
je 0x403ca3
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
cmp dword [ebp + 0xc], edi
je 0x403ce2
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.00403d19
test eax, eax
jne 0x403cbe
mov dword [ebp - 4], 0x80070102
cmp dword [ebp - 4], edi
jl 0x403ce2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x403ce2
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
jmp 0x403d13
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403d07
call esi
jmp 0x403d13
call esi
and eax, reloc.gdi32.dll_SelectClipRgn
or eax, 0x80070000
pop edi
pop esi
leave
ret 0x10

Function at 0x403d9b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push esi
push esi
call fcn.0040396e
test eax, eax
je 0x403df5
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403df5
lea eax, [ebp - 0x10]
push eax
push 0x4016bc
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408902
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408902
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408902
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408902
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408902
mov dword [0x41203c], eax
call fcn.00408902
test eax, eax
jge 0x402550
push 8
call fcn.00408902
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408902
pop ecx
push 1
call fcn.00408902
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408902
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408902
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408902
jmp 0x402495

Function at 0x408902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x408911
pop dword [ebp - 0x10]
mov eax, 0xd3d47c77
sub eax, 0xd393f366
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x39a25
push 0
mov eax, 0x8c9d400
sub eax, 0x888f328
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xa3448511
sub ecx, 0xa3443b5f
mov ebx, eax
mov edi, 0x30a3e532
add edi, 0xcf9d5692
add edi, dword [ebp - 0x10]
mov edx, 0x5ed6182a
sub edx, 0x50f88af7
mov esi, dword [edi]
add esi, edx
sub dword [ebp - 4], 0x7ee4472a
mov dword [ebx], esi
xor dword [ebp - 4], 0xe913272e
add ebx, 0x451e976a
add ebx, 0xbae1689a
add edi, 0x101c81de
add edi, 0xefe37e26
loop 0x408970
add eax, 0xd6c61758
sub eax, 0xd6c4fdbd
mov ebx, eax
add eax, 0xbfd545fb
sub eax, 0xbfd545f6
mov ecx, 0xaa2604a0
sub ecx, 0xa9e604a0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x57
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xb6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xcb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x7d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xcb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x55
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x39
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xed
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4012c5
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403fa4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403fa0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401196
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403fa0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403fa8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40138f
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401376
mov eax, dword [0x403fa4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x4d1ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8f000]
push edi
jmp 0x4d1aca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d1ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1ac0
mov eax, 1
add ebx, ebx
jne 0x4d1ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d1af4
jne 0x4d1b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1b13
dec eax
add ebx, ebx
jne 0x4d1b00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d1ad8
add ebx, ebx
jne 0x4d1b0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d1b65
xor ecx, ecx
sub eax, 3
jb 0x4d1b2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d1b9a
sar eax, 1
mov ebp, eax
jmp 0x4d1b36
add ebx, ebx
jne 0x4d1b36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1b04
inc ecx
add ebx, ebx
jne 0x4d1b44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1b04
add ebx, ebx
jne 0x4d1b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d1b46
jne 0x4d1b62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d1b46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d1b84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d1b76
jmp 0x4d1ac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d1b84
add edi, ecx
jmp 0x4d1ac6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d1ba2
cmp byte [edi], 0x11
jne 0x4d1ba2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d1ba7
lea edi, [esi + 0xcd000]
mov eax, dword [edi]
or eax, eax
je 0x4d1c1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf203c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf2190]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d1bd4
mov ecx, edi
jns 0x4d1c03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf2194]
or eax, eax
je 0x4d1c19
mov dword [ebx], eax
add ebx, 4
jmp 0x4d1bf1
call dword [esi + 0xf21a4]
mov ebp, dword [esi + 0xf2198]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d1c53
sub esp, 0xffffff80
jmp 0x416310
Function at 0x4031ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403249
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403249
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x403239
cmp esi, ecx
jae 0x403249
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x403227
cmp esi, ecx
jae 0x403249
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x40324b
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40978c
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4098e8
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x4098e8
cmp ecx, 0x29
jne 0x4097cc
cmp dword [esi + 0x10], 0
jne 0x4098e8
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x4098ec
jmp 0x4098a6
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x4097ea
push 5
lea ecx, [esi + 0x24]
call fcn.00409a01
mov ecx, esi
call fcn.00409763
jmp 0x4098d6
cmp ecx, 0x5c
jne 0x409840
mov ecx, esi
call fcn.00409763
test byte [edi], 0x80
je 0x409834
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x40981c
push 4
lea ecx, [esi + 0x24]
call fcn.00409a01
mov ecx, esi
call fcn.00409763
jmp 0x4098dd
cmp ecx, 0x42
jne 0x409834
push 4
lea ecx, [esi + 0x24]
call fcn.00409a01
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x409810
mov ecx, esi
call fcn.0040a5ef
jmp 0x4098d6
cmp ecx, 0x5b
jne 0x409860
mov ecx, esi
call fcn.00409763
mov ecx, esi
call fcn.0040a5a3
cmp dword [esi + 0x4c], 0x5d
je 0x4097de
push 4
jmp 0x4098ee
cmp ecx, 0x28
jne 0x40987d
mov ecx, esi
call fcn.00409763
mov ecx, esi
call fcn.0040a695
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4098ec
jmp 0x4098cb
cmp ecx, 0x5e
jne 0x409886
push 2
jmp 0x409808
cmp ecx, 0x24
jne 0x409892
push 3
jmp 0x409808
cmp ecx, 0x2a
je 0x4098e4
cmp ecx, 0x2b
je 0x4098e4
cmp ecx, 0x3f
je 0x4098e4
cmp ecx, 0x7b
je 0x4098e4
cmp ecx, 0x7d
jne 0x4098b3
test dword [edi], edx
jne 0x4098bc
push 6
jmp 0x4098ee
cmp ecx, 0x5d
jne 0x4098bc
test dword [edi], edx
je 0x409859
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040a7fc
mov bl, 1
mov ecx, esi
call fcn.00409763
test bl, bl
je 0x4098dd
mov ecx, esi
call fcn.0040a71a
mov al, 1
jmp 0x409793
push 0xa
jmp 0x4098ee
pop edi
pop esi
pop ebx
ret
push 5
call fcn.004088e2
int3
Function at 0x416a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x663000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00416d80
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.00407e7d
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx ebx, ax
test ecx, ecx
je 0x416ac7
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x416ac7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x416ae1
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.004147b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de150
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x663000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x4177c9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41778e
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
jmp 0x41779b
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
lea ecx, [eax + ecx*2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4177bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41781a
mov eax, edx
push ecx
push eax
call fcn.005af9e7
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
and dword [esi + 0x3c], 0xfffffffe
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005b681f
int3