joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004025da
push 0x404004
push section..data
call fcn.004025c0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004025f2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4024d0
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
jne 0x40245b
mov eax, dword [0x40468e]
jmp 0x4024b8
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop eax
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, edi
push 0x4046d0
push dword [0x4046a6]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4046d0
push dword [0x4046a6]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
push 0
push 0
push 0
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetMessageW]
and eax, eax
je 0x4024b5
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x402497
mov eax, dword [ebp - 0x14]
call fcn.00401fd0
pop ebx
pop edi
pop esi
leave
ret 0x10
push ebp
mov ebp, esp
sub esp, 0x50
mov ebx, str.dewjts
mov eax, dword [ebp + 8]
mov dword [0x4045b0], eax
push str.Troots
mov edi, dword [0x4045b0]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
push 0x7f02
mov dword [ebp - 0x38], edi
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov eax, 0
mov dword [ebp - 0x34], eax
mov eax, 3
mov dword [ebp - 0x48], eax
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x30], eax
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
xor eax, eax
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x30
mov eax, 0x402080
mov dword [ebp - 0x44], eax
mov eax, 0xe
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor eax, eax
mov dword [0x4045b4], ebp
mov edi, eax
inc eax
push edi
push dword [0x4045b0]
dec eax
push edi
push edi
push eax
push ebx
push edi
push edi
push 0x80ca0000
push str.Troots
push str.dewjts
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
jmp 0x402450
Function at 0x4019a1
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push 0x230
mov eax, 0x565908
call fcn.0053d749
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x230], 0
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x234], eax
call fcn.00401414
push str.DCEX.Model
lea ecx, [ebp - 0x220]
call fcn.0040266d
and dword [ebp - 4], 0
push edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00401c01
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00402a50
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00401464
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402a50
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 0x598ee8
test eax, eax
je 0x401b73
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040266d
push dword [ebp - 0x228]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00401c01
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.00402a50
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040266d
push str.epsonEpson_Scan_2ModelsES
push eax
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 6
call fcn.00401c58
push dword [ebp - 0x228]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401c01
push str.DCP.ini
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 8
call fcn.00401c58
add esp, 0x24
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00402a50
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.00402a50
push dword [ebp - 0x220]
call edi
test eax, eax
je 0x401b53
push dword [ebp - 0x220]
push 0
push str.DataVersion
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x401b53
js 0x401b53
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401464
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00402a50
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402a50
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0040266d
push dword [ebp - 0x228]
mov dword [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401c01
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.00402a50
mov ebx, dword [ebp - 0x234]
push dword [ebx]
call edi
test eax, eax
je 0x401beb
push dword [ebx]
push 0
push str.DataVersion
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x401beb
cmp eax, dword [ebp - 0x230]
jl 0x401beb
lea eax, [ebp - 0x224]
push eax
mov ecx, ebx
call fcn.00401464
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402a50
call fcn.0053d7cc
ret 8
Function at 0x402ace
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push 0xac
mov eax, 0x565872
call fcn.0053d749
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 0xb8]
push eax
mov esi, ecx
mov byte [ebp - 0xb1], bl
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402b7b
push 0x2f
mov esi, str...COMMONHash256.cpp
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x402b1e
push 0x2f
jmp 0x402b2e
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x402b39
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x402b3b
mov eax, esi
push 4
push 0x12
push eax
lea esi, [ebp - 0x60]
call fcn.00404e75
mov esi, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_in_AcquireContext_0x_08x__n
push ebx
mov ecx, esi
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
or dword [ebp - 4], 0xffffffff
call fcn.00404ee1
jmp 0x402c0a
push esi
push 0x10
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x402c03
push 0x2f
mov esi, str...COMMONHash256.cpp
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x402ba5
push 0x2f
jmp 0x402bb5
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x402bc0
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x402bc2
mov eax, esi
push 4
push 0x18
push eax
lea esi, [ebp - 0xb0]
call fcn.00404e75
mov esi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_in_CryptGenRandom_0x_08x__n
push ebx
mov ecx, esi
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
pop ecx
lea ecx, [ebp - 0xb0]
jmp 0x402b6d
mov byte [ebp - 0xb1], 1
cmp dword [ebp - 0xb8], ebx
je 0x402c1f
push ebx
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0xb1]
call fcn.0053d7cc
ret
Function at 0x4031ea
Capabilities:
Enumerate files on windows

Disassembly:
push 0x348
mov eax, 0x568b29
call fcn.0053d749
mov eax, dword [ebp + 8]
mov ebx, ecx
lea esi, [ebx + 0xd0]
mov edi, edx
mov dword [ebp - 0x27c], eax
call fcn.004037fc
push edi
lea ecx, [ebp - 0x26c]
call fcn.0040266d
and dword [ebp - 4], 0
push 0x5990c4
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00401c58
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [ebp - 0x284], 0
mov dword [ebp - 0x270], eax
call fcn.00403887
mov esi, eax
mov dword [esi], esi
mov dword [ebp - 0x288], esi
mov dword [esi + 4], esi
cmp dword [ebp - 0x270], 0xffffffff
mov byte [ebp - 4], 2
je 0x403348
push 0x5990e4
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00401c58
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 3
call fcn.00401c58
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.00402a50
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x354]
push dword [ebp - 0x27c]
push dword [ebp - 0x268]
call fcn.0040c2bc
lea eax, [ebp - 0x354]
push eax
lea edi, [ebp - 0x288]
mov byte [ebp - 4], 6
call fcn.004037c0
lea ecx, [ebp - 0x354]
call fcn.0040bd6f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00402a50
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403283
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x288]
xor eax, eax
mov dword [ebp - 0x268], eax
cmp dword [ebp + 0xc], eax
jle 0x40339a
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jle 0x403388
mov eax, dword [esi]
jmp 0x40336a
cmp dword [eax + 0x24], ecx
je 0x403370
mov eax, dword [eax]
cmp eax, esi
jne 0x403363
jmp 0x403388
cmp dword [ebx + 0xd4], 0x1e
jae 0x403388
add eax, 8
push eax
lea edi, [ebx + 0xd0]
call fcn.004037c0
mov eax, dword [ebp - 0x268]
inc eax
mov dword [ebp - 0x268], eax
cmp eax, dword [ebp + 0xc]
jl 0x403355
mov ebx, dword [ebx + 0xd4]
lea esi, [ebp - 0x288]
call fcn.004037fc
push dword [ebp - 0x288]
call fcn.004382c2
pop ecx
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.00402a50
mov eax, ebx
call fcn.0053d7cc
ret 0xc
Function at 0x404601
Capabilities:
Get file version info

Disassembly:
push 0x54
mov eax, 0x563962
call fcn.0053d77f
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x54], edi
mov byte [edi], bl
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ecx
cmp eax, ebx
je 0x404705
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ecx
call fcn.00403e94
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x404656
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
push esi
call fcn.004382b7
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
pop ecx
jae 0x404676
lea eax, [ebp - 0x30]
push dword [ebp - 0x50]
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4046e6
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x5993f4
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x30]
jae 0x4046a8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xc]
push edx
movzx edx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push edx
push eax
push ecx
push str._nFile_information_n_____s_Ver__d._d._d._d
lea ecx, [ebp - 0x4c]
call fcn.0040414c
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401dc3
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401e0d
push dword [ebp - 0x50]
call fcn.004382c2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00401e0d
jmp 0x404705
mov eax, edi
call fcn.0053d7db
ret

Function at 0x4047d2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
lea esi, [edi + 8]
mov ecx, esi
call fcn.004020cd
mov eax, dword [edi + 0x18]
test eax, eax
je 0x404829
mov edx, dword [esi + 0x10]
dec eax
cmp edx, eax
ja 0x404800
push str.invalid_string_position
call fcn.00556627
push ebx
mov ebx, dword [esi + 0x14]
cmp ebx, 0x10
jb 0x40480d
mov ecx, dword [esi]
jmp 0x40480f
mov ecx, esi
cmp byte [ecx + eax], 0x5c
jne 0x404828
cmp edx, eax
jbe 0x4047f6
cmp ebx, 0x10
jb 0x404822
mov ecx, dword [esi]
jmp 0x404824
mov ecx, esi
mov byte [ecx + eax], 0
pop ebx
cmp dword [edi + 4], 0
jle 0x40485c
cmp dword [esi + 0x14], 0x10
jb 0x404839
mov eax, dword [esi]
jmp 0x40483b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40484b
test al, 0x10
jne 0x40485c
cmp dword [esi + 0x14], 0x10
jb 0x404853
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
pop ebp
ret 4
Function at 0x40535d
Capabilities:
Read .ini file

