joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a00
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x457a4a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x457a79
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x457abb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x45d5a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x50e3fc]
xor edx, edx
cmp eax, edx
jne 0x45d5c6
xor eax, eax
mov byte [eax + 0x50e2fc], al
inc eax
cmp eax, 0x100
jl 0x45d5ae
mov dword [0x50e3fc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x50e2fc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45d657
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45d62a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45d5f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x45d660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45d6b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45d69a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4911ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00464980
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4cab2c
call fcn.004823d6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4640f3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004823d6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4640ec
push 0
mov ecx, eax
call fcn.0045b1d0
mov dword [esi + 0xc], eax
jmp 0x4640f5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4640f5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x484a39
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484a71
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00482af0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482ac8
jmp 0x484a7d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48612b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48616d
call fcn.0048bc26
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48616d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486164
xor eax, eax
jmp 0x486175
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048617b
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c156
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 0x48c184
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c1a2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c0bc
jmp 0x48c1a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c1a2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c0bc
test edi, edi
mov eax, edi
jne 0x48c18c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40262f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0x3e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x41e737
push dword [0x4b6a68]
push 0x152
push dword [0x4b6a60]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4ce72c], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x4027c9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
sub esp, 0x10
call fcn.0041c611
imul edx, eax, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
add dword [ebp - 0x18], eax
push 0
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x1c]
inc eax
imul eax, eax, 0x14
mov dword [ebp - 0x14], eax
push 0
push eax
add ecx, 8
call fcn.0041921f
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 1
jne 0x40287e
push dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.004025a7
test eax, eax
je 0x40287e
mov dword [ebp - 0x14], eax
jmp 0x402832
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp dl, byte [eax + 0x1d]
jae 0x40284e
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
jmp 0x40282f
mov byte [ebp - 8], 0
jmp 0x402857
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp dl, byte [eax + 0x1e]
jae 0x402877
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [eax + edx*4 + 0xa0], ecx
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
jmp 0x402854
mov eax, 1
jmp 0x402880
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402a25
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 1
mov ecx, dword [ebp - 8]
call fcn.00402524
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004192c5
push 0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00418f5c
test eax, eax
je 0x402a9e
push 1
mov ecx, dword [ebp - 8]
call fcn.0040369f
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp - 8]
push 0x41295c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x402a97
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
jmp 0x402aa0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484f4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
add ecx, 8
call fcn.004032b0
inc dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.0043a93e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0x1010ffff
xor ecx, ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], 0xfffffc18
mov dword [eax + 0x60], 0xfffffc18
dec dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4069b2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0
push str.AutoDll.ini
push 1
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00418f5c
test eax, eax
je 0x406a21
push dword [ebp - 8]
call fcn.00418ed4
add esp, 4
push eax
push eax
push 0
push 0x500dea
push 0x500de2
call dword [0x4be042]
mov byte [0x500df9], al
push dword [ebp - 0xc]
push 0xa
push 0x500e03
push 0x500dfa
call dword [0x4be042]
cmp ax, 0xa
jae 0x406a10
mov ax, 0xa
mov word [0x500e0d], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a2f
mov byte [0x500df9], al
mov word [0x500e0d], 0xa
mov esp, ebp
pop ebp
ret

