joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b45
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408160
call fcn.004048d4
mov edi, 0x94
mov eax, edi
call fcn.00404920
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4142bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4142c8], eax
mov edx, dword [esi + 8]
mov dword [0x4142cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4142c0], esi
cmp ecx, 2
je 0x403ba5
or esi, 0x8000
mov dword [0x4142c0], esi
shl eax, 8
add eax, edx
mov dword [0x4142c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403be0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403be0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403bf8
cmp eax, 0x20b
je 0x403be5
mov dword [ebp - 0x1c], esi
jmp 0x403c0c
cmp dword [ecx + 0x84], 0xe
jbe 0x403be0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403c06
cmp dword [ecx + 0x74], 0xe
jbe 0x403be0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404883
pop ecx
test eax, eax
jne 0x403c38
cmp dword [0x4142ac], 1
jne 0x403c25
call fcn.0040402c
push 0x1c
call fcn.00403eb5
push 0xff
call fcn.00403d1e
pop ecx
pop ecx
call fcn.004047e1
mov dword [ebp - 4], esi
call fcn.00404636
test eax, eax
jge 0x403c51
push 0x1b
call fcn.00403b20
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4147f4], eax
call fcn.00404514
mov dword [0x4142a4], eax
call fcn.00404472
test eax, eax
jge 0x403c77
push 8
call fcn.00403b20
pop ecx
call fcn.0040423f
test eax, eax
jge 0x403c88
push 9
call fcn.00403b20
pop ecx
call fcn.00403d4e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x403c9b
push eax
call fcn.00403b20
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004041d6
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x403cbc
movzx eax, word [ebp - 0x34]
jmp 0x403cbf
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00403457
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403cdd
push edi
call fcn.00403e75
call fcn.00403e97
jmp 0x403d0f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040490f
ret
Function at 0x403db3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4142fc], esi
push edi
jne 0x403dd3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4142f8], esi
mov byte [0x4142f4], al
jne 0x403e39
mov ecx, dword [0x4147e8]
test ecx, ecx
je 0x403e1a
mov eax, dword [0x4147e4]
sub eax, 4
cmp eax, ecx
jmp 0x403e13
mov eax, dword [eax]
test eax, eax
je 0x403e05
call eax
mov eax, dword [0x4147e4]
sub eax, 4
cmp eax, dword [0x4147e8]
mov dword [0x4147e4], eax
jae 0x403dfd
mov eax, 0x40a01c
mov esi, 0x40a020
cmp eax, esi
mov edi, eax
jae 0x403e39
mov eax, dword [edi]
test eax, eax
je 0x403e32
call eax
add edi, 4
cmp edi, esi
jb 0x403e2a
mov eax, 0x40a024
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x403e58
mov eax, dword [edi]
test eax, eax
je 0x403e51
call eax
add edi, 4
cmp edi, esi
jb 0x403e49
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403e73
push dword [ebp + 8]
mov dword [0x4142fc], 1
call fcn.00403d1e
pop ecx
pop ebp
ret

Function at 0x403eb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x414170]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x414048]
je 0x403ee2
inc eax
cmp eax, 0x12
jb 0x403ed3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x414048]
jne 0x404016
mov eax, dword [0x4142ac]
cmp eax, 1
je 0x403ff1
cmp eax, edx
jne 0x403f12
cmp dword [0x414040], 1
je 0x403ff1
cmp ecx, 0xfc
je 0x404016
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f4b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00404b20
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00404d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403f8d
lea eax, [ebp - 0x10c]
push eax
call fcn.00404d50
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4084d0
push edi
call fcn.00404c20
add esp, 0x10
push edi
call fcn.00404d50
push dword [esi + 0x41404c]
mov ebx, eax
call fcn.00404d50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404920
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404b20
push edi
push ebx
call fcn.00404b30
push 0x4084b0
push ebx
call fcn.00404b30
push dword [esi + 0x41404c]
push ebx
call fcn.00404b30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404a19
add esp, 0x2c
jmp 0x404016
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41404c]
push dword [esi]
call fcn.00404d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00404e0c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a19
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x414414], ebx
push esi
push edi
jne 0x404a99
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404ad4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x414414], eax
je 0x404ad4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x414418], eax
call esi
cmp dword [0x4142bc], 2
mov dword [0x41441c], eax
jne 0x404a99
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x414424], eax
je 0x404a99
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x414420], eax
mov eax, dword [0x414420]
test eax, eax
je 0x404ade
call eax
test eax, eax
je 0x404ac5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x414424]
test eax, eax
je 0x404ac5
test byte [ebp - 8], 1
jne 0x404ade
cmp dword [0x4142c8], 4
jb 0x404ad8
or byte [ebp + 0x12], 0x20
jmp 0x404afd
xor eax, eax
jmp 0x404b0d
or byte [ebp + 0x12], 4
jmp 0x404afd
mov eax, dword [0x414418]
test eax, eax
je 0x404afd
call eax
mov ebx, eax
test ebx, ebx
je 0x404afd
mov eax, dword [0x41441c]
test eax, eax
je 0x404afd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x414414]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4071c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404920
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40725d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4142bc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40725d
cmp eax, 1
je 0x407275
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40725d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x407232
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x407259
xor eax, eax
inc eax
jmp 0x407291
cmp esi, ebx
jae 0x407261
xor eax, eax
jmp 0x407291
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4142bc]
jmp 0x407277
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x93f7c7d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, str.2v0v
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x76725ec7
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10025cf8
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0xd8
mov eax, 0x1023e39b
call fcn.10236073
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc0], esi
test edi, edi
jne 0x10025d26
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x10025de8
xorps xmm0, xmm0
mov dword [ebp - 0xc4], ebx
movups xmmword [ebp - 0xe4], xmm0
movups xmmword [ebp - 0xd4], xmm0
push ebx
push ebx
push 0x10261b60
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], ebx
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [ebp - 0xc0], eax
test eax, eax
js 0x10025df0
lea eax, [ebp - 0xb9]
mov byte [ebp - 0xb9], bl
push eax
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.1000899b
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
sub eax, edi
push ebx
push eax
push edi
push dword [ebp - 0xe4]
mov byte [ebp - 4], 3
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
test ebx, ebx
jns 0x10025dcf
push str.InternalError
lea ecx, [ebp - 0x40]
lfence
call fcn.100047be
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push str.BCryptRandomBytes:_BCrypt_Failed_to_generate_random_data____08x
push eax
call fcn.1000d1e8
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
jmp 0x10025e22
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xe4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], edi
mov dword [esi + 8], eax
call fcn.10024f53
mov eax, esi
call fcn.10236022
ret
push str.InternalError
lea ecx, [ebp - 0x28]
lfence
call fcn.100047be
push dword [ebp - 0xc0]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push str.BCryptRandomBytes:_BCrypt_Failed_to_open_random_number_generator_algorithm_provider____08x
push eax
call fcn.1000d1e8
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.10237091
push 0x102e88c4
lea eax, [ebp - 0xb8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1004d5d2
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x102488ec
call fcn.10236040
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0x10]
xor edx, edx
push 3
pop ecx
div ecx
mov ecx, esi
mov dword [ebp - 4], ebx
shl eax, 2
push eax
mov dword [ebp - 0x20], 1
call fcn.1004d8ee
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov word [ebp - 0x14], bx
mov byte [ebp - 0x12], bl
test eax, eax
je 0x1004d797
push 3
pop ecx
mov edx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [edx]
mov byte [ebp + edi - 0x14], al
inc edi
mov ah, byte [ebp - 0x12]
inc edx
mov dword [ebp + 0xc], edx
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp edi, ecx
jne 0x1004d6ba
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ah, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ah
movzx eax, byte [ebp + edi - 0x18]
mov cl, byte [eax + 0x10265c10]
mov eax, dword [esi + 4]
mov byte [ebp - 0xd], cl
cmp eax, dword [esi + 8]
je 0x1004d69d
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x1004d6a9
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
inc edi
cmp edi, 4
jl 0x1004d680
mov dl, byte [ebp - 0xe]
mov edi, ebx
mov dh, byte [ebp - 0xf]
push 3
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1004d624
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x1004d797
mov eax, edi
cmp edi, ecx
jge 0x1004d6f2
cmp eax, ecx
jae 0x1004d79f
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, ecx
jl 0x1004d6d8
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x1004d6f5
mov ah, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, ah
mov byte [ebp - 0x17], dh
shr al, 6
and ah, 0x3f
add dl, al
mov byte [ebp - 0x15], ah
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1004d763
mov edi, eax
movzx eax, byte [ebp + ebx - 0x18]
mov cl, byte [eax + 0x10265c10]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
cmp eax, dword [esi + 8]
je 0x1004d74c
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x1004d758
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
inc ebx
cmp ebx, edi
jl 0x1004d72f
mov edi, dword [ebp - 0x1c]
push 3
pop ecx
cmp edi, ecx
jge 0x1004d797
sub ecx, edi
mov byte [ebp - 0x10], 0x3d
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x1004d780
mov byte [eax], 0x3d
inc dword [esi + 4]
jmp 0x1004d78f
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.1000d3dc
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jne 0x1004d770
mov eax, esi
call fcn.1023600e
ret
call fcn.10237091
int3
Function at 0x1004d9b7
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1024896e
call fcn.10236040
mov edi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.1004da61
pop ecx
pop ecx
xor ecx, ecx
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], ecx
je 0x1004d9f1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.1004db4d
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x1004d960
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1004da15
call fcn.1023600e
ret 4
and dword [esi], 0
push 6
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x1004e90d
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x10248cc4
call fcn.10236040
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.1004e97b
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], ecx
je 0x1004e94c
push 8
push dword [ebp - 0x10]
call fcn.10237091
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x1004e8b0
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1004e970
call fcn.1023600e
ret 8
and dword [esi], 0
push 6
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x10051588
Capabilities:
Move file

