joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x407840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..idata
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407862
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407858
mov eax, 1
add ebx, ebx
jne 0x40787b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x407870
jne 0x40788c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407870
xor ecx, ecx
sub eax, 3
jb 0x4078a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407912
mov ebp, eax
add ebx, ebx
jne 0x4078ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4078b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4078dc
inc ecx
add ebx, ebx
jne 0x4078c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4078bd
jne 0x4078d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4078bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jle 0x4078fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4078ed
jmp 0x40785e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4078fc
add edi, ecx
jmp 0x40785e
pop esi
sub edi, dword [edi - 4]
push edi
mov edi, esi
mov ecx, 0x61
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40791e
cmp byte [edi], 0
jne 0x40791e
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 eax, ebx
loop 0x407923
pop edi
mov eax, dword [edi]
or eax, eax
je 0x40798b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7568]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x75e0]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40794b
push edx
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x75e4]
pop edx
or eax, eax
je 0x407989
mov dword [ebx], eax
add ebx, 4
jmp 0x407968
popal
ret
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4079bc
cmp al, 0xef
ja 0x4079af
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x407991
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40799e
popal
jmp section..text
Function at 0x2d23700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02d2378f
jae 0x2d2370e
xor ecx, ecx
call fcn.02d2378f
jae 0x2d2373d
xor eax, eax
call fcn.02d2378f
jae 0x2d2374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02d2378f
adc al, al
jae 0x2d2372f
jne 0x2d23779
stosb byte es:[edi], al
jmp 0x2d23711
call fcn.02d2379b
sub ecx, ebx
jne 0x2d23756
call fcn.02d23799
jmp 0x2d23775
lodsb al, byte [esi]
shr eax, 1
je 0x2d23783
adc ecx, ecx
jmp 0x2d23772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02d23799
cmp eax, 0x7d00
jae 0x2d23772
cmp ah, 5
jae 0x2d23773
cmp eax, 0x7f
ja 0x2d23774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2d23711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401989
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4019c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4019c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4019b0
cmp esi, edx
jb 0x4019cb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42689a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x434290]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00423fa5
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401e56
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0040dc0a
push 0x4335cc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004149d2
push edi
push esi
call fcn.0042423b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d210
mov esp, ebp
pop ebp
ret 4
Function at 0x402930
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x434290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004120a0
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.004120a0
push 0x3c
lea eax, [ebp - 0xc78]
push 0
push eax
call fcn.004120a0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xc78], 0x3c
mov ecx, esi
mov dword [ebp - 0xc68], eax
lea eax, [ebp - 0xc34]
mov dword [ebp - 0xc64], 0x104
add esp, 0x24
mov dword [ebp - 0xc4c], eax
mov dword [ebp - 0xc48], 0x514
mov dword [ebp - 0xc70], 1
lea edx, [ecx + 2]
mov dword [ebp - 0xc3c], 4
mov dword [ebp - 0xc38], 0
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4029f0
lea eax, [ebp - 0xc78]
sub ecx, edx
push eax
push 0
sar ecx, 1
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:24.0__Gecko_20100101_Firefox_24.0_FirePHP_0.7.4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
test ebx, ebx
je 0x402aef
push 0
push 0x50
push dword [ebp - 0xc68]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
test edi, edi
je 0x402aef
push 0
push 0
push 0
push 0
push dword [ebp - 0xc4c]
push 0x431638
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x402aef
push 0x20000000
push 0xffffffffffffffff
push str.If_Modified_Since:_Mon__20_Nov_2000_20:00:00_GMT
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x402aef
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402aef
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x402aef
push 0
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc38]
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x402aef
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0xc38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d210
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d210
mov esp, ebp
pop ebp
ret
Function at 0x403260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40328d
push eax
push eax
push 0x4316b8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4032c0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4032b7
push eax
push eax
push 0x4316c4
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
jmp 0x4032c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov edi, dword [ebp + 8]
or edx, 0xffffffff
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032dd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404150
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x434290]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404195
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4041a5
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d210
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40418c
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0040d210
mov esp, ebp
pop ebp
ret
Function at 0x407650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x434290]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x434290]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4077a4
cmp byte [ebx + 0x45], 0
je 0x4077a4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4076b0
xor al, al
jmp 0x4077a6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4076f0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407731
dec eax
je 0x407735
sub eax, 2
je 0x40778b
xor bl, bl
jmp 0x40778d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40776c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0040eaab
add esp, 0x10
cmp esi, eax
jne 0x40772d
cmp byte [ebx + 0x45], 0
je 0x40778b
test esi, esi
jne 0x4076f0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00407000
jmp 0x4076f0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4077a0
push dword [esp + 0x18]
call fcn.0040d20b
add esp, 4
mov al, bl
jmp 0x4077a6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040d210
mov esp, ebp
pop ebp
ret
Function at 0x4198ea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434290]
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.0041686c
mov dword [ebp - 0x14], eax
cmp dword [0x4369cc], esi
jne 0x4199dd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41996a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x419abd
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x419abd
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419abd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4369cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4369d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4369d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4369dc], eax
test eax, eax
je 0x4199da
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4369d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x419a02
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4199f5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x419a17
push 4
pop eax
jmp 0x419abf
cmp dword [ebp - 0x14], esi
je 0x419a17
push dword [0x4369cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4199fc
mov eax, dword [0x4369d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x419a75
cmp dword [0x4369dc], edi
je 0x419a75
push eax
call ebx
push dword [0x4369dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x419a75
test eax, eax
je 0x419a75
call ecx
test eax, eax
je 0x419a6a
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 0x419a6a
test byte [ebp - 8], 1
jne 0x419a75
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x419aa5
mov eax, dword [0x4369d0]
cmp eax, edi
je 0x419aa2
push eax
call ebx
test eax, eax
je 0x419aa2
call eax
mov esi, eax
test esi, esi
je 0x419aa2
mov eax, dword [0x4369d4]
cmp eax, edi
je 0x419aa2
push eax
call ebx
test eax, eax
je 0x419aa2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4369cc]
call ebx
test eax, eax
je 0x419abd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419abf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d210
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x401e50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1c
mov ecx, dword [0x42a0dc]
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0x1c
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov edx, dword [0x42a0dc]
movzx eax, word [edx + 0x7f8]
mov dword [esp + 8], eax
movzx ecx, byte [edx + 0x7f4]
mov byte [esp + 0x16], cl
movzx eax, byte [edx + 0x7f6]
mov byte [esp + 0x17], al
movzx ecx, byte [edx + 0x7f7]
mov byte [esp + 0x18], cl
mov al, byte [edx + 0x7f5]
mov ecx, dword [esp + 0xc]
and al, 1
movzx esi, al
add esi, esi
add esi, esi
add esi, esi
xor esi, ecx
and esi, 8
xor ecx, esi
test al, al
je 0x401eca
and ecx, 0xffffffef
or ecx, 0x20
jmp 0x401ed0
and ecx, 0xffffffdf
or ecx, 0x10
mov dword [esp + 0xc], ecx
mov al, byte [edx + 0x7f5]
shr al, 1
and al, 1
movzx esi, al
add esi, esi
add esi, esi
xor esi, ecx
and esi, 4
xor ecx, esi
test al, al
pop esi
je 0x401eff
and ecx, 0xffffefff
or ecx, 0x2000
jmp 0x401f0b
and ecx, 0xffffdfff
or ecx, 0x1000
mov dword [esp + 8], ecx
movzx edx, byte [edx + 0x7f5]
shl edx, 6
xor edx, ecx
and edx, 0x100
xor ecx, edx
lea eax, [ecx + ecx]
xor eax, ecx
push str.Brfaxrx.ini
and eax, 0x200
push 0
xor ecx, eax
push str.SerialOFF
or ecx, 3
push str.Setup
mov byte [esp + 0x25], 0x11
mov byte [esp + 0x26], 0x13
mov word [esp + 0x1e], 0x2d0
mov word [esp + 0x20], 0xc00
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x401f72
mov eax, 1
add esp, 0x1c
ret
mov edx, dword [0x42a0dc]
mov eax, dword [edx]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
add esp, 0x1c
ret
Function at 0x4021b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp word [0x43765c], di
mov dword [esp + 0x10], edi
jbe 0x40237b
mov edx, dword [0x42a0dc]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
movzx ebx, word [0x43765c]
mov ecx, dword [esp + 0x20]
lea edx, [ebx + ecx]
cmp edx, 0x7fff
jae 0x40237b
mov eax, dword [0x42a0dc]
lea ecx, [eax + 0x87c]
mov eax, dword [eax]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x4483d8
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
test esi, esi
jne 0x4022c1
call ebp
cmp eax, 0x3e5
jne 0x40231b
mov eax, dword [0x42a0dc]
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + 0x87c]
mov eax, dword [eax]
push edx
push eax
call esi
test eax, eax
jne 0x4022bd
mov edi, edi
call ebp
cmp eax, 0x3e4
jne 0x402298
add edi, dword [esp + 0x10]
push str._Write_COMX:__ERROR_IO_INCOMPLETE
call fcn.004113d0
mov eax, dword [0x42a0dc]
add esp, 4
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + 0x87c]
mov eax, dword [eax]
push edx
push eax
call esi
test eax, eax
je 0x402260
jmp 0x4022bd
mov eax, dword [0x42a0dc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push str._Write_COMX:__ClearCommError
call fcn.004113d0
add esp, 4
add edi, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
push ebx
push str._Write_COMX:__Length______d
call fcn.004113d0
push esi
push str._Write_COMX:__written_____d
call fcn.004113d0
push edi
push str._Write_COMX:__dwBytesSent_d
call fcn.004113d0
push 0x4483d8
push str._Write_COMX:__data_________s_
call fcn.004113d0
movzx eax, word [0x43765c]
add esp, 0x20
cmp eax, esi
jne 0x40234d
pop edi
pop esi
pop ebp
mov word [0x43765c], 0
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
push str._Write_COMX:_Error____
call fcn.004113d0
mov ecx, dword [0x42a0dc]
add esp, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
test esi, esi
jl 0x402341
sub eax, esi
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x402374
jmp 0x402360
mov dl, byte [eax + esi + 0x4483d8]
mov byte [eax + 0x4483d8], dl
add eax, 1
cmp eax, ecx
jl 0x402360
mov word [0x43765c], cx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
Function at 0x402930
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x42a930]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push esi
push 0x100
lea eax, [esp + 0x140]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.BRMFRSMG.EXE
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push ebx
push str.BrMFLPRO_Resource_Manager
call esi
test eax, eax
jne 0x402ab7
push 4
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x402a00
mov ecx, dword [0x437648]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0xff
lea eax, [esp + 0x40]
push eax
push 0x343
push ecx
call esi
mov eax, dword [0x437648]
push 0x32
lea edx, [esp + 0xc]
push edx
push 0x313
push eax
call esi
call fcn.0040cc60
or eax, 0x10010
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0041355c
add esp, 0x238
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
push 0
push str.BrMFLPRO_Resource_Manager
call esi
test eax, eax
jne 0x402a31
add ebx, 1
cmp ebx, 0x64
jg 0x402a4e
push 0x64
call edi
push 0
push str.BrMFLPRO_Resource_Manager
call esi
test eax, eax
je 0x402a18
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0041355c
add esp, 0x238
ret
mov ecx, dword [0x437648]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0xff
lea eax, [esp + 0x44]
push eax
push 0x343
push ecx
call esi
mov eax, dword [0x437648]
push 0x32
lea edx, [esp + 0x10]
push edx
push 0x313
push eax
call esi
call fcn.0040cc60
or eax, 0x10010
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0041355c
add esp, 0x238
ret
mov ecx, dword [esp + 0x23c]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041355c
add esp, 0x238
ret

Function at 0x403200
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42a930]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 0x108]
push eax
push 5
call fcn.004011c0
lea ecx, [esp + 0xc]
push ecx
push 0x2e
call fcn.004011c0
add esp, 0x10
push str.BrFaxRx
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call esi
lea edx, [esp + 4]
push edx
call fcn.00410b20
push str.PC_FAX_Rx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00413b38
add esp, 0x10
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x110]
push edx
call esi
lea eax, [esp + 4]
push eax
call fcn.00410b20
mov ecx, dword [esp + 0x210]
add esp, 4
pop esi
xor ecx, esp
call fcn.0041355c
add esp, 0x20c
ret