Disassembly:
push 0x68
mov eax, 0x565693
call fcn.0053d749
mov eax, dword [ebp + 8]
mov edi, ecx
push 0x5ca9b4
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], eax
mov esi, edx
call fcn.00403d5c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00403e94
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00403f3d
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401e0d
cmp dword [esi + 0x14], 0x10
jb 0x4053bc
mov ecx, dword [esi]
jmp 0x4053be
mov ecx, esi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4053ca
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push ebx
push str.Period
push eax
call edi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x70], eax
jb 0x4053e5
mov esi, dword [esi]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4053f1
lea eax, [ebp - 0x2c]
push esi
push ebx
push str.LogLevel
push eax
call edi
mov esi, eax
call fcn.00402a7e
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
call fcn.00402a7e
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x64], ecx
call fcn.00402a7e
push dword [ebp - 0x6c]
mov dword [eax + 4], esi
call fcn.00402a7e
mov edi, eax
call fcn.004047d2
call fcn.00402a7e
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [eax + 0x24]
call fcn.004020cd
call fcn.00402a7e
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.00404861
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401e0d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401e0d
mov esi, dword [ebp - 0x68]
cmp esi, ebx
je 0x40547d
mov eax, dword [esi]
cmp eax, ebx
je 0x405476
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.004382c2
pop ecx
call fcn.0053d7cc
ret
Function at 0x406491
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5632c7
call fcn.0053d749
mov ebx, ecx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x34], ebx
je 0x406581
cmp byte [ebx + 0x49], 0
je 0x406581
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4064c9
xor al, al
jmp 0x406583
push 0
push 8
pop edi
lea esi, [ebp - 0x2c]
call fcn.0040622f
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406520
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push eax
push edx
push dword [ebp - 0x38]
call dword [esi + 0x18]
xor edi, edi
sub eax, edi
je 0x406525
dec eax
je 0x406529
dec eax
dec eax
je 0x40657d
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401e0d
mov al, bl
jmp 0x406583
mov edx, dword [ebp - 0x2c]
jmp 0x4064ee
mov byte [ebx + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406535
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40655b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406548
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.0053a091
add esp, 0x10
cmp esi, eax
jne 0x40650f
cmp byte [ebx + 0x49], 0
je 0x40657d
cmp esi, edi
jne 0x4064e0
push edi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00402076
mov ebx, dword [ebp - 0x34]
jmp 0x4064e0
mov bl, 1
jmp 0x406511
mov al, 1
call fcn.0053d7cc
ret
Function at 0x407d45
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x40]
xor al, al
push edi
mov bl, 1
cmp ecx, 0xffffffff
je 0x407ed9
mov edi, 0x10000000
cmp ecx, 0x7c
je 0x407ed9
cmp ecx, 0x29
jne 0x407d89
cmp dword [esi + 0x10], 0
jne 0x407ed9
test dword [esi + 0x44], edi
jne 0x407d89
push 5
call fcn.00556c6b
pop ecx
jmp 0x407ec2
cmp ecx, 0x2e
jne 0x407da5
push 5
lea eax, [esi + 0x18]
push eax
call fcn.00407fbe
mov eax, esi
call fcn.00407d1d
jmp 0x407ec2
cmp ecx, 0x5c
jne 0x407e02
mov eax, esi
call fcn.00407d1d
mov eax, dword [esi + 0x44]
and eax, 0x80
je 0x407dd8
cmp byte [esi + 0x3e], 0x62
jne 0x407dd8
push 4
lea eax, [esi + 0x18]
push eax
call fcn.00407fbe
mov eax, esi
call fcn.00407d1d
jmp 0x407ec9
test eax, eax
je 0x407df6
cmp byte [esi + 0x3e], 0x42
jne 0x407df6
push 4
lea eax, [esi + 0x18]
push eax
call fcn.00407fbe
mov eax, dword [esi + 0x1c]
xor dword [eax + 8], 1
jmp 0x407dcc
mov eax, esi
call fcn.00408927
jmp 0x407ec2
cmp ecx, 0x5b
jne 0x407e2c
mov eax, esi
call fcn.00407d1d
mov eax, esi
call fcn.004088de
cmp dword [esi + 0x40], 0x5d
je 0x407d99
push 4
call fcn.00556c6b
pop ecx
jmp 0x407d99
cmp ecx, 0x28
jne 0x407e56
mov eax, esi
call fcn.00407d1d
call fcn.004089f9
cmp dword [esi + 0x40], 0x29
mov bl, al
je 0x407e4d
push 5
call fcn.00556c6b
pop ecx
mov eax, esi
call fcn.00407d1d
jmp 0x407ebe
cmp ecx, 0x5e
jne 0x407e62
push 2
jmp 0x407dc3
cmp ecx, 0x24
jne 0x407e6e
push 3
jmp 0x407dc3
cmp ecx, 0x2a
je 0x407eb6
cmp ecx, 0x2b
je 0x407eb6
cmp ecx, 0x3f
je 0x407eb6
cmp ecx, 0x7b
je 0x407eb6
cmp ecx, 0x7d
jne 0x407e93
test dword [esi + 0x44], edi
jne 0x407e93
push 6
jmp 0x407d7e
cmp ecx, 0x5d
jne 0x407ea4
test dword [esi + 0x44], edi
jne 0x407ea4
push 4
jmp 0x407d7e
movzx eax, byte [esi + 0x3e]
push eax
lea eax, [esi + 0x18]
call fcn.00408bdb
jmp 0x407d99
push 0xa
call fcn.00556c6b
pop ecx
test bl, bl
je 0x407ec9
mov eax, esi
call fcn.00408aef
mov ecx, dword [esi + 0x40]
mov al, 1
mov bl, al
cmp ecx, 0xffffffff
jne 0x407d5f
pop edi
pop esi
pop ebx
ret