Function at 0x406a33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor byte [0x500e02], 1
mov eax, dword [0x4cea0c]
test eax, eax
je 0x406a7b
mov byte [0x500e0c], 1
push 0
push 0
push 0
push 0x406a7f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x406a6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
call fcn.0040a985
mov byte [0x500e0c], 0
mov esp, ebp
pop ebp
ret
Function at 0x40b1cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push ecx
sub esp, 0xd4
lea ecx, [ebp - 0xdc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00451820
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x492e28
push 0x3f9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp - 8]
push 0x3f8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp + 8]
call fcn.004375e9
push 0x5ab
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
call fcn.0040c45a
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40b271
cmp byte [ebp + 0x10], 0xff
je 0x40b271
push 5
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0x10]
push 0x5ac
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
jmp 0x40b28f
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x492e2c
push 0x5ac
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [ebp - 0x10], 0
jne 0x40b2c3
push 0x565
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x5ad
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
call fcn.0040b3d6
push dword [eax*4 + 0x48bc04]
push 0x3ff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 8]
cmp byte [ecx + 0x12], 0xff
jne 0x40b2fe
push 0x48b284
push 0x3fa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x40b317
mov ecx, dword [ebp - 8]
call fcn.0040d85e
push 0
push eax
push 0x3fa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x70]
push edx
call fcn.00461fc8
lea edx, [ebp - 0x70]
push edx
push 0x401
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x70]
push edx
call fcn.0040df60
lea edx, [ebp - 0x70]
push edx
push 0x5af
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 8]
call fcn.0041ddf0
mov dword [ebp - 0xc], eax
jmp 0x40b36b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 0x50
jae 0x40b3d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp al, 0xff
je 0x40b3ce
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + 0x11]
cmp al, 0x1a
jae 0x40b39f
push eax
mov ecx, dword [ebp - 4]
call fcn.0041b781
call fcn.00466bb9
jmp 0x40b3b4
cmp al, 0x47
jb 0x40b3a7
cmp al, 0x59
jb 0x40b3ce
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041ab10
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x5c0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40b368
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c2ad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
cmp byte [0x5005a0], 0
je 0x40c2e1
jmp 0x40c2c0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 2
jae 0x40c2e1
add eax, 0x7e4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40c2bd
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2e7
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x2c
cmp dword [ebp + 8], 0x400
jae 0x40c355
push dword [ebp + 8]
call fcn.004061e4
mov dword [ebp - 0x1c], ecx
cmp word [ebp + 0xc], 0xffff
je 0x40c311
cmp byte [ebp + 0xc], 0xff
jne 0x40c340
cmp dword [ebp + 0x10], 0
jne 0x40c32e
push dword [ebp + 8]
call fcn.004214af
add esp, 4
test eax, eax
je 0x40c355
push dword [ebp - 0x1c]
call fcn.0040c436
push dword [ebp + 0xc]
push 0xff
mov ecx, dword [ebp - 0x1c]
call fcn.004095b9
jmp 0x40c355
cmp dword [ebp + 0xc], 0
jne 0x40c35a
push dword [ebp + 8]
call fcn.004214af
add esp, 4
test eax, eax
je 0x40c35a
jmp 0x40c432
call fcn.0040c231
push 0
push eax
push dword [ebp + 0x10]
call fcn.004123c8
mov byte [ebp - 4], al
cmp dword [ebp + 0xc], 1
je 0x40c391
call fcn.0040159c
push eax
push 0
push str.DATA.E5
call fcn.0041b51e
push 0
push 1
push dword [ebp + 8]
call fcn.0046206c
mov ecx, dword [ebp - 0x1c]
call fcn.0040bf10
cmp al, 0x14
jae 0x40c3a2
imul eax, eax, 3
jmp 0x40c3a4
add al, 0x28
mov byte [ebp - 0xc], al
cmp al, 0x3b
jge 0x40c3cd
cmp byte [ebp - 4], 0x7e
jb 0x40c3ba
mov dword [ebp - 0x30], 2
jmp 0x40c3c4
cmp byte [ebp - 4], 0x3f
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov cl, byte [ebp - 0xc]
add cl, byte [ebp - 0x30]
mov byte [ebp - 0xc], cl
cmp dword [ebp + 0xc], 1
jne 0x40c3eb
cmp dword [ebp + 0x10], 0x3d
je 0x40c425
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x2c]
cmp byte [ebp - 4], cl
jg 0x40c3e6
jmp 0x40c40d
sub byte [ebp - 4], cl
jmp 0x40c3f5
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.0040e012
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0040e01f
push 0
push dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
call fcn.004073bc
push 1
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00407fd4
push 1
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.00407fd4
push dword [ebp + 0xc]
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.004095b9
mov esp, ebp
pop ebp
ret

Function at 0x40d5a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [0x4b5fe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call fcn.004373c7
call fcn.00420275
push 0x4b2c50
call fcn.004233ed
push 0x4b313c
call fcn.004233ed
push 0x4c3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push dword [0x4b5fe8]
call dword [sym.imp.USER32.dll_SetParent]
xor ecx, ecx
push ecx
movzx eax, byte [0x500c97]
push eax
mov ax, word [0x500c95]
push eax
push ecx
push ecx
push dword [0x4b5fe8]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [0x4b5fe8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x40dfba
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040b913
cmp al, 2
jne 0x40dfff
call fcn.00414dbe
call fcn.004298f7
movzx eax, ax
mov dword [ebp - 4], eax
and eax, 8
test eax, eax
je 0x40dffa
push 0
push dword [0x4ff5b0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
jmp 0x40e005
mov ax, word [0x4abf9c]
mov esp, ebp
pop ebp
ret

Function at 0x40ec30
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0
push ecx
cmp al, 0
je 0x40ec3e
cmp al, 0xcc
jne 0x40ec97
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ebf5
mov dword [ebp - 8], eax
jmp 0x40ec51
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 0xa
jae 0x40ec97
imul eax, eax, 3
add eax, 0x501ae1
inc eax
mov edx, dword [eax]
cmp word [ebp - 8], dx
jne 0x40ec4e
movzx ecx, byte [eax + 2]
mov dword [ebp - 8], ecx
call fcn.00401521
add eax, 0x2c040
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x1b0
add eax, ecx
push 4
push eax
push 0xc
push 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00451913
mov esp, ebp
pop ebp
ret 8

Function at 0x4158ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
imul eax, eax, 4
add eax, 0x4b5fd0
push dword [eax]
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4b6a68]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
mov esp, ebp
pop ebp
ret 4

Function at 0x418ed4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
call fcn.0045bc49
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x419102
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41915a
mov dword [ebp - 0xc], 0
jmp 0x419125
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419154
cmp dword [ebp - 0xc], 5
jle 0x419152
xor eax, eax
jmp 0x419161
jmp 0x419156
jmp 0x419158
jmp 0x41911c
jmp 0x41915e
xor eax, eax
jmp 0x419161
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x41923c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x419274
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419274
xor eax, eax
jmp 0x419277
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4193a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4193db
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4193db
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419704
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
xor eax, eax
mov dword [ebp - 0x6c], eax
call fcn.00403116
mov dword [ebp - 0x70], eax
cmp byte [0x4ac63c], 3
je 0x419744
cmp word [ebp + 0xc], 0x56b
jne 0x419744
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
test cx, cx
jne 0x419744
push dword [ebp + 8]
mov ecx, 0x496f38
call fcn.00438fc1
test eax, eax
jne 0x419749
jmp 0x41992a
push 0
call fcn.004759bc
add esp, 4
mov ecx, 0x496f38
call fcn.0045386e
call fcn.0041e5f6
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x41976e
jmp dword [eax*4 + 0x41992e]
cmp dword [0x496f54], 0
je 0x4197e7
cmp dword [ebp - 0x70], 0
je 0x4197e7
push 1
call fcn.0040c755
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x68], eax
push eax
call fcn.00406764
add esp, 4
push eax
push 0x48b47c
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.0042d5d3
nop
nop
nop
push 0
push dword [ebp - 0x68]
push 0x48b48c
call fcn.0042d5d3
nop
nop
nop
xor eax, eax
mov dword [0x496f54], eax
push 1
jmp 0x41985f
cmp dword [0x496f50], 0
je 0x41985d
cmp dword [ebp - 0x70], 0
je 0x41985d
push 1
call fcn.0040c755
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x68], eax
push eax
call fcn.00406764
add esp, 4
push eax
push 0x48b494
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x64]
push edx
nop
nop
nop
nop
nop
nop
call fcn.0042d5d3
push 0
push dword [ebp - 0x68]
push 0x48b4a4
call fcn.0042d5d3
xor eax, eax
mov dword [0x496f50], eax
push 0
call fcn.00461cf6
jmp 0x4198d9
cmp dword [0x496f4c], 0
je 0x4198d4
cmp dword [ebp - 0x70], 0
je 0x4198d4
push 0
call fcn.0040c755
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x68], eax
push eax
call fcn.00406764
add esp, 4
push eax
push 0x48b4ac
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.0042d5d3
nop
nop
nop
push 0
push dword [ebp - 0x68]
push 0x48b4bc
call fcn.0042d5d3
nop
nop
nop
xor eax, eax
mov dword [0x496f4c], eax
call fcn.00461c8f
nop
nop
jmp case.default.0x41976e
push 1
mov ecx, 0x492f90
call fcn.0041856a
mov dword [ebp - 0x6c], eax
test eax, eax
je case.default.0x41976e
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0042c858
add esp, 4
mov dword [0x4ae4c0], 1
cmp dword [ebp - 0x6c], 0
jne 0x41992a
mov byte [0x496f48], 0
call fcn.0042c88d
push eax
call fcn.004759bc
mov esp, ebp
pop ebp
ret