Disassembly:
push 0x34
mov eax, 0x10249546
call fcn.10236073
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10056d14
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x100515bf
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x100515c7
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100486a0
lea ecx, [ebp - 0x40]
call fcn.100486a0
mov eax, esi
call fcn.10236022
ret
Function at 0x10056039
Capabilities:
Create directory

Disassembly:
push 0x48
mov eax, 0x1024a109
call fcn.10236073
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x10056056
xor al, al
jmp 0x10056158
push ebx
push ebx
push closesocket
call fcn.10058333
movzx eax, al
push eax
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.10058b2c
add esp, 0x18
push 0xf
pop eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], bl
mov ebx, dword [ebp - 0x50]
or esi, 0xffffffff
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x10056105
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100560a0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10237091
call fcn.10058336
mov esi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10237091
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10056d14
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x100560db
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
pop ecx
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.100486a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [eax], 0x11
cmove esi, ecx
add edi, 0x18
cmp edi, ebx
jne 0x10056096
mov eax, dword [ebp - 0x14]
cmp esi, 0xffffffff
setne bl
cmp eax, 0x10
jb 0x1005613f
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x10056136
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10006a87
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.10237091
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10006f1c
mov al, bl
call fcn.10236022
ret
Function at 0x1005dfa4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
mov eax, 0x1024b354
call fcn.10236040
xor esi, esi
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], esi
call fcn.1005dc9b
pop ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
neg eax
sbb ecx, ecx
mov eax, dword [ebx]
neg ecx
mov dword [eax + 0x6c], ecx
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
push eax
call fcn.10237091
mov eax, dword [ebx]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x1005e00f
mov ecx, dword [eax]
mov dword [eax + 0x68], ecx
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
push eax
add ecx, 0x18
call fcn.10237091
mov ecx, dword [ebx]
lea eax, [ecx + 0x18]
cmp dword [eax + 0x14], 0x10
jb 0x1005e03b
mov eax, dword [eax]
mov dword [ecx + 0x70], eax
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov ecx, dword [ebx]
add ecx, 0x30
cmp ecx, eax
je 0x1005e065
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
call fcn.1000895e
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
mov dword [edx + 0x78], eax
and dword [edx + 0x7c], 0
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
mov dword [edx + 0x80], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10256524]
mov ecx, edi
call esi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x1005e0c4
mov ecx, dword [ebx]
lea esi, [eax + 0x10]
push esi
lea eax, [ebp - 0x20]
add ecx, 0x3c
push eax
call fcn.1005dae3
mov ecx, dword [eax]
lea eax, [esi + 0x18]
push eax
add ecx, 0x20
call fcn.10237091
lea ecx, [ebp - 0x10]
call fcn.100059e8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x1005e099
mov edi, dword [ebx]
mov edi, dword [edi + 0x40]
mov esi, dword [edi]
jmp 0x1005e101
lea eax, [esi + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x1005e0e0
mov ecx, dword [eax]
add eax, 0x18
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 0x10
jb 0x1005e0ee
mov eax, dword [eax]
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add ecx, 0x5c
lea eax, [ebp - 0x14]
push eax
call fcn.1005dc70
mov esi, dword [esi]
cmp esi, edi
jne 0x1005e0d3
mov edx, dword [ebx]
mov eax, ebx
mov ecx, dword [edx + 0x60]
sub ecx, dword [edx + 0x5c]
sar ecx, 3
mov dword [edx + 0x88], ecx
and dword [edx + 0x8c], 0
mov edx, dword [ebx]
mov ecx, dword [edx + 0x5c]
mov dword [edx + 0x90], ecx
call fcn.1023600e
ret
Function at 0x1008a73f
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 0x1008a79f
mov ebp, 0x10000000
cmp eax, 0x7c
je 0x1008a79f
cmp eax, 0x29
jne 0x1008a7a5
cmp dword [esi + 0x10], 0
jne 0x1008a79f
test dword [esi + 0x50], ebp
je 0x1008a89d
cmp eax, 0x5d
jne 0x1008a77a
test dword [esi + 0x50], ebp
je 0x1008a891
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10237091
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.10237091
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x1008a753
pop esi
pop ebp
mov al, cl
pop ebx
ret
cmp eax, 0x2e
jne 0x1008a7b6
push 5
lea ecx, [esi + 0x24]
call fcn.10237091
jmp 0x1008a787
cmp eax, 0x5c
jne 0x1008a802
mov ecx, esi
call fcn.1008c14e
test byte [esi + 0x50], 0x80
je 0x1008a7f9
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x1008a7e2
push 4
lea ecx, [esi + 0x24]
call fcn.10237091
mov ecx, esi
call fcn.1008c14e
jmp 0x1008a795
cmp al, 0x42
jne 0x1008a7f9
push 4
lea ecx, [esi + 0x24]
call fcn.10237091
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1008a7d9
mov ecx, esi
call fcn.1008a8a7
jmp 0x1008a78e
cmp eax, 0x5b
jne 0x1008a825
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1008acb8
push 4
push 0x5d
mov ecx, esi
call fcn.1008b9b0
jmp 0x1008a78e
cmp eax, 0x28
jne 0x1008a852
mov ecx, esi
call fcn.1008c14e
mov ecx, esi
call fcn.1008c604
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.1008b9b0
test bl, bl
je 0x1008a795
jmp 0x1008a78e
cmp eax, 0x5e
jne 0x1008a85e
push 2
jmp 0x1008a7d1
cmp eax, 0x24
jne 0x1008a86a
push 3
jmp 0x1008a7d1
cmp eax, 0x2a
je 0x1008a895
cmp eax, 0x2b
je 0x1008a895
cmp eax, 0x3f
je 0x1008a895
cmp eax, 0x7b
je 0x1008a895
cmp eax, 0x7d
jne 0x1008a76c
test dword [esi + 0x50], ebp
je 0x1008a899
jmp 0x1008a77a
push 4
jmp 0x1008a89f
push 0xa
jmp 0x1008a89f
push 6
jmp 0x1008a89f
push 5
mov ecx, esi
call fcn.1008b97e
int3