joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ff1
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x43eae0], 0x4c554e
mov edi, 0x400
mov ebp, 0x43eae0
je 0x40603d
push 1
push 0
push esi
call fcn.00405f1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40615c
cmp eax, edi
jg 0x40615c
mov esi, 0x43eee0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40615c
cmp eax, edi
jg 0x40615c
push esi
push ebp
push str._s_s_r_n
push 0x43e6e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x447750]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040641b
push 4
push 0xc0000000
push esi
call fcn.00405f1b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40615c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406155
push edi
push esi
push ebp
call fcn.00405f93
test eax, eax
je 0x406155
push str._Rename__r_n
push esi
call fcn.00405e80
test eax, eax
jne 0x4060f3
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406128
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405e80
mov ebp, eax
test ebp, ebp
je 0x406124
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406115
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40610f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40612a
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43e6e0
push eax
call fcn.00405ed6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405fc2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406161
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406184
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ff1
pop ecx
pop ecx
inc dword [0x4477d0]
ret 8

Function at 0x40626f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040620e
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062de
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x4062de
cmp dword [ebp + 0xc], 1
je 0x4062e1
cmp dword [ebp + 0xc], 2
je 0x4062e1
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406726
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40674a
xor eax, eax
test eax, eax
je 0x40675c
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40675c
xor ecx, ecx
jmp 0x40675f
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40684b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43f2e4], 0
push esi
jne 0x406882
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40685c
mov dword [ecx*4 + 0x43f2e0], eax
inc ecx
cmp ecx, 0x100
jl 0x406857
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068b3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43f2e0]
xor eax, esi
inc ecx
dec edx
jne 0x406895
pop edi
not eax
pop esi
ret 0xc
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x100725f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001854
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072b7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072aa
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072b9
xor eax, eax
pop esi
leave
ret 4

Function at 0x100739d
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1001898
call fcn.01007568
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10073da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073da
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10073f2
cmp eax, 0x20b
je 0x10073df
mov dword [ebp - 0x1c], ebx
jmp 0x1007406
cmp dword [ecx + 0x84], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1007400
cmp dword [ecx + 0x74], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100ab9c], 0xffffffff
or dword [0x100aba0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009ab8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009ab4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100aba4], eax
call fcn.010075f4
cmp dword [0x1009608], ebx
jne 0x1007461
push fcn.010075f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010075dd
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009ab0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009aac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10074f7
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074cb
cmp al, 0x22
jne 0x10074bd
cmp byte [esi], 0x22
jne 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074de
cmp al, 0x20
jbe 0x10074d0
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
jmp 0x101a30b
cmp byte [esi], 0x20
jbe 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10074f7
Function at 0x6adf7404
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6b586018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6b586018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6adf74ff
jmp 0x6adf75da
jmp 0x6adf76b5
jmp 0x6adf7790
jmp 0x6adf786b
jmp 0x6adf7946
jmp 0x6adf7a21
jmp 0x6adf7afc
jmp 0x6adf7bd7
jmp 0x6adf7cb2
jmp 0x6adf7d8d
jmp 0x6adf7e68
jmp 0x6adf7f43
jmp 0x6adf801e
jmp 0x6adf80f9
mov dword [ebp - 0x14], 0
jmp 0x6adf81db
jmp 0x6adf82b6
jmp 0x6adf8391
jmp 0x6adf846c
jmp 0x6adf8547
jmp 0x6adf8622
jmp 0x6adf86fd
jmp 0x6adf87d8
jmp 0x6adf88b3
jmp 0x6adf898e
jmp 0x6adf8a69
jmp 0x6adf8b44
jmp 0x6adf8c1f
jmp 0x6adf8cfa
jmp 0x6adf8dd5
mov dword [ebp - 0x18], 0
jmp 0x6adf8eb7
jmp 0x6adf8f92
jmp 0x6adf906d
jmp 0x6adf9148
jmp 0x6adf9223
jmp 0x6adf92fe
jmp 0x6adf93d9
jmp 0x6adf94b4
jmp 0x6adf958f
jmp 0x6adf966a
jmp 0x6adf9745
jmp 0x6adf9820
jmp 0x6adf98fb
jmp 0x6adf99d6
jmp 0x6adf9ab1
mov dword [ebp - 0x10], 0
jmp 0x6adf9b93
jmp 0x6adf9c6e
jmp 0x6adf9d49
jmp 0x6adf9e24
jmp 0x6adf9eff
jmp 0x6adf9fda
jmp 0x6adfa0b5
jmp 0x6adfa190
jmp 0x6adfa26b
jmp 0x6adfa346
jmp 0x6adfa421
jmp 0x6adfa4fc
jmp 0x6adfa5d7
jmp 0x6adfa6b2
jmp 0x6adfa78d
mov dword [ebp - 0x10], 0
jmp 0x6adfe80a
jmp 0x6adfa874
jmp 0x6adfa94f
jmp 0x6adfaa2a
jmp 0x6adfab05
jmp 0x6adfabe0
jmp 0x6adfacbb
jmp 0x6adfad96
jmp 0x6adfae71
jmp 0x6adfaf4c
jmp 0x6adfb027
jmp 0x6adfb102
jmp 0x6adfb1dd
jmp 0x6adfb2b8
jmp 0x6adfb393
jmp 0x6adfb46e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6b586014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6adfb55a
jmp 0x6adfb635
jmp 0x6adfb710
jmp 0x6adfb7eb
jmp 0x6adfb8c6
jmp 0x6adfb9a1
jmp 0x6adfba7c
jmp 0x6adfbb57
jmp 0x6adfbc32
jmp 0x6adfbd0d
jmp 0x6adfbde8
jmp 0x6adfbec3
jmp 0x6adfbf9e
jmp 0x6adfc079
jmp 0x6adfc154
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6b58601c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6adfc240
jmp 0x6adfc31b
jmp 0x6adfc3f6
jmp 0x6adfc4d1
jmp 0x6adfc5ac
jmp 0x6adfc687
jmp 0x6adfc762
jmp 0x6adfc83d
jmp 0x6adfc918
jmp 0x6adfc9f3
jmp 0x6adfcace
jmp 0x6adfcba9
jmp 0x6adfcc84
jmp 0x6adfcd5f
jmp 0x6adfce3a
mov eax, dword [0x6b586008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x6adfcf33
jmp 0x6adfd00e
jmp 0x6adfd0e9
jmp 0x6adfd1c4
jmp 0x6adfd29f
jmp 0x6adfd37a
jmp 0x6adfd455
jmp 0x6adfd530
jmp 0x6adfd60b
jmp 0x6adfd6e6
jmp 0x6adfd7c1
jmp 0x6adfd89c
jmp 0x6adfd977
jmp 0x6adfda52
jmp 0x6adfdb2d
add dword [ebp - 0xc], 0x28
jmp 0x6adfdc0c
jmp 0x6adfdce7
jmp 0x6adfddc2
jmp 0x6adfde9d
jmp 0x6adfdf78
jmp 0x6adfe053
jmp fcn.6adfe12e
mov eax, dword [0x6b586018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6adfa799
nop
leave
ret
Function at 0x401000
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x940
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
push edi
push 0x1f4
call ebx
mov ecx, 0xf
mov esi, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x61
xor esi, esi
lea esp, [esp]
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov edx, eax
shl edx, 5
sub edx, eax
add edx, edx
mov eax, ecx
sub eax, edx
mov dl, byte [ebp + eax - 0x60]
mov byte [ebp + esi - 0x20], dl
inc esi
add ecx, 0x929
cmp esi, 0x1a
jl 0x401040
push 0x100
lea eax, [ebp - 0x160]
push 0
push eax
mov byte [ebp + esi - 0x20], 0
call fcn.004024e0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x160]
push str.http:___s.ru_
push edx
call fcn.0040150b
push str._1_Run_this_program
push 0x40ba5c
call fcn.0040158f
add esp, 0x20
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.36__KHTML__like_Gecko_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x4010e1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011fc
mov esp, ebp
pop ebp
ret 0x10
push str._2_Get_dump_of_the_process_memory
push 0x40ba5c
call fcn.0040158f
add esp, 8
push 0
push 0x80000000
push 0
push 0
lea eax, [ebp - 0x160]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
mov esi, eax
call fcn.004014ba
lea ecx, [ebp - 0x93c]
push ecx
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], edx
call fcn.00401493
mov edx, dword [eax + 0x14]
add edx, 0x76c
add esp, 8
cmp edx, 0x7de
jle 0x401160
push 0x7530
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011fc
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x401170
lea eax, [ebp - 0x934]
push eax
push 0x3e8
lea ecx, [ebp - 0x930]
push ecx
push esi
mov dword [ebp - 0x934], 0x3e8
call ebx
test eax, eax
mov eax, dword [ebp - 0x934]
je 0x40119e
test eax, eax
je 0x4011a8
mov byte [ebp + eax - 0x930], 0
jmp 0x401170
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edx, [ebp - 0x940]
push edx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push str._3_You_will_get_answer
push 0x40ba5c
call fcn.0040158f
add esp, 8
push 0x7530
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004011fc
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x401206
repz ret
jmp fcn.004017ec
Function at 0x4073fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
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.0040484a
and dword [ebp - 0x14], 0
cmp dword [0x40ebec], 0
mov dword [ebp - 0x18], eax
jne 0x4074ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407555
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407555
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40ebec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40ebf0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40ebf4], eax
call edi
push eax
call esi
mov dword [0x40ebfc], eax
test eax, eax
je 0x4074ad
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40ebf8], eax
mov eax, dword [0x40ebf8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x407506
cmp dword [0x40ebfc], ecx
je 0x407506
push eax
call esi
push dword [0x40ebfc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407506
test ebx, ebx
je 0x407506
call edi
test eax, eax
je 0x4074fd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4074fd
test byte [ebp - 8], 1
jne 0x407506
or dword [ebp + 0x10], 0x200000
jmp 0x407539
mov eax, dword [0x40ebf0]
cmp eax, dword [ebp - 0x18]
je 0x407539
push eax
call esi
test eax, eax
je 0x407539
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407539
mov eax, dword [0x40ebf4]
cmp eax, dword [ebp - 0x18]
je 0x407539
push eax
call esi
test eax, eax
je 0x407539
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40ebec]
call esi
test eax, eax
je 0x407555
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407557
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011fc
leave
ret
Function at 0x402c50
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x402cd5
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.msys_2.0.dll_strrchr
test eax, eax
je 0x402cc0
lea ebp, [eax + 1]
mov ecx, ebp
sub ecx, ebx
cmp ecx, 6
jle 0x402cc0
lea esi, [eax - 6]
mov ecx, 7
mov edi, str._.libs_
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x402cc0
mov ecx, 3
mov edi, 0x40c0cc
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
mov ebx, ebp
seta dl
setb cl
cmp dl, cl
jne 0x402cc0
lea ebx, [eax + 4]
mov eax, dword [sym.imp.msys_2.0.dll_program_invocation_short_name]
mov dword [eax], ebx
mov eax, dword [sym.imp.msys_2.0.dll_program_invocation_name]
mov dword [0x41204c], ebx
mov dword [eax], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msys_2.0.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov dword [esp + 0xc], eax
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x405390
Capabilities:
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov dword [esp], eax
call sub.msys_2.0.dll_fstatat
test eax, eax
mov ebp, eax
jne 0x4053e9
mov dword [esp], ebx
call sub.msys_2.0.dll_strlen
test esi, 2
mov ecx, eax
jne 0x4053f3
mov eax, dword [edi + 0x10]
and eax, 0xf000
cmp eax, 0x4000
je 0x4053e9
cmp byte [ebx + ecx - 1], 0x2f
je 0x405440
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx + eax - 1], 0x2f
jne 0x4053e9
mov eax, dword [edi + 0x10]
and eax, 0xf000
cmp eax, 0x4000
je 0x4053e9
cmp eax, 0xa000
jne 0x405440
mov eax, dword [esp + 0x40]
and esi, 0xfffffffd
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call sub.msys_2.0.dll_fstatat
test eax, eax
mov ecx, dword [esp + 0x1c]
je 0x4053d3
mov ebp, eax
jmp 0x4053e9
call sub.msys_2.0.dll___errno
mov ebp, 0xffffffff
mov dword [eax], 0x14
jmp 0x4053e9

Function at 0x4058b0
Capabilities:
Set current directory

Disassembly:
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x14
mov eax, dword [eax + 0x18]
cmp eax, edx
jne 0x4058c5
cmp eax, 0xfffffffe
jne 0x405901
test cl, cl
jne 0x4058e4
test byte [ebx + 0x28], 4
jne 0x4058db
test eax, eax
js 0x4058db
mov dword [esp], eax
call sub.msys_2.0.dll_close
mov dword [ebx + 0x18], esi
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], eax
lea eax, [ebx + 0x34]
mov dword [esp], eax
call fcn.00408a80
test eax, eax
js 0x4058db
mov dword [esp], eax
call sub.msys_2.0.dll_close
jmp 0x4058db
call sub.msys_2.0.dll_abort
lea esi, [esi]
lea edi, [edi]