joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff06
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00413660
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40ff21
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40ff2e
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40fff1
movzx eax, word [esi]
test ax, ax
je 0x40fff1
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40ff7b
test edi, edi
je 0x40ff85
test ebx, ebx
jne 0x40ff85
test ecx, ecx
je 0x40ff77
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40ff9c
cmp eax, 0xd
je 0x40ffaf
cmp eax, 0xa
je 0x40ffb2
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40ffaa
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40ff5d
jmp 0x40ffb2
mov byte [edx], 1
jmp 0x40ffb2
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40ffeb
mov word [edi], ax
test ebx, ebx
je 0x40ffeb
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00406748
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40fff3
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40fffe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x410059
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x428220]
call esi
pop esi
jmp 0x410061
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412563
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44da64], 0
push 1
push dword [esp + 8]
mov byte [0x44da59], 1
mov byte [0x44da5a], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401197
cmp dword [0x44da44], 0
jne 0x4125a3
cmp byte [0x44da73], 0
je 0x4125ac
cmp dword [0x44da6c], 0
jne 0x4125bf
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x412692
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413660
cmp byte [0x44fa80], 0
je 0x412721
cmp word [0x44fa82], 0
je 0x412721
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44fa82
call fcn.00411280
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412720
push dword [ebp + 8]
call fcn.00418973
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412727
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00413660
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040648c
mov esi, eax
test esi, esi
je 0x41277f
movzx ecx, word [esi]
push ecx
jmp 0x41276a
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004065a5
test al, al
jne 0x412763
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486148]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485d40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x485d40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485d40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb30
jmp 0x41ec1d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485d40]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485d40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485d40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485d40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x485d40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485d40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485d40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485d40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x485d40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010f0
Capabilities:
Terminate process

Disassembly:
push eax
call fcn.00404292
add esp, 4
test eax, eax
jne 0x401111
push str.malloc
call fcn.0040413e
add esp, 4
push 1
call fcn.004040fe
ret

Function at 0x401260
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push edi
mov ebx, eax
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401270
sub eax, edx
inc eax
push eax
call fcn.00404292
mov edi, eax
add esp, 4
test edi, edi
jne 0x40129d
push str.malloc
call fcn.0040413e
add esp, 4
push 1
call fcn.004040fe
mov al, byte [0x412cbe]
test al, al
push ebp
push esi
mov esi, edi
je 0x4012b7
call fcn.00402930
mov dword [esp + 0x10], eax
mov ebp, edx
jmp 0x4012c0
mov ebp, dword [esp + 0x14]
jmp 0x4012c0
mov al, byte [ebx]
inc ebx
cmp al, 0x2e
mov ecx, 0x2f
je 0x4012cf
movsx ecx, al
mov byte [esi], cl
inc esi
test al, al
jne 0x4012c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x18]
push edi
mov esi, eax
call fcn.00403ea0
mov al, byte [0x412cbe]
add esp, 4
test al, al
je 0x40131f
call fcn.00402930
sub eax, dword [esp + 0x10]
sbb edx, ebp
push edx
push eax
call fcn.00402980
push eax
push str._ld_micro_seconds_to_load_main_class_n
call fcn.00403f11
push str._____JAVA_LAUNCHER_DEBUG_____n
call fcn.00403f11
add esp, 0x14
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret

Function at 0x401880
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x412c88]
cmp dword [0x412c80], eax
push ebx
jl 0x401927
mov ecx, dword [0x412c84]
test ecx, ecx
jne 0x4018d2
push 0x20
mov dword [0x412c88], 4
call fcn.00404292
add esp, 4
test eax, eax
jne 0x4018c8
push str.malloc
call fcn.0040413e
add esp, 4
push 1
call fcn.004040fe
mov ebx, eax
mov dword [0x412c84], ebx
jmp 0x40192d
add eax, eax
mov dword [0x412c88], eax
shl eax, 3
push eax
call fcn.00404292
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4018ff
push str.malloc
call fcn.0040413e
add esp, 4
push 1
call fcn.004040fe
mov eax, dword [0x412c84]
mov ecx, dword [0x412c80]
push esi
push edi
add ecx, ecx
mov esi, eax
mov edi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00403ea0
add esp, 4
pop edi
mov dword [0x412c84], ebx
pop esi
jmp 0x40192d
mov ebx, dword [0x412c84]
mov eax, dword [0x412c80]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [ebx + eax*8], ecx
mov dword [ebx + eax*8 + 4], edx
inc eax
mov dword [0x412c80], eax
pop ebx
ret
Function at 0x402670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4026be
cmp dword [esp + 8], 1
jne 0x4026be
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0x14]
jae 0x4026be
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push 0
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4026be
mov al, 1
pop ebx
add esp, 8
ret
xor al, al
pop ebx
add esp, 8
ret

Function at 0x402a10
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x10244
call fcn.00404db0
mov eax, dword [esp + 0x10248]
test eax, eax
jne 0x402a2c
add esp, 0x10244
ret
push ebx
push ebp
push esi
push edi
push 0x40ef48
push eax
lea esi, [esp + 0x25c]
call fcn.00404cf4
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 8
mov edi, eax
lea ecx, [ecx]
mov al, byte [edi]
test al, al
mov ecx, edi
je 0x402a63
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x402a58
push edi
lea eax, [esp + 0x14]
push 0x40ef3c
mov byte [esi], 0x3b
push eax
inc esi
call fcn.0040487d
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402ae5
lea eax, [esp + 0x140]
push eax
push edi
lea ecx, [esp + 0x18]
push 0x40ef34
push ecx
call fcn.0040487d
mov al, byte [esp + 0x20]
add esp, 0x10
test al, al
lea ecx, [esp + 0x10]
je 0x402acb
jmp 0x402ac0
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x402ac0
lea edx, [esp + 0x114]
push edx
mov byte [esi], 0x3b
push ebx
inc esi
call ebp
test eax, eax
jne 0x402a94
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea eax, [esp + 0x14]
push str._s.zip
push eax
call fcn.0040487d
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b65
lea eax, [esp + 0x140]
push eax
push edi
lea ecx, [esp + 0x18]
push 0x40ef34
push ecx
call fcn.0040487d
mov al, byte [esp + 0x20]
add esp, 0x10
test al, al
lea ecx, [esp + 0x10]
je 0x402b4b
lea esp, [esp]
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x402b40
lea edx, [esp + 0x114]
push edx
mov byte [esi], 0x3b
push ebx
inc esi
call ebp
test eax, eax
jne 0x402b12
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x40ef48
push 0
call fcn.00404cf4
mov edi, eax
add esp, 8
test edi, edi
jne 0x402a50
pop edi
mov byte [esi - 1], al
mov al, byte [0x412cbe]
test al, al
pop esi
pop ebp
pop ebx
je 0x402ba3
lea eax, [esp + 0x244]
push eax
push str.Expanded_classpath:__s_n
call fcn.00403f11
add esp, 8
lea ecx, [esp + 0x244]
push ecx
call fcn.0040bf74
add esp, 4
add esp, 0x10244
ret
Function at 0x40403b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40f358
call fcn.00406738
push 8
call fcn.00405be4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x412f2c], esi
jne 0x40406f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x412f28], esi
mov al, byte [ebp + 0x10]
mov byte [0x412f24], al
cmp dword [ebp + 0xc], edi
jne 0x4040b9
cmp dword [0x4147cc], edi
je 0x4040a9
mov eax, dword [0x4147c8]
sub eax, 4
mov dword [0x4147c8], eax
cmp eax, dword [0x4147cc]
jb 0x4040a9
mov eax, dword [eax]
cmp eax, edi
je 0x40408a
call eax
jmp 0x40408a
push 0x412028
mov eax, 0x412020
call fcn.00403fb9
pop ecx
push 0x412030
mov eax, 0x41202c
call fcn.00403fb9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4040ea
cmp dword [ebp + 0x10], edi
jne 0x4040f8
mov dword [0x412f2c], esi
push dword [ebp + 8]
call fcn.00403f77
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4040f7
push 8
call fcn.00405b2f
pop ecx
ret
call fcn.00406773
ret
Function at 0x4076bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4127d8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4076ec
xor eax, eax
jmp 0x407875
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x413680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407728
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00409f18
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407803
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x407841
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40778c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40777d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40775d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4077cc
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4077d5
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40774e
jmp 0x4077d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x407870
cmp dword [ebp - 0x6c], edi
je 0x407841
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x407836
call fcn.0040551d
mov dword [eax], 9
call fcn.00405526
mov dword [eax], esi
jmp 0x40786b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40782b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4077d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4077d7
push dword [ebp - 0x6c]
call fcn.0040552f
pop ecx
jmp 0x40786b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407859
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x407859
xor eax, eax
jmp 0x407873
call fcn.0040551d
mov dword [eax], 0x1c
call fcn.00405526
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x407873
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00408fbd
add ebp, 0x3a0
leave
ret