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

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0x48]
xor edi, ebx
mov eax, ebx
mov dword [esp + 0xc], edi
test ebx, ebx
je 0x414650
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + eax - 1]
mov ecx, edi
shl ecx, 5
add edx, ecx
mov ecx, edi
shr ecx, 2
add edx, ecx
xor edi, edx
dec eax
jne 0x414630
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
dec eax
and eax, edi
lea eax, [edx + eax*4]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0x4146c7
movzx ecx, byte [eax + 7]
cmp ebx, ecx
jne 0x4146c0
mov edi, dword [esp + 0x1c]
mov ecx, ebx
lea esi, [eax + 0x10]
cmp ebx, 4
jb 0x414694
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x4146b8
sub ecx, 4
add esi, 4
add edi, 4
cmp ecx, 4
jae 0x414680
test ecx, ecx
je 0x4146f2
mov dl, byte [esi]
cmp dl, byte [edi]
jne 0x4146b8
cmp ecx, 1
jbe 0x4146f2
mov dl, byte [esi + 1]
cmp dl, byte [edi + 1]
jne 0x4146b8
cmp ecx, 2
jbe 0x4146f2
mov cl, byte [esi + 2]
cmp cl, byte [edi + 2]
je 0x4146f2
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x414666
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
jl 0x414732
cmp eax, 0x7fffffff
jne 0x41470c
push 1
push esi
call fcn.0040f460
add esp, 8
cmp dword [ebp + 0x1c], 0x7fffffff
jne 0x41470c
push 4
push esi
call fcn.0040ad10
mov dl, byte [ebp + 0x4c]
mov cl, byte [eax + 5]
xor dl, 0x18
test cl, dl
je 0x414771
pop edi
xor cl, 0x18
pop esi
mov byte [eax + 5], cl
pop ebp
add esp, 8
ret
mov eax, dword [ebp + 0x20]
cmp eax, 0x1fffffff
jg 0x414722
add eax, eax
push eax
push esi
call fcn.004144d0
add esp, 8
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
dec ecx
and ecx, edi
lea eax, [edx + ecx*4]
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0x11]
push ecx
push 4
push esi
call fcn.0040c360
mov edx, dword [esp + 0x28]
mov esi, eax
push ebx
push edx
lea eax, [esi + 0x10]
mov dword [esi + 8], edi
mov byte [esi + 6], 0
push eax
mov byte [esi + ebx + 0x10], 0
call fcn.0042b530
mov eax, dword [esp + 0x28]
mov byte [esi + 7], bl
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov dword [eax], esi
add esp, 0x18
inc dword [ebp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x417590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
mov eax, ebx
add eax, 1
mov edx, edi
adc edx, 0
and eax, ebx
and edx, edi
or eax, edx
jne 0x4175c1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
and eax, ebx
and edx, edi
pop edi
pop ebx
add esp, 0x28
ret
push ebp
push esi
mov edx, ebx
mov esi, edi
shrd edx, esi, 1
or edx, ebx
shr esi, 1
or esi, edi
mov eax, edx
mov ebp, esi
shrd eax, ebp, 2
or edx, eax
shr ebp, 2
or esi, ebp
mov eax, edx
mov ebp, esi
shrd eax, ebp, 4
or edx, eax
shr ebp, 4
or esi, ebp
mov eax, edx
mov ebp, esi
shrd eax, ebp, 8
or edx, eax
shr ebp, 8
or esi, ebp
mov eax, edx
mov ebp, esi
shrd eax, ebp, 0x10
or edx, eax
mov eax, dword [esp + 0x3c]
shr ebp, 0x10
or esi, ebp
or edx, esi
and eax, edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x40]
and edx, esi
mov dword [esp + 0x24], esi
cmp edx, edi
jb 0x417717
ja 0x417635
cmp eax, ebx
jbe 0x417717
mov edx, dword [ecx + 0x10]
xor edx, dword [ecx]
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x14]
xor edx, dword [ecx + 4]
mov edi, eax
xor esi, eax
mov ebp, edi
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x1c]
xor edx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
shld ebx, edi, 2
add edi, edi
add edi, edi
add ebp, edi
mov edi, dword [esp + 0x2c]
adc edi, ebx
mov dword [esp + 0x1c], edi
mov ebx, edx
xor ebx, dword [ecx + 4]
mov edi, esi
xor edi, dword [ecx]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx], edi
mov edi, dword [esp + 0x34]
xor ebp, edi
shld edi, eax, 0x11
xor edi, dword [esp + 0x14]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x10]
xor ebx, eax
shl eax, 0x11
xor eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], eax
mov eax, esi
shrd esi, edx, 0x13
shl eax, 0xd
xor edi, edi
or edi, esi
mov esi, dword [esp + 0x18]
shr edx, 0x13
or eax, edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], edi
mov edi, dword [esp + 0x1c]
mov eax, edi
shld edi, esi, 7
shr eax, 0x19
xor edx, edx
or edx, edi
shl esi, 7
or eax, esi
mov esi, eax
mov edi, edx
shld edx, eax, 3
add eax, eax
add eax, eax
add eax, eax
add eax, esi
adc edx, edi
and edx, dword [esp + 0x24]
and eax, dword [esp + 0x20]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
cmp edx, dword [esp + 0x48]
ja 0x417635
jb 0x417717
cmp eax, dword [esp + 0x44]
ja 0x417635
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret
Function at 0x417880
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
push ebp
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x30]
push esi
mov dword [eax + 8], 0xff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0xc], 0x10
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
xor ecx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x14]
xor ecx, ebx
xor esi, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x1c]
xor ecx, ebp
mov dword [esp + 0x20], ebp
mov ebp, esi
xor ebp, edi
mov edi, ecx
xor edi, ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x20]
xor ebx, edx
mov dword [eax], ebp
mov ebp, dword [esp + 0x18]
xor ebp, edi
shld edi, edx, 0x11
xor edi, dword [esp + 0x18]
shl edx, 0x11
xor edx, dword [esp + 0x14]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edx
mov edx, esi
shrd esi, ecx, 0x13
xor edi, edi
shl edx, 0xd
shr ecx, 0x13
or edi, esi
or edx, ecx
dec dword [esp + 0x10]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
jne 0x4178c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push eax
push ecx
push esi
call fcn.00406120
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
push esi
call fcn.00406120
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x41c750
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x458290]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
lea ecx, [esp]
push ecx
push eax
call fcn.00402640
add esp, 8
jmp 0x41c780
lea edx, [esp]
push 0x200
push edx
call fcn.00403670
push esi
push 0x200
push 1
push eax
call fcn.0042b033
add dword [esp + 0x20], eax
add esp, 0x18
cmp eax, 0x200
je 0x41c780
lea eax, [esp]
push eax
call fcn.004025a0
mov ecx, dword [esp + 0x214]
add esp, 4
xor ecx, esp
call fcn.0042a974
add esp, 0x214
ret
Function at 0x41c7d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x458290]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
push esi
push edi
push ebx
mov esi, ecx
call fcn.004053e0
lea edi, [eax - 1]
push esi
mov dword [esp + 0x14], edi
call fcn.00430d51
add esp, 8
test edi, edi
jne 0x41c84f
push 1
push esi
push ebx
call fcn.0041c630
mov ebp, dword [esp + 0x234]
add esp, 0xc
mov edi, eax
inc ebp
push esi
call fcn.0042b078
add esp, 4
test eax, eax
je 0x41c99f
push 0
push 0
push ebx
call fcn.004022a0
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
push str.too_many_arguments
add edi, 0x14
push edi
push ebx
call fcn.004024c0
mov ebp, dword [esp + 0x234]
add esp, 0xc
mov edi, 1
lea ecx, [ecx]
dec dword [esp + 0xc]
test edi, edi
je 0x41c819
push ebp
push ebx
call fcn.004056d0
add esp, 8
cmp eax, 3
jne 0x41c900
push ebp
push ebx
call fcn.004034b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x41c8c3
push esi
call fcn.0042b0a0
mov edi, eax
push esi
push edi
call fcn.00430c44
push 0x4465f6
push ebx
call fcn.004061a0
xor eax, eax
add esp, 0x14
cmp edi, 0xffffffff
setne al
mov edi, eax
jmp 0x41c967
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00402640
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00403670
push esi
push edi
push 1
push eax
call fcn.0042b033
mov edi, eax
add dword [esp + 0x38], edi
lea eax, [esp + 0x30]
push eax
call fcn.004025a0
xor ecx, ecx
add esp, 0x24
cmp ecx, edi
sbb edi, edi
neg edi
jmp 0x41c967
push 0
push ebp
push ebx
call fcn.00403340
add esp, 0xc
cmp byte [eax], 0x2a
jne 0x41c912
inc eax
movsx eax, byte [eax]
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x41c924.77
movzx edx, byte [eax + 0x41c9ec]
jmp dword [edx*4 + 0x41c9d8]
push esi
push ebx
call fcn.0041c3c0
add esp, 8
mov edi, eax
jmp 0x41c967
push 1
push esi
push ebx
call fcn.0041c630
add esp, 0xc
mov edi, eax
jmp 0x41c967
push 0
push esi
push ebx
call fcn.0041c630
add esp, 0xc
mov edi, eax
jmp 0x41c967
push ebx
call fcn.0041c750
add esp, 4
mov edi, 1
inc ebp
cmp dword [esp + 0xc], 0
jne 0x41c870
jmp 0x41c819
push str.invalid_format
push ebp
push ebx
call fcn.004030e0
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
test edi, edi
jne 0x41c9b4
push 0xfffffffffffffffe
push ebx
call fcn.00405400
push ebx
call fcn.004060f0
add esp, 0xc
mov ecx, dword [esp + 0x220]
pop edi
mov eax, ebp
sub eax, dword [esp + 0x224]
pop esi
pop ebp
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
Function at 0x41c949
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x458290]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
push esi
push edi
push ebx
mov esi, ecx
call fcn.004053e0
lea edi, [eax - 1]
push esi
mov dword [esp + 0x14], edi
call fcn.00430d51
add esp, 8
test edi, edi
jne 0x41c84f
push 1
push esi
push ebx
call fcn.0041c630
mov ebp, dword [esp + 0x234]
add esp, 0xc
mov edi, eax
inc ebp
push esi
call fcn.0042b078
add esp, 4
test eax, eax
je 0x41c99f
push 0
push 0
push ebx
call fcn.004022a0
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
push str.too_many_arguments
add edi, 0x14
push edi
push ebx
call fcn.004024c0
mov ebp, dword [esp + 0x234]
add esp, 0xc
mov edi, 1
lea ecx, [ecx]
dec dword [esp + 0xc]
test edi, edi
je 0x41c819
push ebp
push ebx
call fcn.004056d0
add esp, 8
cmp eax, 3
jne 0x41c900
push ebp
push ebx
call fcn.004034b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x41c8c3
push esi
call fcn.0042b0a0
mov edi, eax
push esi
push edi
call fcn.00430c44
push 0x4465f6
push ebx
call fcn.004061a0
xor eax, eax
add esp, 0x14
cmp edi, 0xffffffff
setne al
mov edi, eax
jmp 0x41c967
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00402640
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00403670
push esi
push edi
push 1
push eax
call fcn.0042b033
mov edi, eax
add dword [esp + 0x38], edi
lea eax, [esp + 0x30]
push eax
call fcn.004025a0
xor ecx, ecx
add esp, 0x24
cmp ecx, edi
sbb edi, edi
neg edi
jmp 0x41c967
push 0
push ebp
push ebx
call fcn.00403340
add esp, 0xc
cmp byte [eax], 0x2a
jne 0x41c912
inc eax
movsx eax, byte [eax]
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x41c924.77
movzx edx, byte [eax + 0x41c9ec]
jmp dword [edx*4 + 0x41c9d8]
push esi
push ebx
call fcn.0041c3c0
add esp, 8
mov edi, eax
jmp 0x41c967
push 1
push esi
push ebx
call fcn.0041c630
add esp, 0xc
mov edi, eax
jmp 0x41c967
push 0
push esi
push ebx
call fcn.0041c630
add esp, 0xc
mov edi, eax
jmp 0x41c967
push ebx
call fcn.0041c750
add esp, 4
mov edi, 1
inc ebp
cmp dword [esp + 0xc], 0
jne 0x41c870
jmp 0x41c819
push str.invalid_format
push ebp
push ebx
call fcn.004030e0
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
test edi, edi
jne 0x41c9b4
push 0xfffffffffffffffe
push ebx
call fcn.00405400
push ebx
call fcn.004060f0
add esp, 0xc
mov ecx, dword [esp + 0x220]
pop edi
mov eax, ebp
sub eax, dword [esp + 0x224]
pop esi
pop ebp
xor ecx, esp
call fcn.0042a974
add esp, 0x218
ret
Function at 0x41cbb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, eax
call fcn.004053e0
mov ebp, eax
add esp, 4
sub ebp, esi
mov ebx, 1
je 0x41cc3e
lea ebx, [ebx]
push esi
push edi
dec ebp
call fcn.004056d0
add esp, 8
cmp eax, 3
jne 0x41cc48
push esi
push edi
call fcn.004057d0
add esp, 8
push 0
push esi
push edi
test eax, eax
je 0x41cc0d
call fcn.00405c70
push edx
push eax
mov eax, dword [esp + 0x28]
push str._lld
push eax
call fcn.00429ff8
add esp, 0x1c
jmp 0x41cc2b
call fcn.00405be0
fstp qword [esp + 4]
mov ecx, dword [esp + 0x20]
add esp, 4
push str._.14g
push ecx
call fcn.00429ff8
add esp, 0x10
test ebx, ebx
je 0x41cc33
test eax, eax
jg 0x41cc76
xor ebx, ebx
inc esi
test ebp, ebp
jne 0x41cbd0
test ebx, ebx
je 0x41cc7d
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
lea edx, [esp + 0xc]
push edx
push esi
push edi
call fcn.00403340
add esp, 0xc
test ebx, ebx
je 0x41cc33
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
push edx
push 1
push eax
call fcn.0042a410
add esp, 0x10
cmp eax, dword [esp + 0xc]
jne 0x41cc33
mov ebx, 1
jmp 0x41cc35
push 0
push 0
push edi
call fcn.004022a0
add esp, 0xc
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x424c30
Capabilities:
Check http status code

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, eax
mov ebp, dword [esi + 0x30]
movzx eax, byte [ebp + 0x34]
push edi
push 0xb
push str._for_state_
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 5
mov dword [esp + 0x24], eax
call fcn.004206c0
push eax
mov eax, esi
call fcn.004223a0
push 0xb
push str._for_state_
push esi
call fcn.004206c0
push eax
mov eax, esi
call fcn.004223a0
push 0xb
push str._for_state_
push esi
call fcn.004206c0
push eax
mov eax, esi
call fcn.004223a0
push 0xb
push str._for_state_
push esi
call fcn.004206c0
push eax
mov eax, esi
call fcn.004223a0
mov ecx, dword [esp + 0x78]
add esp, 0x40
push ecx
mov eax, esi
call fcn.004223a0
add esp, 4
cmp dword [esi + 0x10], 0x2c
jne 0x424d46
push esi
call fcn.004221b0
mov eax, 0x123
add esp, 4
cmp dword [esi + 0x10], eax
jne 0x424d50
mov ebx, dword [esi + 0x18]
push esi
call fcn.004221b0
mov edi, dword [esi + 0x44]
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov ebp, eax
sub ebp, dword [edx + 0x28]
add esp, 4
inc ebp
push str.local_variables
cmp ebp, 0xc8
jg 0x424d3a
push 0xffff
push 0x18
lea edx, [edi + 8]
push edx
inc eax
push eax
mov eax, dword [edi]
push eax
push ecx
call fcn.00420420
mov ecx, dword [edi + 4]
mov ebp, dword [esp + 0x30]
mov dword [edi], eax
lea edx, [ecx + ecx*2]
inc ecx
lea eax, [eax + edx*8]
mov dword [edi + 4], ecx
add esp, 0x1c
inc dword [esp + 0x10]
mov byte [eax + 9], 0
mov dword [eax + 0x10], ebx
jmp 0x424cb6
push 0xc8
mov esi, edx
call fcn.00422250
mov eax, 0x10b
cmp dword [esi + 0x10], eax
je 0x424d55
call fcn.00422220
push esi
call fcn.004221b0
mov eax, dword [esi + 4]
add esp, 4
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.004236b0
mov edi, dword [esi + 0x30]
mov ebx, 4
sub ebx, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0x12
je 0x424daa
cmp eax, 0x13
je 0x424daa
test eax, eax
je 0x424d98
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.004282a0
add esp, 8
test ebx, ebx
jle 0x424dd2
movzx edx, byte [edi + 0x34]
push ebx
push edx
push edi
call fcn.00427e10
jmp 0x424dbf
lea eax, [ebx + 1]
test eax, eax
jns 0x424db3
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00427400
add esp, 0xc
test ebx, ebx
jle 0x424dd2
push ebx
push edi
call fcn.00426f80
add esp, 8
jmp 0x424dd5
add byte [edi + 0x34], bl
push 4
push esi
call fcn.004224d0
mov eax, dword [ebp + 0xc]
push 3
mov byte [eax + 0xd], 1
mov byte [eax + 0xf], 1
push ebp
mov byte [ebp + 0x36], 1
call fcn.00426f40
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
push 1
push ecx
add ebx, 0xfffffffc
push edx
mov eax, esi
call fcn.00424990
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x42a974
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458290]
jne 0x42a97e
repz ret
jmp fcn.00433de0
Function at 0x43c162
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43c189
call fcn.0042adb3
mov dword [eax], esi
call fcn.0042ada0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00431e43
mov eax, esi
jmp 0x43c1de
test dword [ebp + 0xc], 0xfffffff9
jne 0x43c16f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43c1b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042adc6
pop ecx
call fcn.0042ada0
mov eax, dword [eax]
jmp 0x43c1de
test al, 0x10
jne 0x43c1dc
test al, 1
je 0x43c1dc
test byte [ebp + 0xc], 2
je 0x43c1dc
call fcn.0042adb3
mov dword [eax], 5
call fcn.0042ada0
mov dword [eax], 0xd
jmp 0x43c1ad
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4424fd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x458290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043150a
and dword [ebp - 0x14], 0
cmp dword [0x45a364], 0
mov dword [ebp - 0x18], eax
jne 0x4425b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x442658
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x442658
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45a364], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45a368], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45a36c], eax
call edi
push eax
call esi
mov dword [0x45a374], eax
test eax, eax
je 0x4425b0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45a370], eax
mov eax, dword [0x45a370]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x442609
cmp dword [0x45a374], ecx
je 0x442609
push eax
call esi
push dword [0x45a374]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x442609
test ebx, ebx
je 0x442609
call edi
test eax, eax
je 0x442600
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x442600
test byte [ebp - 8], 1
jne 0x442609
or dword [ebp + 0x10], 0x200000
jmp 0x44263c
mov eax, dword [0x45a368]
cmp eax, dword [ebp - 0x18]
je 0x44263c
push eax
call esi
test eax, eax
je 0x44263c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44263c
mov eax, dword [0x45a36c]
cmp eax, dword [ebp - 0x18]
je 0x44263c
push eax
call esi
test eax, eax
je 0x44263c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45a364]
call esi
test eax, eax
je 0x442658
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44265a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a974
leave
ret
Function at 0x4024bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x61c], ebx
je 0x4024e4
mov eax, dword [esi + 0x620]
cmp eax, ebx
je 0x4024e4
push eax
call fcn.00418dde
pop ecx
mov edi, dword [ebp + 8]
mov dword [esi + 0x620], ebx
cmp edi, ebx
mov dword [esi + 0x61c], ebx
je 0x40259d
cmp byte [edi], bl
je 0x40259d
push 4
push edi
call fcn.00406c60
pop ecx
test eax, eax
pop ecx
jne 0x40259d
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40259d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40258f
cmp edi, ebx
jbe 0x40258f
shl eax, 3
push edi
mov dword [esi + 0x624], edi
mov dword [esi + 0x628], eax
call fcn.00418db5
cmp eax, ebx
pop ecx
mov dword [esi + 0x620], eax
je 0x40258f
lea ecx, [ebp - 8]
push ebx
push ecx
push edi
push eax
mov dword [esi + 0x61c], 1
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40258f
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
jne 0x4025ff
cmp dword [esi + 0x620], ebx
jne 0x4025eb
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [esi + 0x628], eax
jne 0x4025bc
mov dword [esi + 0x628], 1
mov eax, dword [esi + 0x628]
lea ecx, [esi + 0x624]
add eax, 7
shr eax, 3
mov dword [ecx], eax
push dword [ecx]
shl eax, 3
mov dword [esi + 0x628], eax
call fcn.00418db5
cmp eax, ebx
pop ecx
mov dword [esi + 0x620], eax
je 0x4025ff
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi + 0x61c], 1
call fcn.004023eb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402609
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x61c], ebx
je 0x402631
mov eax, dword [esi + 0x620]
cmp eax, ebx
je 0x402631
push eax
call fcn.00418dde
pop ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x620], ebx
cmp eax, ebx
mov dword [esi + 0x61c], ebx
je 0x4026eb
cmp byte [eax], bl
je 0x4026eb
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026eb
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0xc]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4026dc
mov eax, dword [ebp - 4]
mov ecx, eax
push eax
shl ecx, 3
mov dword [esi + 0x624], eax
mov dword [esi + 0x628], ecx
call fcn.00418db5
cmp eax, ebx
pop ecx
mov dword [esi + 0x620], eax
je 0x4026dc
lea ecx, [ebp - 4]
mov dword [esi + 0x61c], 1
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4026dc
mov dword [ebp - 8], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
pop edi
jne 0x40274d
cmp dword [esi + 0x620], ebx
jne 0x402739
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov dword [esi + 0x628], eax
jne 0x40270a
mov dword [esi + 0x628], 1
mov eax, dword [esi + 0x628]
lea ecx, [esi + 0x624]
add eax, 7
shr eax, 3
mov dword [ecx], eax
push dword [ecx]
shl eax, 3
mov dword [esi + 0x628], eax
call fcn.00418db5
cmp eax, ebx
pop ecx
mov dword [esi + 0x620], eax
je 0x40274d
push dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x61c], 1
call fcn.004023eb
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0x10

Function at 0x402756
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x620], ebx
je 0x4027ce
cmp dword [esi + 0x624], ebx
je 0x4027ce
mov eax, dword [ebp + 8]
push edi
cmp eax, ebx
je 0x4027c9
cmp byte [eax], bl
je 0x4027c9
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4027c9
lea eax, [ebp + 8]
push ebx
push eax
mov dword [ebp + 8], ebx
push dword [esi + 0x624]
push dword [esi + 0x620]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4027c2
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
jmp 0x4027d0
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4