Function at 0x40a17f
Capabilities:
Read .ini file

Disassembly:
push 0x8c
mov eax, 0x565653
call fcn.0053d749
and dword [ebp - 0x98], 0
lea ecx, [ebp - 0x98]
call fcn.00412a52
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401c58
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff0
call fcn.00402a50
push dword [ebp - 0x94]
mov esi, 0x599710
push 0
push str.KeywordLock
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40a233
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.00538860
add esp, 0xc
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push 0x40
push eax
push 0x599168
push str.Keyword
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
mov ecx, ebx
call fcn.0040266d
jmp 0x40a240
call fcn.00438329
push eax
mov ecx, ebx
call fcn.00402a28
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff0
call fcn.00402a50
mov eax, ebx
call fcn.0053d7cc
ret
Function at 0x40a256
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x5681a0
call fcn.0053d6e0
lea ecx, [ebp - 0x14]
call fcn.00412a52
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401c58
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402a50
push dword [ebp - 0x10]
push 0
push str.GroupEnabled
push 0x599710
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
neg eax
sbb esi, esi
add ecx, 0xfffffff0
neg esi
call fcn.00402a50
mov eax, esi
call fcn.0053d7b8
ret

Function at 0x40a2b9
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x5681a0
call fcn.0053d6e0
lea ecx, [ebp - 0x14]
call fcn.00412a52
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401c58
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402a50
push dword [ebp - 0x10]
push 0
push str.GroupNumber
push 0x599710
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402a50
mov eax, esi
call fcn.0053d7b8
ret

Function at 0x40a318
Capabilities:
Read .ini file

Disassembly:
push 0x21c
mov eax, 0x565615
call fcn.0053d749
and dword [ebp - 4], 0
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], edi
call fcn.00412a52
push str.NSMInfo.ini
push eax
xor esi, esi
lea eax, [ebp - 0x21c]
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.00401c58
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402a50
call fcn.00438329
push eax
mov ecx, edi
call fcn.00402a28
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x599168
push str.Name
push 0x599710
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push 0x599768
push edi
call fcn.0040ab0a
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402a50
mov eax, edi
call fcn.0053d7cc
ret

Function at 0x40a56b
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x5655b5
call fcn.0053d749
lea ecx, [ebp - 0x224]
call fcn.00412a52
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00401c58
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402a50
call fcn.00438329
push eax
lea ecx, [ebp - 0x220]
call fcn.00402a28
mov byte [ebp - 4], 3
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x599168
push str.Name
push 0x599710
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push 0x599768
push eax
call fcn.0040ab0a
mov eax, dword [ebp - 0x220]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x40a618
lea ecx, [eax - 0x10]
jmp 0x40a638
push ecx
lea esi, [eax - 0x10]
mov dword [ebp - 0x224], esp
mov edi, esp
push esi
call fcn.00402741
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.0040a689
pop ecx
mov ecx, esi
call fcn.00402a50
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402a50
call fcn.0053d7cc
ret