joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov word [ebp - 8], 0x100
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0xc]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4038aa
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], esi
movdqu xmmword [ebp - 0x44], xmm0
push eax
push 1
mov dword [ebp - 0x44], 0x1f01ff
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x2c], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x4038aa
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4038aa
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4038aa
push edi
push dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4038aa
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xc
push eax
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4038b8
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x4038c8
push eax
call ebx
test esi, esi
je 0x4038cf
push esi
call ebx
test edi, edi
jne 0x4038ee
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b999
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b999
mov esp, ebp
pop ebp
ret
Function at 0x403910
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2bc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [esp + 8], ebx
push edi
test esi, esi
je 0x403b38
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403b38
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
mov ecx, esi
call fcn.00407bf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40396b
lea esi, [eax - 0x66]
jmp 0x403974
mov eax, dword [edi + 0x38]
xor esi, esi
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x74], 0
push 0x31
push eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
mov byte [esp + 0x84], al
lea eax, [esp + 0x85]
push eax
call fcn.004164b0
add esp, 0xc
mov byte [esp + 0x1b8], 0
lea eax, [esp + 0x1b9]
push 0x103
push 0
push eax
call fcn.004164b0
add esp, 0xc
test esi, esi
jne 0x403b38
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], ebx
jbe 0x403b38
nop
sub esp, 0x14
lea eax, [esp + 0x90]
lea edx, [esp + 0x34]
mov ecx, edi
push eax
call fcn.004084e0
add esp, 0x18
test eax, eax
jne 0x403b38
test byte [esp + 0x54], 0x10
jne 0x403ac4
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x1c0]
push str._s_s
push eax
call fcn.00404980
add esp, 0x10
lea eax, [esp + 0x1b8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.4997
sub esp, 8
mov ecx, edi
mov ebx, eax
call fcn.004088f0
add esp, 8
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.00408c30
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
js 0x403ab0
je 0x403ab0
push 0
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ab0
push ecx
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.00408c30
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jns 0x403a78
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00408f40
mov ebx, dword [esp + 0x10]
jmp 0x403b22
push 0x103
lea eax, [esp + 0xb5]
mov byte [esp + 0xb4], 0
push 0
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xb8]
push str._s_s
push eax
call fcn.0040c565
add esp, 0x10
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403b22
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, edi
call fcn.004085e0
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x14]
jb 0x4039e0
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b999
mov esp, ebp
pop ebp
ret
Function at 0x404290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42f8bc]
push esi
add eax, 0xb4
xor esi, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x42579c
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
jne 0x4042ec
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b999
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x420330
push 1
push 0
push 0x420350
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40433c
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b999
mov esp, ebp
pop ebp
ret
Function at 0x405210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x10b8
call fcn.0040ba74
mov esi, eax
add esp, 4
test esi, esi
je 0x4052e9
push str.http:__tj_wyzs.woyoo.com:8800_
push 0x824
push esi
call fcn.0040c1d8
push str.497_REPORT
lea eax, [esi + 0x104c]
push 0x32
push eax
call fcn.0040c1d8
add esp, 0x18
mov dword [esi + 0x10b0], 2
call fcn.00405300
push 1
mov dword [esi + 0x10b4], eax
call fcn.0040ba74
add esp, 4
mov dword [0x42f8cc], eax
mov ecx, esi
call fcn.00405780
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4052e9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004164b0
push dword [esi + 0x1048]
lea eax, [ebp - 0x20c]
push 0x425b58
push eax
call fcn.00406010
add esp, 0x18
lea eax, [ebp - 0x20c]
push edi
push eax
push str.Service_Value
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b999
mov esp, ebp
pop ebp
ret

Function at 0x4054f0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.004175d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4055cd
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x4055cd
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x40558d
cmp byte [eax + 0x195], 0
jne 0x40558d
cmp byte [eax + 0x196], 0
jne 0x40558d
cmp byte [eax + 0x197], 0
jne 0x40558d
cmp byte [eax + 0x198], 0
jne 0x40558d
cmp byte [eax + 0x199], 0
jne 0x40558d
mov eax, dword [eax]
test eax, eax
jne 0x405540
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b999
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x32
push esi
call fcn.0040d27e
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b999
mov esp, ebp
pop ebp
ret 4

Function at 0x4056b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x4056bb
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4056c2
sub edi, ecx
inc edi
push edi
call fcn.0040c42d
push edi
mov esi, eax
push 0
push esi
call fcn.004164b0
push ebx
push edi
push esi
call fcn.0040c510
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x4056fa
mov edi, edi
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x4056f0
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x406770
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x42f8fc], 1
mov byte [0x42f8d0], 0
call fcn.0040c42d
add esp, 4
mov dword [0x42f8f4], eax
test eax, eax
je 0x4067cc
mov ecx, esi
mov dword [0x42f8f8], eax
mov dword [0x42f900], 0x67452301
mov dword [0x42f904], 0xefcdab89
mov dword [0x42f908], 0x98badcfe
mov dword [0x42f90c], 0x10325476
pop esi
jmp fcn.00407020
pop esi
ret

Function at 0x4071b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov eax, esi
xor eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
and eax, 0xff
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
pop esi
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], ecx
pop ebx
pop ebp
ret

Function at 0x407200
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x40727f
push edi
mov edi, dword [esi + 4]
mov eax, 0x34567890
mov edx, dword [esi]
lea ebx, [ebx + 1]
mov esi, dword [ebp + 8]
movsx ecx, cl
xor ecx, edx
shr edx, 8
and ecx, 0xff
mov ecx, dword [esi + ecx*4]
mov esi, dword [ebp - 4]
xor ecx, edx
mov edx, dword [ebp + 8]
mov dword [esi], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 8], eax
mov cl, byte [ebx]
test cl, cl
jne 0x407230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409130
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40913b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00409150
Function at 0x417b9b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041165a
mov dword [ebp - 0x14], eax
cmp dword [0x42f7fc], esi
jne 0x417c8e
push 0x800
push esi
push 0x4217ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x417c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417d6e
push esi
push esi
push 0x4217ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417d6e
push 0x421804
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417d6e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42f7fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42f800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42f804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f80c], eax
test eax, eax
je 0x417c8b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f808], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417cb3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417ca6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417cc8
push 4
pop eax
jmp 0x417d70
cmp dword [ebp - 0x14], esi
je 0x417cc8
push dword [0x42f7fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x417cad
mov eax, dword [0x42f808]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x417d26
cmp dword [0x42f80c], edi
je 0x417d26
push eax
call ebx
push dword [0x42f80c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x417d26
test eax, eax
je 0x417d26
call ecx
test eax, eax
je 0x417d1b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417d1b
test byte [ebp - 8], 1
jne 0x417d26
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417d56
mov eax, dword [0x42f800]
cmp eax, edi
je 0x417d53
push eax
call ebx
test eax, eax
je 0x417d53
call eax
mov esi, eax
test esi, esi
je 0x417d53
mov eax, dword [0x42f804]
cmp eax, edi
je 0x417d53
push eax
call ebx
test eax, eax
je 0x417d53
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42f7fc]
call ebx
test eax, eax
je 0x417d6e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417d70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b999
mov esp, ebp
pop ebp
ret
Function at 0x408460
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x41dad8
push 1
push 0
push 0x41dae8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40848e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41dac8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4084c2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x41a664
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a692
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41a6b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a5ca
jmp 0x41a6b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a6b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a5ca
test edi, edi
mov eax, edi
jne 0x41a69a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x15e45587
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x6f23676d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010c4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x44300c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x445e48
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
leave
ret 0xc

Function at 0x4010f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x44300c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x445e48
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 0x445f80
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret 0x10

Function at 0x401b04
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cld
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lodsb al, byte [esi]
or al, al
je 0x401b5b
cmp al, 0x20
jbe 0x401b3a
cmp al, 0x2b
je 0x401b3a
cmp al, 0x3f
je 0x401b3a
cmp al, 0x26
je 0x401b3a
cmp al, 0x3d
je 0x401b3a
cmp al, 0x25
je 0x401b3a
cmp byte [ebp + 0x10], 0
je 0x401b37
cmp al, 0x80
jae 0x401b3a
stosb byte es:[edi], al
jmp 0x401b10
mov ah, al
mov al, 0x25
stosb byte es:[edi], al
mov al, ah
shr al, 4
add al, 0x30
cmp al, 0x39
jbe 0x401b4c
add al, 7
stosb byte es:[edi], al
mov al, ah
and al, 0xf
add al, 0x30
cmp al, 0x39
jbe 0x401b37
add al, 7
jmp 0x401b37
stosb byte es:[edi], al
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4030ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 8]
push esi
push 2
push eax
push dword [0x445f50]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4031a3
push ebx
push edi
push esi
push dword [0x445f50]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x445f50]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x403103
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40310a
xor eax, eax
jmp 0x4031a1
push edi
push ebx
push esi
call fcn.00402c5c
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
mov edi, dword [esi]
imul ecx, eax
xor ebx, ebx
inc ebx
shl ebx, cl
add edi, esi
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
je 0x40316c
cmp ebx, 0x100
jg 0x40316c
jmp 0x403169
mov eax, dword [edi]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dl, al
shr eax, 8
xchg dl, ah
shl eax, 8
mov al, dl
cmp eax, dword [ebp + 0xc]
jne 0x403166
mov eax, dword [ebp + 0x10]
mov dl, al
shr eax, 8
xchg dl, ah
shl eax, 8
mov al, dl
mov dword [edi], eax
add edi, 4
dec ebx
jns 0x40313c
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 8]
push 0
mov edi, eax
mov eax, dword [ebp - 4]
push esi
lea eax, [eax + ecx*4]
push eax
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4
Function at 0x4041d3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x144
push ebx
push esi
push edi
push 0x43865c
push dword [ebp + 0x78]
call fcn.00402610
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call esi
lea eax, [ebp - 0xd4]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
je 0x4042ae
test byte [ebp - 0xd4], 0x10
lea eax, [ebp - 0xa8]
je 0x40427f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x438658
push eax
call edi
test eax, eax
je 0x40428d
push 0x438654
lea eax, [ebp - 0xa8]
push eax
call edi
test eax, eax
je 0x40428d
push dword [ebp + 0x78]
call fcn.00402610
mov ebx, eax
lea eax, [ebp - 0xa8]
push eax
push ebx
call esi
cld
mov edi, dword [ebp + 0x78]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, 0x5c
mov ah, 0
stosw word es:[edi], ax
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
call fcn.004041d3
test eax, eax
jne 0x4042ba
mov byte [ebx], al
jmp 0x40428d
push dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4042bf
lea eax, [ebp - 0xd4]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404213
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
xor eax, eax
inc eax
jmp 0x4042b0
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call fcn.00402610
push eax
call esi
jmp 0x4042ba

