joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5d8aa9
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d87dc
inc edx
add edx, 0x26075d53
mov edx, 0xff63a4f2
call fcn.005d8af8
mov edx, edx
sub eax, 0xe5e27844
sub eax, 1
xor dword [ebx], edi
and edx, eax
sub eax, 1
add eax, eax
add ebx, 2
or eax, eax
mov edx, 0x67a2d566
inc edx
cmp ebx, esi
jl fcn.005d8aa9
sub eax, 0x58d2ad7a
mov eax, eax
ret
Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x4738de
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4735cc
dec eax
call fcn.00473904
add ebx, ebx
xor dword [edx], esi
add eax, eax
add edx, 2
mov ebx, 0x56d54574
cmp edx, edi
jl fcn.004738de
or eax, ebx
ret
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

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 0x401a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x4000000
push 2
call fcn.0040e0a0
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x401b86
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
mov dword [ecx], eax
xor esi, esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], esi
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x401b8d
cmp esi, eax
jge 0x401b20
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x401b20
push dword [edi + 0xc]
push dword [edi + 4]
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.0040c370
add esp, 0x14
test eax, eax
jle 0x401b9b
add esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call fcn.0040d040
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x10]
jne 0x401b58
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041fc54
add esp, 0x10
cmp eax, dword [ebp - 0x18]
jne 0x401b94
mov dword [ebp - 0x18], 0
xor eax, eax
test ebx, ebx
je 0x401ade
mov esi, 0x27
cmp ebx, 1
jne 0x401ba0
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041fc54
add esp, 0x10
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
mov esi, 0x46
cmove esi, ecx
jmp 0x401ba0
mov esi, 0x27
jmp 0x401bab
mov esi, 0x28
jmp 0x401ba0
mov esi, 0x46
jmp 0x401ba0
mov esi, 6
push dword [ebp - 0x2c]
call fcn.0040e190
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x403b70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
push 0x2f
push ecx
call fcn.00415097
add esp, 8
test eax, eax
je 0x403ba2
mov esi, eax
mov word [eax], 0
mov ecx, edi
call fcn.00403b70
mov ebx, eax
test eax, eax
je 0x403bab
mov word [esi], 0x2f
jmp 0x403ba4
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp word [edi], 0
je 0x403b9b
push edi
call fcn.0041e16a
add esp, 4
test eax, eax
jns 0x403b9b
call fcn.00419e69
cmp dword [eax], 0x11
je 0x403b9b
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403c08
call fcn.00419e69
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
push 0x4424e8
call fcn.00410520
add esp, 0x10
mov ebx, 7
jmp 0x403b9b
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x403be7
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x403be7
Function at 0x405550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov edi, ecx
mov bl, byte [ebp + 0xc]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.MOZ_LAUNCHED_CHILD1
call fcn.0041d246
add esp, 4
push edi
call fcn.0041d962
add esp, 4
test eax, eax
je 0x4055b7
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40564b
push str.Warning:_chdir_failed
push 0x4424e8
call fcn.00410520
add esp, 8
test bl, bl
je 0x4055cd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edi, [ebp - 0x14]
mov edx, esi
push edi
push eax
call fcn.00432180
add esp, 8
test eax, eax
je 0x4055bb
mov edi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, eax
call ebx
sub eax, esi
cmp eax, 0x270f
ja 0x40563d
mov ebx, 0x2710
sub ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x40563d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x40563d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x2710
jb 0x4055fd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4055bb
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x4055a5
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x4055a5
Function at 0x407c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov esi, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.00414cd0
add esp, 0xc
cmp byte [0x4422dc], 0
je 0x407c50
push edi
push 0x43a41a
push 0x4418a8
call fcn.00410e10
add esp, 0xc
test eax, eax
jne 0x407c6d
jmp 0x407cba
push 0x43a40e
push 0x4418a8
push str._s_s
push 0x105
push edi
call fcn.00404340
add esp, 0x14
push 0x43ae04
push edi
call fcn.0041e056
add esp, 8
test eax, eax
je 0x407cba
mov edi, eax
push esi
call fcn.00420710
add esp, 4
push edi
push 1
push eax
push esi
call fcn.0041fc54
add esp, 0x10
cmp eax, 1
jne 0x407cbe
cmp byte [0x4422dc], 0
je 0x407cb6
push 0x4418a8
call fcn.00410e90
add esp, 4
test eax, eax
je 0x407cbe
mov bl, 1
jmp 0x407cc0
xor ebx, ebx
jmp 0x407cc9
xor ebx, ebx
push edi
call fcn.0041f2e7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407ce0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x624
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4426f4]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407e1f
mov eax, dword [0x4424e8]
test eax, eax
je 0x407d33
push eax
call fcn.0041f2e7
add esp, 4
mov dword [0x4424e8], 0
cmp byte [0x4420d1], 1
jne 0x407e0a
lea esi, [ebp - 0x21a]
push 0x20a
push 0
push esi
call fcn.00414cd0
add esp, 0xc
push esi
push 0x43a41a
push 0x4418a8
call fcn.00410e10
add esp, 0xc
test eax, eax
je 0x407da5
xor edi, edi
lea ebx, [ebp - 0x424]
push 0x20a
push edi
push ebx
call fcn.00414cd0
add esp, 0xc
push 0x4418a8
push str._supdate.status
push 0x105
push ebx
call fcn.00404340
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0x424]
push 0x20a
push 0
push esi
call fcn.00414cd0
add esp, 0xc
push esi
push 0x43aa4a
push 0x4418a8
call fcn.00410e10
add esp, 0xc
test eax, eax
je 0x407e0a
xor edi, edi
lea ebx, [ebp - 0x62e]
push 0x20a
push edi
push ebx
call fcn.00414cd0
add esp, 0xc
push 0x4418a8
push str._supdate.log
push 0x105
push ebx
call fcn.00404340
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
add esp, 0x624
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4426f4
call fcn.00412457
add esp, 4
cmp dword [0x4426f4], 0xffffffff
jne 0x407d17
mov dword [0x4424e8], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f4
call fcn.004124a9
add esp, 4
jmp 0x407d17
Function at 0x40a510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov ebx, edx
mov edi, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x21a]
push 0x20a
push 0
push esi
call fcn.00414cd0
add esp, 0xc
push esi
push 0x43a41a
push 0x4418a8
call fcn.00410e10
add esp, 0xc
test eax, eax
je 0x40a637
mov dword [ebp - 0x244], edi
push 0x43acd0
push esi
call fcn.0041e056
add esp, 8
test eax, eax
je 0x40a637
mov edi, eax
mov dword [ebp - 0x24c], ebx
xorps xmm0, xmm0
lea ebx, [ebp - 0x23c]
movups xmmword [ebx + 0x10], xmm0
movups xmmword [ebx], xmm0
push eax
push 0x1f
push 1
push ebx
call fcn.0041fa36
add esp, 0x10
mov esi, eax
push edi
call fcn.0041f3e2
add esp, 4
test eax, eax
sete al
mov dword [ebp - 0x250], eax
jne 0x40a69a
mov eax, dword [ebp + 8]
mov byte [ebp + esi - 0x23c], 0
test eax, eax
je 0x40a5d2
cmp byte [eax + 4], 0
je 0x40a5d2
mov byte [eax + 4], 0
push 0x3a
push ebx
call fcn.00414e30
add esp, 8
test eax, eax
jne 0x40a600
push 0xa
push ebx
call fcn.00414e30
add esp, 8
test eax, eax
jne 0x40a600
push ebx
call fcn.00420710
add esp, 4
add eax, ebp
add eax, 0xfffffdc4
mov dword [ebp - 0x248], eax
mov esi, eax
sub esi, ebx
mov eax, dword [ebp - 0x244]
mov ebx, eax
push eax
call fcn.00420710
add esp, 4
cmp esi, eax
jne 0x40a63b
push esi
push ebx
lea eax, [ebp - 0x23c]
push eax
call fcn.004207a0
add esp, 0xc
test eax, eax
sete cl
jmp 0x40a63d
xor ebx, ebx
jmp 0x40a6a9
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
mov ebx, dword [ebp - 0x248]
je 0x40a692
cmp byte [ebx], 0x3a
jne 0x40a692
mov dword [ebp - 0x244], ecx
inc ebx
lea esi, [ebp - 0x240]
mov dword [esi], 0
push 0xa
push esi
push ebx
call fcn.004209d8
add esp, 0xc
cmp dword [esi], ebx
je 0x40a68c
lea ecx, [eax - 0x7fffffff]
cmp ecx, 2
jb 0x40a68c
mov ecx, dword [ebp + 8]
cmp byte [ecx + 4], 0
jne 0x40a6c0
mov dword [ecx], eax
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x24c]
mov byte [eax], cl
push edi
call fcn.0041f2e7
add esp, 4
mov ebx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, ebx
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x40af60
Capabilities:
Hash data via wincrypt
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
test edx, edx
je 0x40afb9
cmp dword [ebp + 8], 0
je 0x40afb9
cmp dword [ebp + 0x10], 0
je 0x40afb9
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40afb9
push dword [ebp + 0xc]
push edx
push dword [ebp + 8]
push ecx
call fcn.0040bd30
add esp, 0x10
test eax, eax
jne 0x40afdd
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push dword [eax + ebx*4]
call esi
test eax, eax
je 0x40afef
inc ebx
cmp edi, ebx
jne 0x40af9c
xor eax, eax
jmp 0x40afd8
push 2
call fcn.0041552f
add esp, 4
push eax
push 1
push 0x24
push str.ERROR:_Invalid_parameter_specified._n
call fcn.0041fc54
add esp, 0x10
xor eax, eax
dec eax
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.0041552f
add esp, 4
push esi
push str.ERROR:_Could_not_read__s_n
jmp 0x40b001
push 2
call fcn.0041552f
add esp, 4
push dword [ebp + 0x18]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push eax
call fcn.00432360
add esp, 0xc
jmp 0x40afd5
Function at 0x40b800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push 0x20
push 1
push edi
call fcn.0041fa36
add esp, 0x10
mov esi, 6
cmp eax, 0x20
jne 0x40b8c9
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
push ebx
call fcn.0041a274
add esp, 4
mov ecx, esp
push ecx
push eax
call fcn.0041a5eb
add esp, 8
mov esi, 6
test eax, eax
jne 0x40b8c9
mov eax, 0x4944424d
xor eax, dword [edi]
mov ecx, 0x30314646
xor ecx, dword [edi + 4]
or ecx, eax
mov esi, 0x29
jne 0x40b8c9
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x40b8c9
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x40b8c9
sub eax, dword [edi + 0x18]
jb 0x40b8c9
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
jb 0x40b8c9
xor edx, edx
cmp eax, ecx
cmove esi, edx
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b8e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
add edi, ebx
add edi, dword [esi + 0x1c]
push edi
call fcn.00420172
add esp, 4
test eax, eax
je 0x40b964
test edi, edi
mov dword [ebp - 0x18], eax
je 0x40b947
mov ebx, eax
mov eax, 0x7fffffff
cmp edi, eax
mov esi, 0x7fffffff
cmovb esi, edi
push dword [ebp + 0xc]
push esi
push 1
push ebx
call fcn.0041fa36
add esp, 0x10
cmp eax, esi
jne 0x40b96e
add ebx, esi
sub edi, esi
jne 0x40b916
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x14]
mov eax, dword [ebp - 0x18]
imul ecx, ebx, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x40b97a
mov dword [ebp - 0x10], 0x29
jmp 0x40ba85
mov eax, 0xc
jmp 0x40ba93
mov dword [ebp - 0x10], 6
jmp 0x40ba85
test ebx, ebx
jle 0x40ba75
mov ecx, eax
add ecx, ebx
mov edx, dword [esi + 0x18]
add edx, ecx
mov esi, dword [esi + 0x1c]
add esi, edx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov ebx, ecx
mov edi, eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
sub ecx, esi
cmp eax, ecx
ja 0x40b958
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x40b958
test eax, eax
je 0x40b9f2
xor eax, eax
mov cl, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x40b9e3
jmp 0x40b9f4
xor ecx, ecx
push dword [ebp + 0x14]
push ecx
push 1
push ebx
call fcn.0041fc54
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi]
jne 0x40ba7e
mov dword [ebp - 0x10], 0x40
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
sub ecx, edx
cmp eax, ecx
ja 0x40b958
push dword [ebp + 0x14]
push eax
push 1
push edx
call fcn.0041fc54
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x40ba85
add esi, dword [ebp - 0x1c]
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x10]
sub edx, esi
cmp ecx, edx
jl 0x40b958
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x40b958
add ebx, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
add esi, ecx
add edi, 0xc
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x40b9a3
jmp 0x40ba85
mov dword [ebp - 0x10], 0
jmp 0x40ba85
mov dword [ebp - 0x10], 0x40
push dword [ebp - 0x18]
call fcn.0041fc39
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret