joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5b154a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5b28af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x5cf54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x5cf54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x5ce378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b28b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4093fa
Capabilities:
Get session user name

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, edx
mov ecx, edx
jnp 0x409409
jp 0x409409
call 0xc2298e96
adc dword [ecx], eax
add byte [esi - 0x7b], ah
sal byte [ecx + edx + 0x75], 3
mov edx, edi
call 0x41a5d1
test ax, ax
je 0x409426
jne 0x40941a
je 0x40941a
call 0x566afe75
push edi
push 0x2a
push esi
call fcn.00403060
add esp, 0xc
jg 0x40942b
jle 0x40942b
call 0x5403f38d
push edi
push esi
sub esp, 0x220
mov esi, ecx
mov eax, esp
lea ebx, [esp + 0x20]
je 0x409444
pop esi
pop edi
ret
jne 0x409444
call 0x140950f
add byte [eax], al
mov dword [eax], 0x100
jns 0x40944f
js 0x40944f
call 0x2aae7a3
push eax
push ebx
push 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x4094bf
jg 0x409461
jle 0x409461
call 0x8d6498f0
jl 0x40948b
mov eax, dword [esp]
lea edi, [esp + 4]
mov edx, esi
jbe 0x40946f
add al, 0x89
bnd jbe 0x40946f
ja 0x40946f
call 0x53918dfc
mov ecx, edi
push eax
push ebx
push 0x100
call fcn.004095f9
add esp, 0xc
jl 0x409485
jge 0x409485
call 0x4ccd9c14
and al, 0xc
mov eax, dword [edi]
lea ecx, [esp + 0xc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
and dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov byte [ecx + 0x10], 0x5c
jl 0x4094a4
jge 0x4094a4
call 0x16a0090
add byte [ecx - 0x7a2f763f], cl
leave
call fcn.0041be14
mov ecx, eax
mov eax, edx
test ecx, ecx
push 6
pop edx
cmovne edx, eax
mov eax, 0x4037bc
cmovne eax, ecx
jmp 0x4094c7
push 6
pop edx
mov eax, 0x4037bc
jno 0x4094cc
jo 0x4094cc
call 0x2615951
add byte [eax], al
add esp, 0x220
pop esi
pop edi
pop ebx
ret

Function at 0x40942e
Capabilities:
Get session user name

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, edx
mov ecx, edx
jnp 0x409409
jp 0x409409
call 0xc2298e96
adc dword [ecx], eax
add byte [esi - 0x7b], ah
sal byte [ecx + edx + 0x75], 3
mov edx, edi
call 0x41a5d1
test ax, ax
je 0x409426
jne 0x40941a
je 0x40941a
call 0x566afe75
push edi
push 0x2a
push esi
call fcn.00403060
add esp, 0xc
jg 0x40942b
jle 0x40942b
call 0x5403f38d
push edi
push esi
sub esp, 0x220
mov esi, ecx
mov eax, esp
lea ebx, [esp + 0x20]
je 0x409444
pop esi
pop edi
ret
jne 0x409444
call 0x140950f
add byte [eax], al
mov dword [eax], 0x100
jns 0x40944f
js 0x40944f
call 0x2aae7a3
push eax
push ebx
push 2
call sub.Secur32.dll_GetUserNameExW
test al, 1
je 0x4094bf
jg 0x409461
jle 0x409461
call 0x8d6498f0
jl 0x40948b
mov eax, dword [esp]
lea edi, [esp + 4]
mov edx, esi
jbe 0x40946f
add al, 0x89
bnd jbe 0x40946f
ja 0x40946f
call 0x53918dfc
mov ecx, edi
push eax
push ebx
push 0x100
call fcn.004095f9
add esp, 0xc
jl 0x409485
jge 0x409485
call 0x4ccd9c14
and al, 0xc
mov eax, dword [edi]
lea ecx, [esp + 0xc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
and dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov byte [ecx + 0x10], 0x5c
jl 0x4094a4
jge 0x4094a4
call 0x16a0090
add byte [ecx - 0x7a2f763f], cl
leave
call fcn.0041be14
mov ecx, eax
mov eax, edx
test ecx, ecx
push 6
pop edx
cmovne edx, eax
mov eax, 0x4037bc
cmovne eax, ecx
jmp 0x4094c7
push 6
pop edx
mov eax, 0x4037bc
jno 0x4094cc
jo 0x4094cc
call 0x2615951
add byte [eax], al
add esp, 0x220
pop esi
pop edi
pop ebx
ret
Function at 0x4096cd
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push edi
push esi
mov esi, edx
xor edx, edx
mov eax, 0xaaaaaaaa
jno 0x4096de
jo 0x4096de
call 0x84508d67
mov dword [eax], eax
add byte [eax], al
test esi, esi
je 0x40976f

Function at 0x4096ec
Capabilities:
Initialize winsock library

Disassembly:
call fcn.004096ec
add al, ch
call 0x319d4d00
inc dword [ebx + 0x5745cfb]
call 0x319d4d00
inc dword [ebx + 0x5745cfb]
cmp ebx, 0x2f
jne 0x409706
dec esi
jg 0x409702
jle 0x409702
call 0x6a2c797b
jne 0x4096e6
jmp 0x40976f
cmp bl, 0x3a
jg 0x40970e
jle 0x40970e
call 0xfec39c87
add dh, byte [edx + ebx*2 + 0x31]
ror byte [ebp - 0x7fbf00aa], 0xfb
das
jne 0x409715
cmp esi, 2
je 0x40976f
xor eax, eax
lea edx, [esi - 1]
inc eax
cmp bl, 0x2f
je 0x409723
jne 0x409723
call 0xb64fc99b
sti
je 0x409757
movzx edi, bl
cmp edi, 0x5c
je 0x409757
cmp bl, 0x3a
jb 0x409735
jae 0x409735
call 0xfac39cae
add dword [ecx + ebx - 0x77], esi
xlatb
jne 0x40973c
cmp edx, 1
je 0x409755
mov edi, edx
jp 0x409743
jnp 0x409743
call 0x724286ca
push ds
sub edi, 1
jb 0x409766
jne 0x40974d
je 0x40974d
call 0xff51f3db
mov bl, byte [ecx + edx - 1]
mov edx, edi
jmp 0x40971b
mov edx, eax
lea eax, [edx + ecx + 1]
not edx
jle 0x409762
jg 0x409762
call 0xa2c8967
add edx, esi
jmp 0x40976f
mov eax, ecx
mov edx, esi
je 0x40976f
jne 0x40976f
call 0x1be9af2
jg 0x409774
jle 0x409774
call 0xc39bf6d6
push esi
sub esp, 0x190
jno 0x409784
pop esi
pop edi
pop ebx
ret
jo 0x409784
call 0x1b69aff
ja 0x409789
jbe 0x409789
call 0x441157f5
add al, ch
inc ebp
rol byte [edx], 1
add byte [ecx + 0x710370e0], cl
add eax, ebp
push 0x43d0c0
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, esp
jo 0x40979a
jno 0x40979a
call 0x1be9b1d
jg 0x40979f
jle 0x40979f
call 0x242fff3
add byte [eax], al
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4097d8
cmp ax, 0x2734
jb 0x4097b7
jae 0x4097b7
call 0xb74fc02f
sar byte [0x2753], 0x74
daa
je 0x4097e1
movzx eax, ax
cmp eax, 0x2753
je 0x4097ea
cmp eax, 0x276b
je 0x4097f5
cmp eax, 0x276c
jne 0x409800
js 0x4097d6
jns 0x4097d6
call 0x3b8c5c5
jmp 0x409805
js 0x4097dd
jns 0x4097dd
call 0x292c8e12
xor esi, esi
jmp 0x409809
call 0x4097e7
add al, ch
jmp 0x409805
mov si, 0x12
jbe 0x4097f3
ja 0x4097f3
call 0x3b4ace2
jmp 0x409809
je 0x4097fa
jne 0x4097fa
call 0x565664
mov si, 0x15
jmp 0x409809
jno 0x409805
jo 0x409805
call 0x4f566f
mov si, 0xe
jle 0x40980e
jg 0x40980e
call 0x4411587a
add al, ch
pop esp
rol byte [edx], 1
add byte [ecx - 0x6f3b7e10], cl
add dword [eax], eax
add byte [esi - 0x3d], bl
push 0x43d0c0
call 0x436874
mov eax, esi
add esp, 0x190
pop esi
ret
Function at 0x409778
Capabilities:
Initialize winsock library

Disassembly:
call fcn.004096ec
add al, ch
call 0x319d4d00
inc dword [ebx + 0x5745cfb]
call 0x319d4d00
inc dword [ebx + 0x5745cfb]
cmp ebx, 0x2f
jne 0x409706
dec esi
jg 0x409702
jle 0x409702
call 0x6a2c797b
jne 0x4096e6
jmp 0x40976f
cmp bl, 0x3a
jg 0x40970e
jle 0x40970e
call 0xfec39c87
add dh, byte [edx + ebx*2 + 0x31]
ror byte [ebp - 0x7fbf00aa], 0xfb
das
jne 0x409715
cmp esi, 2
je 0x40976f
xor eax, eax
lea edx, [esi - 1]
inc eax
cmp bl, 0x2f
je 0x409723
jne 0x409723
call 0xb64fc99b
sti
je 0x409757
movzx edi, bl
cmp edi, 0x5c
je 0x409757
cmp bl, 0x3a
jb 0x409735
jae 0x409735
call 0xfac39cae
add dword [ecx + ebx - 0x77], esi
xlatb
jne 0x40973c
cmp edx, 1
je 0x409755
mov edi, edx
jp 0x409743
jnp 0x409743
call 0x724286ca
push ds
sub edi, 1
jb 0x409766
jne 0x40974d
je 0x40974d
call 0xff51f3db
mov bl, byte [ecx + edx - 1]
mov edx, edi
jmp 0x40971b
mov edx, eax
lea eax, [edx + ecx + 1]
not edx
jle 0x409762
jg 0x409762
call 0xa2c8967
add edx, esi
jmp 0x40976f
mov eax, ecx
mov edx, esi
je 0x40976f
jne 0x40976f
call 0x1be9af2
jg 0x409774
jle 0x409774
call 0xc39bf6d6
push esi
sub esp, 0x190
jno 0x409784
pop esi
pop edi
pop ebx
ret
jo 0x409784
call 0x1b69aff
ja 0x409789
jbe 0x409789
call 0x441157f5
add al, ch
inc ebp
rol byte [edx], 1
add byte [ecx + 0x710370e0], cl
add eax, ebp
push 0x43d0c0
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, esp
jo 0x40979a
jno 0x40979a
call 0x1be9b1d
jg 0x40979f
jle 0x40979f
call 0x242fff3
add byte [eax], al
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4097d8
cmp ax, 0x2734
jb 0x4097b7
jae 0x4097b7
call 0xb74fc02f
sar byte [0x2753], 0x74
daa
je 0x4097e1
movzx eax, ax
cmp eax, 0x2753
je 0x4097ea
cmp eax, 0x276b
je 0x4097f5
cmp eax, 0x276c
jne 0x409800
js 0x4097d6
jns 0x4097d6
call 0x3b8c5c5
jmp 0x409805
js 0x4097dd
jns 0x4097dd
call 0x292c8e12
xor esi, esi
jmp 0x409809
call 0x4097e7
add al, ch
jmp 0x409805
mov si, 0x12
jbe 0x4097f3
ja 0x4097f3
call 0x3b4ace2
jmp 0x409809
je 0x4097fa
jne 0x4097fa
call 0x565664
mov si, 0x15
jmp 0x409809
jno 0x409805
jo 0x409805
call 0x4f566f
mov si, 0xe
jle 0x40980e
jg 0x40980e
call 0x4411587a
add al, ch
pop esp
rol byte [edx], 1
add byte [ecx - 0x6f3b7e10], cl
add dword [eax], eax
add byte [esi - 0x3d], bl
push 0x43d0c0
call 0x436874
mov eax, esi
add esp, 0x190
pop esi
ret
Function at 0x40c69a
Capabilities:
Get common file path

Disassembly:
add eax, ebp
ja 0x40c6a1
jbe 0x40c6a1
call 0x1b0ca16
jno 0x40c6a6
jo 0x40c6a6
call 0x1b7ca20
jbe 0x40c6ab
ja 0x40c6ab
call 0x1b3ca21
jb 0x40c6b0
jae 0x40c6b0
call 0x1bcca31
jge 0x40c6b5
jl 0x40c6b5
call 0x1b1ca29
jo 0x40c6ba
jno 0x40c6ba
call 0x1452f15
add byte [eax], al
push edi
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
test eax, eax
jnp 0x40c6cc
jp 0x40c6cc
call 0x1bc4adf
add byte [eax], al
je 0x40c84d
add eax, eax
lea ecx, [esp + 0x250]
jae 0x40c6e0
jb 0x40c6e0
call 0x41ca006d
add al, 0x83
popal
or byte [eax], al
mov dword [ecx], edi
mov dword [ecx + 4], eax
and dword [ecx + 8], 0
xor edi, edi
call sub.KERNEL32.dll_GetLastError
Function at 0x410068
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
jle 0x41007c
jg 0x41007c
call 0xcfca030b
mov eax, dword [edx]
mov edi, ecx
jbe 0x410085
ja 0x410085
call 0x18654d16
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push 0x12
push 0x68
push ecx
push edx
push eax
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
je 0x4100b3
cmp eax, 0xc0000022
je 0x4101db
cmp eax, 0x80000005
jne 0x4101ec
jbe 0x4100b8
ja 0x4100b8
call 0x48a88422
add byte [ecx], dh
rol byte [eax + 0x55247c], 0xf2
movups xmm0, xmmword [esp + 0x58]
and word [edi + 0x48], 0
xor eax, eax
cmp byte [esp + 0x55], 0
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
sete al
movsd qword [edi], xmm0
movsd qword [edi + 8], xmm1
lea eax, [eax + eax*2 + 2]
and al, 0xf
mov byte [edi + 0x40], al
mov eax, 0x2ac18000
add ecx, eax
mov eax, 0xfe624e21
adc esi, eax
mov eax, esi
sar eax, 0x1f
push 0x64
pop edx
imul edx
mov dword [esp + 8], eax
mov ebx, edx
mov eax, ecx
push 0x64
pop ecx
mul ecx
mov dword [esp + 4], eax
mov eax, esi
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0x2c]
mul ecx
mov ecx, dword [esp + 4]
add eax, dword [esp + 0xc]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x28]
adc edx, dword [esp + 8]
mov dword [edi + 0x14], eax
mov eax, 0x2ac18000
adc ebx, 0
add ecx, eax
mov eax, 0xfe624e21
mov dword [edi + 0x18], edx
adc esi, eax
mov dword [edi + 0x1c], ebx
mov eax, esi
sar eax, 0x1f
push 0x64
pop edx
imul edx
mov dword [esp + 8], eax
mov ebx, edx
jnp 0x4101e0
jp 0x4101e0
call 0xbe9a164e
mov al, 0x38
inc eax
add bl, dh
movsd dword es:[edi], dword [esi]
push 0x14
pop ecx
mov esi, 0x4038b0
rep movsd dword es:[edi], dword [esi]
jmp 0x4101f7
jnp 0x4101f1
jp 0x4101f1
call 0x4888c95b
push cs
add byte [ecx + 3], bh
mov word [edi + 0x48], 0xe
Function at 0x41223c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edi, edx
lea ebp, [esp + 4]
mov dword [esp], ecx