Function at 0x4042d3
Capabilities:
Get file size

Disassembly:
push ebx
xor ebx, ebx
push ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x404346
push ebp
push edi
mov edi, 0x19000
push edi
call fcn.00401000
mov ebp, eax
cmp ebp, ebx
jne 0x4042fd
xor eax, eax
inc eax
jmp 0x404344
push esi
push edi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
cmp esi, 0xffffffff
je 0x404330
test esi, esi
je 0x40432a
push esi
push ebp
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x404334
cmp eax, esi
jne 0x404338
cmp esi, edi
je 0x4042fe
jmp 0x40433a
mov bl, 4
jmp 0x40433a
mov bl, 5
jmp 0x40433a
mov bl, 6
push ebp
call fcn.00401019
movsx eax, bl
pop esi
pop edi
pop ebp
pop ebx
ret 8
Function at 0x40434a
Capabilities:
Create directory

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push 0x104
call fcn.00401000
mov ebx, eax
mov dword [esp + 8], ebx
test ebx, ebx
je 0x40444e
push ebp
mov ebp, dword [esp + 0x14]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call fcn.00402610
push ebx
mov byte [eax - 1], 0
call fcn.004040bc
cmp eax, 2
jne 0x404398
mov dword [esp + 8], 1
jmp 0x404443
mov eax, 0x5c5c
push esi
cmp word [ebp], ax
jne 0x4043cd
push 0x5c
lea esi, [ebp + 2]
push esi
call fcn.004018cc
test eax, eax
jle 0x404442
lea esi, [esi + eax + 1]
push 0x5c
push esi
call fcn.004018cc
test eax, eax
jle 0x404442
lea esi, [esi + eax + 1]
jmp 0x4043e1
cmp byte [ebp], 0
je 0x404442
mov eax, 0x5c3a
cmp word [ebp + 1], ax
jne 0x404442
lea esi, [ebp + 3]
push 0x5c
push esi
call fcn.004018cc
test eax, eax
jle 0x404442
push edi
jmp 0x40442c
lea esi, [esi + eax + 1]
mov eax, esi
sub eax, ebp
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call fcn.004040bc
cmp eax, 2
je 0x40442c
cld
mov edi, dword [esp + 0x14]
xor ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, 0x5c
mov ah, 0
stosw word es:[edi], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404441
push 0x5c
push esi
call fcn.004018cc
cmp eax, 0xffffffff
jne 0x4043f0
mov dword [esp + 0x10], 1
pop edi
pop esi
push ebx
call fcn.00401019
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
pop ecx
ret 4