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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x415bf8]
push ebx
push esi
push 0xffffffffffffffd3
pop ecx
mov edx, eax
xor ebx, ebx
push ebx
movzx eax, ax
or dl, 0x25
sub cl, dl
shl dword [0x415be4], cl
push 0x222c199
push eax
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
call fcn.00216b1d
sub byte [ebp - 1], al
movsx eax, byte [ebp - 1]
sub dword [0x415be4], eax
add esp, 0xc
mov eax, 0x1e3bd6a
mov ecx, 0x7e3bde
call fcn.00216cb6
imul eax, eax, 0x72
xor dword [0x415be4], eax
mov al, byte [0x415be4]
mov byte [ebp - 1], al
mov word [edi + 0x100], bx
movzx eax, word [0x415c08]
push eax
call fcn.00216baa
or byte [ebp - 1], al
pop ecx
mov esi, edi
mov al, byte [0x415be4]
add al, 0x4f
xor byte [ebp - 1], al
push 0x4f6a
mov byte [esi], bl
call fcn.00216baa
inc ebx
mov eax, 0x100
inc esi
pop ecx
cmp bx, ax
jb 0x216dd5
push 3
pop esi
mov eax, dword [0x415be4]
test eax, eax
jne 0x216e39
movzx ecx, byte [0x415c08]
sub cl, 0x67
shl eax, cl
movsx ecx, byte [0x415c10]
sub ecx, 0xc3
mov dword [0x415be4], eax
cmp ecx, eax
jle 0x216e39
cdq
cmp edx, dword [0x415bec]
ja 0x216e44
jb 0x216e39
cmp eax, dword [0x415be8]
jae 0x216e44
push 0x997f9d
call fcn.00216d36
pop ecx
dec esi
test si, si
jg 0x216dfb
mov ebx, edi
mov dword [ebp - 8], 0x100
mov eax, 0xb26273
mov ecx, 0x106ba3d
call fcn.00216cb6
mov edx, dword [ebp + 8]
mov cl, 0x9c
imul cl
mov cl, al
movzx eax, byte [ebp - 2]
mov al, byte [eax + edx]
sar byte [ebp - 1], cl
mov cl, byte [ebx]
movsx esi, byte [ebp - 1]
sub dword [0x415be4], esi
add al, cl
add byte [ebp - 3], al
movzx eax, byte [ebp - 3]
mov dl, byte [eax + edi]
mov byte [ebx], dl
push 0x77e8
mov byte [eax + edi], cl
call fcn.00216baa
movsx eax, al
add eax, 0x2b
and esi, 0x7c
pop ecx
cmp eax, esi
jl 0x216ebc
mov eax, dword [0x415bf8]
push 0xffffffffffffffd5
or al, 0x25
pop ecx
sub cl, al
shl dword [0x415be4], cl
inc byte [ebp - 2]
movzx eax, byte [ebp - 2]
cmp ax, word [ebp + 0xc]
jne 0x216ee0
push dword [0x415bf0]
and dword [0x415be4], 0
mov byte [ebp - 2], 0
call fcn.00216c13
pop ecx
mov eax, dword [0x415be8]
imul eax, dword [0x415be4]
inc ebx
dec dword [ebp - 8]
mov dword [0x415be4], eax
jne 0x216e53
movsx ecx, byte [ebp - 1]
or eax, ecx
pop esi
mov dword [0x415be4], eax
pop ebx
leave
ret
Function at 0x2174e5
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push esi
mov esi, eax
push edi
push esi
call fcn.0021a8af
pop ecx
pop ecx
test al, al
jne 0x2174f9
xor eax, eax
pop esi
ret
mov eax, edi
shr eax, 2
xor edx, edx
lea ecx, [esi + eax*4]
neg eax
je 0x21752a
mov esi, dword [ecx + eax*4]
imul esi, esi, 0xcc9e2d51
rol esi, 0xf
imul esi, esi, 0x1b873593
xor edx, esi
rol edx, 0xd
imul edx, edx, 5
add edx, 0xe6546b64
inc eax
jne 0x217507
mov eax, edi
and eax, 3
xor esi, esi
dec eax
je 0x21754a
dec eax
je 0x217541
dec eax
jne 0x217560
movzx esi, byte [ecx + 2]
shl esi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [ecx]
xor eax, esi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, edi
mov eax, edx
shr eax, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret

Function at 0x2176f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [0x41212c]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov ebx, eax
cmp esi, edx
je 0x217728
xor eax, eax
cmp dword [ebp + 0x14], edx
jbe 0x217728
movzx edi, byte [edx + esi]
mov ecx, eax
shl ecx, 3
shl edi, cl
xor ebx, edi
inc edx
inc eax
and eax, 3
cmp edx, dword [ebp + 0x14]
jb 0x217711
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x217742
mov eax, ebx
call fcn.002196bd
mov byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x217732
push edi
mov edi, dword [ebp + 0xc]
call fcn.0021a2a0
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x218a52
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0021a8af
pop ecx
pop ecx
test al, al
je 0x218b07
push 0x10
push dword [ebp + 0x10]
call fcn.0021a8d6
pop ecx
pop ecx
test al, al
je 0x218b07
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.002182f0
lea eax, [ebp - 0x54]
push eax
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.00218a1d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x218ad8
push 0x78
pop eax
sub eax, ecx
push 0x415908
lea esi, [ebp - 0x64]
call fcn.002182f0
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
call fcn.002182f0
mov ecx, dword [ebp + 0x10]
mov eax, esi
push eax
push 0x10
pop edx
call fcn.00218a1d
xor esi, esi
add esp, 0xc
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x21ebd0
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x4301cc], 1
push ebx
push ebp
push esi
push edi
jne 0x21ec78
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jle 0x21ec78
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*8]
mov esi, dword [edx + 4]
xor edi, edi
or edi, dword [edx]
xor ecx, ecx
or esi, ecx
mov ebp, edi
mov ecx, edi
mov ebx, esi
shld ebp, ebx, 0x10
mov eax, esi
shrd eax, ecx, 0x10
shld edi, esi, 0x10
shl ebx, 0x10
xor eax, ebx
shr ecx, 0x10
xor ecx, ebp
shl esi, 0x10
mov ebx, 0xffff
and eax, ebx
and ecx, ebx
xor eax, esi
xor ecx, edi
mov esi, eax
mov ebx, eax
mov ebp, ecx
shld ebp, esi, 8
mov edi, ecx
shrd ebx, edi, 8
shl esi, 8
xor ebx, esi
shr edi, 8
shld ecx, eax, 8
xor edi, ebp
mov esi, 0xff00ff
shl eax, 8
and ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x10]
and edi, esi
xor edi, ecx
inc eax
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x21ebf2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x21ec7e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x21ed90
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0x21ecb3
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x21ed8e
lea ecx, [eax - 1]
cmp edi, ecx
je 0x21ece8
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0x21ed18
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0x21ecfa
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0x21ed47
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0x21ed85
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0x21ed54
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0x21ed25
inc edi
cmp edi, eax
jl 0x21eccc
pop esi
pop ebx
pop edi
leave
ret
Function at 0x220c8d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x220cbe
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x220cc5
cmp ebx, dword [ebp + 8]
jae 0x220cc5
xor eax, eax
jmp 0x220eab
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x220cd6
xor eax, eax
inc eax
jmp 0x220eaa
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x220ce8
cmp ecx, edx
jae 0x220d4c
cmp dword [eax + 4], 0
je 0x220cf1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x220cdd
cmp dword [ebp + 8], 0
je 0x220d0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x220d4c
cmp eax, esi
jae 0x220d4c
mov ecx, dword [0x4301f0]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x220d2d
cmp dword [eax*4 + 0x4301f8], esi
je 0x220d53
inc eax
cmp eax, ecx
jl 0x220d1f
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.00220eb6
test eax, eax
jl 0x220dc3
mov eax, dword [ebp + 8]
jmp 0x220dc5
xor eax, eax
jmp 0x220eaa
test eax, eax
jle 0x220cce
xor edx, edx
mov ebx, 0x430238
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x220cce
cmp dword [eax*4 + 0x4301f8], esi
je 0x220da2
lea eax, [ecx - 1]
test eax, eax
jl 0x220d8f
cmp dword [eax*4 + 0x4301f8], esi
je 0x220d8b
dec eax
jns 0x220d7f
test eax, eax
jge 0x220da0
cmp ecx, 0x10
jge 0x220d9b
inc ecx
mov dword [0x4301f0], ecx
lea eax, [ecx - 1]
jmp 0x220da2
je 0x220dba
xor edx, edx
test eax, eax
jl 0x220dba
lea ecx, [edx*4 + 0x4301f8]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x220da8
xor eax, eax
xchg dword [ebx], eax
jmp 0x220cce
xor eax, eax
test eax, eax
je 0x220ea8
cmp dword [ebp - 8], 0x1000000
jne 0x220ea8
test byte [ebp - 0xc], 0xcc
je 0x220e3a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x220ea8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x220ea8
cmp word [eax + 0x18], 0x10b
jne 0x220ea8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x220ea8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x220e3a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x220e3a
test byte [ecx + 0x27], 0x80
jne 0x220d4c
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x430238
xchg dword [edx], ecx
test ecx, ecx
jne 0x220eaa
mov ecx, dword [0x4301f0]
test ecx, ecx
mov edx, ecx
jle 0x220e69
lea eax, [ecx*4 + 0x4301f4]
cmp dword [eax], esi
je 0x220e69
dec edx
sub eax, 4
test edx, edx
jg 0x220e5d
test edx, edx
jne 0x220e9a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x220e76
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x220e8e
lea eax, [edx*4 + 0x4301f8]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x220e7c
cmp ecx, 0x10
jge 0x220e9a
inc ecx
mov dword [0x4301f0], ecx
xor eax, eax
mov ecx, 0x430238
xchg dword [ecx], eax
jmp 0x220cce
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Write file on windows

Disassembly:
cmp word [eax], 0
je 0x401181
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x38
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401068
mov ebx, eax
sub ebx, esi
sar ebx, 1
cmp esi, eax
je 0x4010b6
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4010be
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x24], ecx
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x18], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4010b6
mov ecx, dword [ebp - 0x24]
call ecx
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov ebx, dword [ebp - 0x20]
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
mov ebx, dword [ebp - 0x14]
call ebx
push ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov ecx, dword [ebp - 0x18]
mov dword [esp + 8], ecx
mov edi, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4010b6
ret

Function at 0x401520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push eax
mov eax, 0x1010
call fcn.00403858
sub esp, eax
lea esi, [ebp - 0x1008]
mov eax, dword [esp + eax]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x401576
test byte [0x404000], 2
jne 0x40158a
mov eax, esi
call dbg.output
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed__error__ld_n
mov dword [esp + 8], str.fatal_string
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401576
Function at 0x4015d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1020
call fcn.00403858
sub esp, eax
mov esi, edx
lea edi, [ebp - 0x100c]
mov eax, dword [esp + eax]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], edi
mov dword [esp + 4], 0x67
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x401631
test byte [0x404000], 2
jne 0x4016ef
mov eax, edi
call dbg.output
mov eax, 0x406046
call dbg.output
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], esi
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1010]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x3100
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x4016c8
test byte [0x404000], 2
jne 0x4016a2
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.FormatMessage_failed_n
mov dword [esp + 8], str.fatal_error
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401695
mov eax, dword [ebp - 0x1010]
call dbg.output
mov eax, dword [ebp - 0x1010]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
push eax
mov eax, 0x406062
call dbg.output
jmp 0x401695
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed__error__ld_n
mov dword [esp + 8], str.fatal_string_error
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401631
Function at 0x402e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402e88
cmp byte [esi + ebx - 1], 0xa
je 0x402e5c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4080e4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x4080f4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4035f0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4080f4]
movzx eax, al
bt eax, esi
jae 0x403650
mov ecx, dword [0x4080e4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4034f5
test byte [0x404018], 8
jne 0x403590
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404028], 8
jne 0x403540
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4034c4
cmp esi, 3
jbe 0x403500
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40642c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4034c4
mov ecx, dword [0x4080f4]
test ecx, ecx
je 0x403630
mov dword [esp], 0x404028
call dword [0x4080f4]
test al, 8
je 0x40349b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40349b
mov ebx, dword [0x4080f4]
test ebx, ebx
je 0x403610
mov dword [esp], 0x404018
call dword [0x4080f4]
test al, 8
je 0x403486
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40348e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4080f4
call sym._load_func.part.0
jmp 0x40344d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4080f4
call sym._load_func.part.0
jmp 0x40359a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4080f4
call sym._load_func.part.0
jmp 0x40354e
mov eax, 0xffffffff
jmp 0x4034f5
Function at 0x4037b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

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 0x4013f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, esi
mov eax, str.b:do:T:vV
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.cygwin1.dll_getopt
cmp eax, 0xffffffff
je 0x4014a6
sub eax, 0x54
cmp eax, 0x22
ja case.0x401426.85
jmp dword [eax*4 + 0x4381ac]
mov eax, dword [sym.imp.cygwin1.dll_optarg]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004014d0
mov dword [0x43b010], eax
jmp 0x401400
mov eax, dword [sym.imp.cygwin1.dll_optarg]
mov eax, dword [eax]
mov dword [0x43b024], eax
jmp 0x401400
call fcn.00401740
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov eax, 1
mov dword [0x43b014], eax
jmp 0x401400
mov eax, dword [sym.imp.cygwin1.dll_optarg]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004014d0
mov dword [0x43b018], eax
jmp 0x401400
call fcn.00401500
jmp 0x401459
mov eax, 1
mov dword [0x43b020], eax
jmp 0x401400
mov eax, dword [0x43b010]
test eax, eax
je case.0x401426.85
mov eax, dword [sym.imp.cygwin1.dll_optind]
mov eax, dword [eax]
mov dword [0x43b01c], eax
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov ecx, 0x4b
mov dword [esp + 8], ecx
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp], str.usage:_rebase__b_BaseAddress___Vdv____o_Offset____T_FileList_____Files..._n
call sub.cygwin1.dll_fwrite
mov esp, ebp
pop ebp
ret

Function at 0x401740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov edx, 0x43829e
mov dword [esp + 0xc], edx
mov ecx, str.2.4.3
mov dword [esp + 8], ecx
mov edx, str.rebase_version__s__imagehelper_version__s__n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov eax, 0x45
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], str.Copyright__c__2001__2002__2003__2004_Ralf_Habacker_and_Jason_Tishler_n
call sub.cygwin1.dll_fwrite
mov esp, ebp
pop ebp
ret
Function at 0x431920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x3c], 0x4060d0
mov dword [ebp - 0x38], 0x4365cc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0x431aa7
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x54]
sub esp, 0xc
push edx
call fcn.00412b80
add esp, 0x10
mov edx, dword [0x437130]
test edx, edx
je 0x431a70
cmp dword [ebp + 8], 0x80
ja 0x431976
mov eax, dword [0x437130]
test eax, eax
jle 0x4319b0
sub esp, 0xc
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x50], 0xffffffff
call fcn.00408060
add esp, 0x10
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x54]
sub esp, 0xc
push edi
call fcn.00412bf0
add esp, 0x10
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
mov edx, eax
shr edx, 3
lea edi, [edx*4 - 4]
mov dword [ebp - 0x60], edi
mov esi, 0x413920
test esi, esi
jne 0x431a45
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x437134]
test edx, edx
je 0x431a26
mov edi, dword [edx]
mov ebx, dword [ebp - 0x60]
mov dword [ebx + 0x437134], edi
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x431a18
mov ebx, 0x413920
test ebx, ebx
je 0x43198f
sub esp, 0xc
push 0x43717c
mov dword [ebp - 0x50], 0xffffffff
call fcn.00413900
add esp, 0x10
jmp 0x43198f
mov dword [ebp - 0x50], 1
call fcn.0040c6a0
jmp 0x4319f3
and dword [ebp - 0x5c], 0xfffffff8
sub esp, 0xc
mov esi, dword [ebp - 0x5c]
push esi
mov dword [ebp - 0x50], 1
call fcn.00431af0
mov dword [ebp - 0x58], eax
add esp, 0x10
jmp 0x4319ec
sub esp, 0xc
push 0x43717c
mov dword [ebp - 0x50], 0xffffffff
call sub.cygwin1.dll_pthread_mutex_lock
add esp, 0x10
jmp 0x4319d1
sub esp, 0xc
push str.GLIBCPP_FORCE_NEW
call sub.cygwin1.dll_getenv
add esp, 0x10
test eax, eax
je 0x431aa0
mov eax, 1
lock add dword [0x437130], eax
jmp 0x431964
mov eax, 0xffffffff
jmp 0x431a89