Function at 0x412254
Capabilities:
Read file on windows

Disassembly:
je 0x412259
jne 0x412259
call 0x1bb25d8
jnp 0x41225e
jp 0x41225e
call 0x499de2
cmp byte [ebx + 8], 0
je 0x41228b
jge 0x412269
jl 0x412269
call 0x4bcc25f8
add al, 0x83
and al, 8
add byte [ebx + 0xc2464], al
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
and dword [esp + 8], 0
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
and dword [esp + 0x18], 0
lea eax, [esp + 8]
jmp 0x41228d
xor eax, eax
jns 0x412292
js 0x412292
call 0x754077e6
and al, 0x3c
push eax
push ebp
push dword [esp + 0x3c]
push esi
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
call 0x4122a7
add al, ch
jne 0x4122ce
call sub.KERNEL32.dll_GetLastError
cmp ax, 0x3e3
je 0x412259
movzx eax, ax
cmp eax, 0x26
je 0x4122de
cmp eax, 0x40
je 0x4122ef
cmp eax, 0x6d
jne 0x412303
jb 0x4122cc
jae 0x4122cc
call 0x44cc38bb
and al, 4
jmp 0x4122e3
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [ecx], eax
and word [ecx + 4], 0
jmp 0x412311
jno 0x4122e3
jo 0x4122e3
call 0x83652772
mov eax, dword [esp]
and dword [eax + 4], 0
pushal
add al, 0
and dword [eax], 0
jmp 0x412311
jp 0x4122f4
jnp 0x4122f4
call 0x83652783
and byte [eax], al
mov eax, dword [esp]
and dword [eax], 0
mov dword [eax + 4], 0x24
jmp 0x412311
jp 0x412308
jnp 0x412308
call 0x66652797
mov dword [eax + 4], 0x37e000e
mov eax, dword [esp]
mov word [eax + 4], 0xe
jle 0x412316
jg 0x412316
call 0x5e5de79d
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41231e
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov esi, ecx
call 0x412331
add al, ch
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp byte [edi + 8], 0
je 0x412361
jno 0x412345
jo 0x412345
call 0x6fcc42d4
add al, 0x8d
jl 0x412371
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
lea edi, [esp + 4]
and dword [edi], 0
and dword [edi + 4], 0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebp
and dword [edi + 0x10], 0
add al, 0x83
daa
add byte [ebx - 0x76fffb99], al
pop edi
or byte [ecx + 0x67830c6f], cl
adc byte [eax], al
jmp 0x412363
xor edi, edi
ja 0x412368
jbe 0x412368
call 0x539906f5
mov ebx, esp
push edi
push ebx
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFile
inc ebp
add al, byte [eax]
test eax, eax
je 0x412394
jno 0x41237d
jo 0x41237d
call 0x8965280c
push es
mov eax, dword [esp]
mov dword [esi], eax
and word [esi + 4], 0
jg 0x41238c
jle 0x41238c
call 0x5e59e813
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
jle 0x412399
jg 0x412399
call 0x285a685
add byte [esi - 0x7d], ah
clc
push es
call sub.KERNEL32.dll_GetLastError
cmp ax, 6
je 0x4123d2
movzx eax, ax
cmp eax, 8
je 0x4123e3
cmp eax, 0x21
je 0x4123ea
cmp eax, 0x6d
je 0x4123fb
cmp eax, 0x3e3
je 0x41240f
cmp eax, 0x6f8
je 0x412423
cmp eax, 0x718
jne 0x412437
jbe 0x4123d0
ja 0x4123d0
call 0x3b27abf
jmp 0x412428
jno 0x4123d7
jo 0x4123d7
call 0xc7414a5e
inc esi
add al, 0x5a
add byte [eax], al
add bl, ch
movsb byte es:[edi], byte [esi]
and dword [esi], 0
mov dword [esi + 4], 0x5a
jmp 0x412387
jb 0x4123e8
jae 0x4123e8
call 0x3bf62d7
jmp 0x412428
jle 0x4123ef
jg 0x4123ef
call 0xc7414a76
inc esi
add al, 0x5b
add byte [eax], al
add bl, ch
invalid
and dword [esi], 0
mov dword [esi + 4], 0x5b
jmp 0x412387
jns 0x412400
js 0x412400
call 0xc7414a87
inc esi
add al, 0x20
add byte [eax], al
add cl, ch
js 0x41240c
and dword [esi], 0
mov dword [esi + 4], 0x20
jmp 0x412387
invalid
invalid
jo 0x412414
jno 0x412414
call 0xc7414a9b
inc esi
add al, 0x1f
add byte [eax], al
add cl, ch
invalid
and dword [esi], 0
mov dword [esi + 4], 0x1f
jmp 0x412387
jnp 0x412428
jp 0x412428
call 0xc7414aaf
inc esi
add al, 0x15
add byte [eax], al
add cl, ch
push eax
invalid
and dword [esi], 0
mov dword [esi + 4], 0x15
jmp 0x412387
jp 0x41243c
jnp 0x41243c
call 0x487eba6
push cs
add cl, ch
inc eax
invalid
mov word [esi + 4], 0xe
jmp 0x412387
Function at 0x412331
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov esi, ecx
call 0x412331
add al, ch
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp byte [edi + 8], 0
je 0x412361
jno 0x412345
jo 0x412345
call 0x6fcc42d4
add al, 0x8d
jl 0x412371
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
lea edi, [esp + 4]
and dword [edi], 0
and dword [edi + 4], 0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebp
and dword [edi + 0x10], 0
add al, 0x83
daa
add byte [ebx - 0x76fffb99], al
pop edi
or byte [ecx + 0x67830c6f], cl
adc byte [eax], al
jmp 0x412363
xor edi, edi
ja 0x412368
jbe 0x412368
call 0x539906f5
mov ebx, esp
push edi
push ebx
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFile
inc ebp
add al, byte [eax]
test eax, eax
je 0x412394
jno 0x41237d
jo 0x41237d
call 0x8965280c
push es
mov eax, dword [esp]
mov dword [esi], eax
and word [esi + 4], 0
jg 0x41238c
jle 0x41238c
call 0x5e59e813
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
jle 0x412399
jg 0x412399
call 0x285a685
add byte [esi - 0x7d], ah
clc
push es
call sub.KERNEL32.dll_GetLastError
cmp ax, 6
je 0x4123d2
movzx eax, ax
cmp eax, 8
je 0x4123e3
cmp eax, 0x21
je 0x4123ea
cmp eax, 0x6d
je 0x4123fb
cmp eax, 0x3e3
je 0x41240f
cmp eax, 0x6f8
je 0x412423
cmp eax, 0x718
jne 0x412437
jbe 0x4123d0
ja 0x4123d0
call 0x3b27abf
jmp 0x412428
jno 0x4123d7
jo 0x4123d7
call 0xc7414a5e
inc esi
add al, 0x5a
add byte [eax], al
add bl, ch
movsb byte es:[edi], byte [esi]
and dword [esi], 0
mov dword [esi + 4], 0x5a
jmp 0x412387
jb 0x4123e8
jae 0x4123e8
call 0x3bf62d7
jmp 0x412428
jle 0x4123ef
jg 0x4123ef
call 0xc7414a76
inc esi
add al, 0x5b
add byte [eax], al
add bl, ch
invalid
and dword [esi], 0
mov dword [esi + 4], 0x5b
jmp 0x412387
jns 0x412400
js 0x412400
call 0xc7414a87
inc esi
add al, 0x20
add byte [eax], al
add cl, ch
js 0x41240c
and dword [esi], 0
mov dword [esi + 4], 0x20
jmp 0x412387
invalid
invalid
jo 0x412414
jno 0x412414
call 0xc7414a9b
inc esi
add al, 0x1f
add byte [eax], al
add cl, ch
invalid
and dword [esi], 0
mov dword [esi + 4], 0x1f
jmp 0x412387
jnp 0x412428
jp 0x412428
call 0xc7414aaf
inc esi
add al, 0x15
add byte [eax], al
add cl, ch
push eax
invalid
and dword [esi], 0
mov dword [esi + 4], 0x15
jmp 0x412387
jp 0x41243c
jnp 0x41243c
call 0x487eba6
push cs
add cl, ch
inc eax
invalid
mov word [esi + 4], 0xe
jmp 0x412387
Function at 0x4138d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0x24659d60
add byte [ebx + 0x702464], al
movzx eax, byte [ebx + 0x86]
jmp dword [eax*4 + 0x43a51c]

Function at 0x413935
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0x6865a5b8
call 0x413935
add al, ch
and dword [esp + 0x24], 0
and dword [esp + 0x70], 0
movzx eax, byte [ebx + 0x86]
jmp dword [eax*4 + 0x43a51c]

Function at 0x4139b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0x24659e3e
add byte [ebx + 0x702464], al
movzx eax, byte [ebx + 0x86]
jmp dword [eax*4 + 0x43a51c]
Function at 0x416abe
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x48]
mov dword [esp], ecx
jl 0x416ad1
jge 0x416ad1
call 0x54cb405e
and al, 0x18
mov ebp, edx
mov dword [esp + 0x18], edx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x14]