joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xea48f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0xec154c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0xec154c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0xec0378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xea48fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40aa30
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
test byte [0x415750], 8
jne 0x40aa68
mov eax, dword [0x41578c]
test eax, eax
je 0x40aa5a
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40aa90
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x41771f
mov dword [esp + 8], str.MACRO_History
mov dword [esp + 4], 0x415750
mov dword [esp], 3
call fcn.0040a050
jmp 0x40aa4a
mov dword [esp + 0x2c], eax
mov eax, dword [0x415784]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x4177c4
mov dword [esp + 4], str.WHHistory
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
sub esp, 8
leave
lea esp, [ecx - 4]
ret

Function at 0x40e2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3ec
test byte [0x415988], 8
jne 0x40e440
mov ecx, dword [sym.imp.user32.dll_LoadStringA]
mov dword [esp + 0xc], 0xff
mov eax, dword [0x415784]
lea esi, [ebp - 0x27a]
mov dword [esp + 4], 0x12c
mov dword [esp + 8], esi
mov dword [ebp - 0x3dc], ecx
mov dword [esp], eax
call ecx
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
sub esp, 0x10
mov dword [esp], esi
call edi
mov ecx, dword [ebp - 0x3dc]
lea ebx, [esi + eax + 1]
mov eax, 0x70
mov word [ebx + 4], ax
mov eax, dword [0x415784]
add ebx, 6
mov dword [ebx - 6], 0x6c682e2a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x12b
mov dword [esp], eax
call ecx
sub esp, 0x10
mov dword [esp], ebx
call edi
lea eax, [ebx + eax + 1]
lea ebx, [ebp - 0x37e]
mov dword [eax], 0x2a2e2a
mov byte [eax + 4], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3d6], 0x58
sub esp, 8
mov byte [eax], 0
mov eax, dword [0x41578c]
test eax, eax
je 0x40e37e
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3d2], eax
mov eax, dword [0x415784]
mov dword [ebp - 0x3ca], esi
mov dword [ebp - 0x3aa], ebx
mov dword [ebp - 0x3c6], 0
mov dword [ebp - 0x3ce], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c2], 0
mov dword [ebp - 0x3be], 1
mov dword [ebp - 0x3b2], 0
mov dword [ebp - 0x3ba], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3ae], 0
mov dword [ebp - 0x3a6], 0
mov dword [ebp - 0x3a2], 0x800005
mov dword [ebp - 0x3b6], eax
lea eax, [ebp - 0x3d6]
mov dword [ebp - 0x39e], 0
mov dword [ebp - 0x39a], 0
mov dword [ebp - 0x396], 0
mov dword [ebp - 0x392], 0
mov dword [ebp - 0x38e], 0
mov dword [esp], eax
call dword [0x41c2e8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x41859d
mov dword [esp + 8], str.WINHELP_GetOpenFileName
mov dword [esp + 4], 0x415988
mov dword [esp], 3
call fcn.0040e170
jmp 0x40e2b9
Function at 0x411ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0x418a57
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.00411c60
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
Function at 0x4140c0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x414130
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004141d0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x4141d0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call fcn.00414160
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x41425f
cmp al, 9
je 0x414250
cmp al, 0x20
je 0x414250
xor esi, esi
mov dword [ebp - 0x6c], 0
lea esi, [esi]
cmp al, 0x5c
je 0x4142b8
cmp al, 0x22
je 0x4142c8
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x41425f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x414210
test esi, 1
jne 0x414210
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x414250
cmp al, 0x20
je 0x414250
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x41427a
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00411390
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x414227
and dword [ebp - 0x6c], 1
jne 0x414220
xor esi, 1
jmp 0x414227
Function at 0x10002820
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x100028b8
test ebx, ebx
je 0x10002932
cmp word [ebx], 0
je 0x10002928
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002850
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x100028a0
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10002890
test byte [0x10005048], 8
jne 0x100028f0
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AllocSplStr
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002838
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.returning__p_n
mov dword [esp + 8], str.AllocSplStr
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov eax, 2
jmp 0x1000285e
xor esi, esi
jmp 0x100028a9

Function at 0x10002ac0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test byte [0x10005048], 8
jne 0x10002b08
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__ld_____p_n
mov dword [esp + 8], str.DllAllocSplMem
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x10002b40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x10002b80
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.DllFreeSplMem
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002b53
Function at 0x10002bb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x10002bf0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__PTR:__p_n
mov dword [esp + 8], str.DllFreeSplStr
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002bc3

Function at 0x100031f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x10003338
mov dword [esp], str.winspool.drv
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x100050d8], eax
sub esp, 4
test eax, eax
je 0x10003328
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], str.OpenPrinterW
mov dword [esp], eax
call esi
mov dword [ebx], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], str.ClosePrinter
mov dword [esp], eax
call esi
mov dword [ebx + 4], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], str.SpoolerDevQueryPrintW
mov dword [esp], eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], str.SpoolerPrinterEvent
mov dword [esp], eax
call esi
mov dword [ebx + 0xc], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], str.DocumentPropertiesW
mov dword [esp], eax
call esi
mov dword [ebx + 0x10], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], 0xd4
mov dword [esp], eax
call esi
mov dword [ebx + 0x14], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], 0xd5
mov dword [esp], eax
call esi
mov dword [ebx + 0x18], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], 0xd6
mov dword [esp], eax
call esi
mov dword [ebx + 0x1c], eax
mov eax, dword [0x100050d8]
sub esp, 8
mov dword [esp + 4], 0xd7
mov dword [esp], eax
call esi
lea edx, [ebx + 0x24]
mov dword [ebx + 0x20], eax
sub esp, 8
mov eax, ebx
lea esi, [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x10003328
add eax, 4
cmp eax, edx
jne 0x10003308
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 4
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.SplInitializeWinSpoolDrv
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003208
Function at 0x10004360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100043b8
cmp byte [esi + ebx - 1], 0xa
je 0x1000438c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10005194], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x508400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x50841a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x508421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508410
mov eax, 1
add ebx, ebx
jne 0x508433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x508428
jne 0x508444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508428
xor ecx, ecx
sub eax, 3
jb 0x508458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5084ca
mov ebp, eax
add ebx, ebx
jne 0x508463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x508470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x508494
inc ecx
add ebx, ebx
jne 0x508480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x508475
jne 0x508491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5084b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5084a5
jmp 0x508416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5084b4
add edi, ecx
jmp 0x508416
pop esi
mov edi, esi
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5084d2
cmp byte [edi], 1
jne 0x5084d2
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 0x5084d7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x50854f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa678]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa6f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508504
mov ecx, edi
jns 0x508533
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 + 0xa6f8]
or eax, eax
je 0x508549
mov dword [ebx], eax
add ebx, 4
jmp 0x508521
call dword [esi + 0xa6f4]
mov ebp, dword [esi + 0xa6fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x508583
sub esp, 0xffffff80
jmp 0x501cf0
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x1560fc
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x100034e5
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x10003545
mov ebp, 0x10000000
cmp eax, 0x7c
je 0x10003545
cmp eax, 0x29
jne 0x1000354b
cmp dword [esi + 0x10], 0
jne 0x10003545
test dword [esi + 0x50], ebp
je 0x10003643
cmp eax, 0x5d
jne 0x10003520
test dword [esi + 0x50], ebp
je 0x10003637
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10002e2a
mov ecx, esi
call fcn.100052e3
mov ecx, esi
call fcn.10005321
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x100034f9
pop esi
pop ebp
mov al, cl
pop ebx
ret
cmp eax, 0x2e
jne 0x1000355c
push 5
lea ecx, [esi + 0x24]
call fcn.100052a5
jmp 0x1000352d
cmp eax, 0x5c
jne 0x100035a8
mov ecx, esi
call fcn.100052e3
test byte [esi + 0x50], 0x80
je 0x1000359f
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x10003588
push 4
lea ecx, [esi + 0x24]
call fcn.100052a5
mov ecx, esi
call fcn.100052e3
jmp 0x1000353b
cmp al, 0x42
jne 0x1000359f
push 4
lea ecx, [esi + 0x24]
call fcn.100052a5
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000357f
mov ecx, esi
call fcn.1000364d
jmp 0x10003534
cmp eax, 0x5b
jne 0x100035cb
mov ecx, esi
call fcn.100052e3
mov ecx, esi
call fcn.10003c07
push 4
push 0x5d
mov ecx, esi
call fcn.10004a39
jmp 0x10003534
cmp eax, 0x28
jne 0x100035f8
mov ecx, esi
call fcn.100052e3
mov ecx, esi
call fcn.100056bb
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.10004a39
test bl, bl
je 0x1000353b
jmp 0x10003534
cmp eax, 0x5e
jne 0x10003604
push 2
jmp 0x10003577
cmp eax, 0x24
jne 0x10003610
push 3
jmp 0x10003577
cmp eax, 0x2a
je 0x1000363b
cmp eax, 0x2b
je 0x1000363b
cmp eax, 0x3f
je 0x1000363b
cmp eax, 0x7b
je 0x1000363b
cmp eax, 0x7d
jne 0x10003512
test dword [esi + 0x50], ebp
je 0x1000363f
jmp 0x10003520
push 4
jmp 0x10003645
push 0xa
jmp 0x10003645
push 6
jmp 0x10003645
push 5
mov ecx, esi
call fcn.10004a08
int3

Function at 0x10013ad3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ad0
push 0x10024ac8
push str.FlsAlloc
push 0x1e
call fcn.1001399d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013b07
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021174]
call esi
jmp 0x10013b0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013b51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ae0
push 0x10024ad8
push str.FlsGetValue
push 0x20
call fcn.1001399d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013b88
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10018081
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001811e
push ebx
push esi
call fcn.1001804a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10016de1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100180cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001811d
push edi
push eax
call fcn.100124a1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100180eb
call fcn.100123fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001811c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016de1
add esp, 0x20
test eax, eax
jne 0x1001810a
push edi
call fcn.100123fe
jmp 0x10018112
push ebx
call fcn.100123fe
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret