joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f970
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x43d014]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov esi, dword [esp + 0x6c]
push edi
push 0x20
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0041f5b0
push 0x20
lea edx, [esi + 0x48]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0041f5b0
mov eax, dword [esi + 0x88]
mov cl, byte [esi + 0x88]
mov edx, eax
mov byte [esp + 0x24], cl
sar edx, 8
mov ecx, eax
sar eax, 0x18
mov byte [esp + 0x25], dl
push 4
lea edx, [esp + 0x28]
mov byte [esp + 0x2b], al
push edx
lea eax, [esp + 0x30]
sar ecx, 0x10
push eax
mov byte [esp + 0x32], cl
call fcn.0041f5b0
push 0x10
lea ecx, [esi + 0x8c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041f5b0
lea eax, [esp + 0x40]
push eax
lea edi, [esi + 0x9c]
push edi
call fcn.0041f6c0
add esp, 0x38
cmp dword [esi], 3
jne 0x41fa89
push ebp
lea ebp, [ebx + 0x32]
lea esp, [esp]
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0041f5b0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.0041f6c0
add esp, 0x14
dec ebp
jne 0x41fa40
pop ebp
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00425d14
add esp, 0x60
ret
Function at 0x41faa0
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
sub esp, 0x194
mov eax, dword [0x43d014]
xor eax, esp
mov dword [esp + 0x190], eax
push ebp
push esi
mov esi, dword [esp + 0x1a0]
mov edx, dword [esi + 4]
lea ebp, [esi + 0x9c]
push ebp
lea ecx, [esp + 0x68]
call fcn.0041f420
lea edx, [esi + 0x68]
push 0x43850c
mov ecx, 0x20
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], edx
call fcn.0041f4c0
add esp, 8
cmp dword [esi], 3
jne 0x41fc28
push ebx
push edi
xor eax, eax
push 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push 0x43850c
push eax
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0041f5b0
push 0x10
lea ecx, [esi + 0x8c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0041f5b0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x19c]
push ecx
call fcn.0041f6c0
mov edx, dword [esi + 4]
push ebp
lea ecx, [esp + 0x90]
call fcn.0041f420
lea edx, [esp + 0x1a4]
push edx
mov ecx, 0x10
lea edx, [esp + 0x198]
lea eax, [esp + 0x94]
call fcn.0041f4c0
add esp, 0x28
mov ebx, 1
mov edi, dword [esi + 4]
xor eax, eax
test edi, edi
je 0x41fbb1
lea esp, [esp]
mov cl, byte [eax + ebp]
xor cl, bl
mov byte [esp + eax + 0x190], cl
inc eax
cmp eax, edi
jb 0x41fba0
push 0x10
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x188]
push eax
call fcn.00407b00
mov edx, dword [esi + 4]
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0041f420
lea edx, [esp + 0x190]
push edx
mov ecx, 0x10
lea edx, [esp + 0x184]
lea eax, [esp + 0x80]
call fcn.0041f4c0
inc ebx
add esp, 0x14
cmp ebx, 0x13
jbe 0x41fb90
mov esi, dword [esp + 0x10]
push 0x20
push 0
push esi
call fcn.00407be0
push 0x10
lea eax, [esp + 0x180]
push eax
push esi
call fcn.00407b00
add esp, 0x18
pop edi
pop ebx
mov ecx, dword [esp + 0x198]
pop esi
pop ebp
xor ecx, esp
call fcn.00425d14
add esp, 0x194
ret
Function at 0x41fc40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x43d014]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x64]
mov ecx, dword [esi + 4]
mov byte [esi + ecx + 0x9c], al
mov ecx, dword [esi + 4]
mov edx, eax
shr edx, 8
mov byte [esi + ecx + 0x9d], dl
mov edx, dword [esi + 4]
shr eax, 0x10
mov byte [esi + edx + 0x9e], al
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x6c]
mov byte [esi + ecx + 0x9f], al
mov edx, dword [esi + 4]
shr eax, 8
mov byte [esi + edx + 0xa0], al
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push edi
add eax, 5
push eax
lea ecx, [esi + 0x9c]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0041f5b0
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 0xb1]
push edi
call fcn.0041f6c0
mov eax, dword [esi + 4]
add eax, 5
add esp, 0x14
cmp eax, 0x10
jbe 0x41fcff
mov eax, 0x10
push edi
lea ecx, [esi + 0xc1]
mov edx, eax
call fcn.0041f420
mov ecx, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00425d14
add esp, 0x5c
ret
Function at 0x426d62
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426da1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426da1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426da1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426da1
cmp dword [ecx + 0x74], 0xe
jbe 0x426da1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4010f5
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40116d
cmp byte [edi], 0
je 0x40116d
push esi
push 0x45f80c
push edi
call fcn.0044f830
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40111f
mov byte [esi], 0
push edi
mov word [ebp - 0x10], 2
call sub.WSOCK32.dll_inet_addr
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x401136
xor eax, eax
jmp 0x401143
lea eax, [esi + 1]
push eax
call fcn.0044f798
pop ecx
movzx eax, ax
push eax
call sub.WSOCK32.dll_htons
test esi, esi
mov word [ebp - 0xe], ax
je 0x401154
mov byte [esi], 0x3a
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WSOCK32.dll_sendto
pop esi
jmp 0x40116f
xor eax, eax
pop edi
leave
ret

Function at 0x4011d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push dword [ebp + 8]
mov dword [ebp - 4], 1
call sub.WSOCK32.dll_setsockopt
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x401217
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x10], eax
jmp 0x40121b
and dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_bind
leave
ret

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

Disassembly:
or eax, 0xffffffff
cmp dword [0x4b25cc], 0
jne 0x404314
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
test cl, 1
je 0x4042f4
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4042f6
shr ecx, 1
dec esi
jne 0x4042e5
mov dword [edx*4 + 0x4affa0], ecx
inc edx
cmp edx, 0x100
jl 0x4042e0
mov dword [0x4b25cc], 1
pop esi
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40433d
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4affa0]
inc ecx
cmp ecx, dword [esp + 8]
jl 0x40431c
not eax
ret

Function at 0x404a89
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [0x4ad44c], esi
jle 0x404ae2
push edi
push esi
mov ecx, 0x4ad448
call fcn.004028a4
mov ecx, dword [0x4b4951]
lea edi, [eax + 0x20]
push edi
push eax
lea edx, [ecx + 0x1b3b2c44]
lea eax, [ecx + 0x1b3b2ea2]
add ecx, 0xc3c77c39
push str._s___s_
xor eax, edx
xor ecx, dword [eax*4 + 0x4c3828]
push 0
push dword [esp + 0x1c]
xor ecx, edx
call ecx
add esp, 0x14
inc esi
cmp esi, dword [0x4ad44c]
jl 0x404a95
pop edi
pop esi
ret
Function at 0x412392
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xa]
push esi
movsx esi, byte [ecx + 8]
push edi
mov edi, dword [ecx]
mov eax, edi
shl eax, 8
xor eax, dword [ecx + 4]
shl eax, 3
xor eax, edx
shl eax, 2
xor eax, esi
shl eax, 9
xor eax, edi
shl eax, 9
xor eax, dword [ecx + 0x114]
xor eax, dword [ecx + 0x110]
xor eax, dword [ecx + 0x10c]
xor eax, edi
test edx, edx
jle 0x4123fa
lea esi, [ecx + 0xc]
mov dword [ebp + 8], edx
push ebx
movzx ebx, word [esi]
mov ecx, ebx
and ecx, 3
mov edx, eax
shl edx, cl
shr eax, 0x18
xor edx, eax
xor edx, ebx
inc esi
inc esi
dec dword [ebp + 8]
mov eax, edx
jne 0x4123dd
pop ebx
test eax, eax
jne 0x412400
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x41e3bf
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
xor esi, esi
cmp dword [0x4b4df4], esi
jne 0x41e3e7
mov eax, dword [0x4b4df8]
cmp eax, 0xffffffff
je 0x41e4c8
push eax
call sub.WSOCK32.dll_closesocket
or dword [0x4b4df8], 0xffffffff
pop esi
ret
cmp dword [0x4b4df8], 0xffffffff
jne 0x41e467
push esi
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x4b4df8], eax
je 0x41e4c8
push eax
call fcn.0040122b
mov dword [esp], 0x45f820
push dword [0x4b4df4]
push dword [0x4b4df8]
call fcn.004011d0
add esp, 0xc
test eax, eax
je 0x41e467
mov eax, dword [0x4b4951]
lea ecx, [eax + 0x4fb7884]
lea edx, [eax + 0x4fb7a62]
push esi
add eax, 0xdc0728f9
push str.Network_Socket_error:_cannot_bind_to_port__lu
xor edx, ecx
xor eax, dword [edx*4 + 0x4c3828]
push 1
push dword [esp + 0x14]
xor eax, ecx
mov dword [0x4b4df4], esi
call eax
add esp, 0x10
pop esi
ret
push ebx
push edi
push esi
mov edi, 0x800
mov esi, 0x4b4e30
jmp 0x41e4b2
push 4
push 0x45fafc
push esi
call fcn.0044ff00
add esp, 0xc
test eax, eax
jne 0x41e499
sub ebx, 4
cmp ebx, 1
mov eax, 0x4b4e34
jl 0x41e4b0
jmp 0x41e49b
mov eax, esi
push eax
mov eax, dword [0x4c4384]
push ebx
push dword [esp + 0x18]
xor eax, 0xd8fc507d
call eax
add esp, 0xc
push 0
push edi
push esi
push dword [0x4b4df8]
call sub.WSOCK32.dll_recv
mov ebx, eax
cmp ebx, 1
jge 0x41e476
pop edi
pop ebx
pop esi
ret
Function at 0x443cd8
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45b62d
call fcn.00451464
sub esp, 0x304
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00406f0a
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00402797
add esp, 0xc
xor ebx, ebx
cmp byte [0x4b61bf], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov edi, 0x4b61bf
je 0x443dac
push ebx
push edi
call fcn.00418c79
pop ecx
push eax
push edi
lea ecx, [ebp - 0x310]
call fcn.00402377
lea ecx, [ebp - 0x310]
call fcn.00402330
push eax
call fcn.0040ada4
push eax
lea eax, [ebp - 0x11c]
push pe_nt_image_headers32
push eax
call fcn.00401000
lea eax, [ebp - 0x11c]
push eax
call fcn.00418c79
add esp, 0x14
cmp byte [ebp - 0x11c], bl
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x11c]
je 0x443d94
push edi
call fcn.0044f430
xor edx, edx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
div ecx
mov al, byte [edx + 0x4b61bf]
xor byte [esi], al
inc esi
inc dword [ebp - 0x10]
cmp byte [esi], bl
jne 0x443d74
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00402615
jmp 0x443dbf
lea eax, [ebp - 0x244]
push str.PB_REGNAMES_r_n
push eax
call fcn.0040266b
pop ecx
pop ecx
cmp dword [0x4ad3b0], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x443e85
push dword [ebp - 0x14]
mov ecx, 0x4ad3ac
call fcn.004028a4
cmp byte [eax], bl
je 0x443e73
cmp byte [eax + 0x63], 1
mov ecx, str.Full
je 0x443df6
mov ecx, str.Partial
push ecx
lea ecx, [eax + 0x21]
push ecx
push eax
push str.__s____s___s_r_n
lea eax, [ebp - 0x11c]
push pe_nt_image_headers32
push eax
call fcn.00401000
lea eax, [ebp - 0x11c]
push eax
call fcn.00418c79
add esp, 0x1c
cmp byte [0x4b61bf], bl
mov dword [ebp - 0x1c], eax
je 0x443e5a
cmp byte [ebp - 0x11c], bl
lea esi, [ebp - 0x11c]
je 0x443e5a
push edi
call fcn.0044f430
xor edx, edx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
div ecx
mov al, byte [edx + 0x4b61bf]
xor byte [esi], al
inc esi
inc dword [ebp - 0x10]
cmp byte [esi], bl
jne 0x443e3a
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00402615
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4ad3b0]
jl 0x443dd1
mov eax, dword [0x4b4951]
lea ecx, [eax + 0x4d6863af]
lea edx, [eax + 0x4d686149]
xor edx, ecx
add eax, 0x959433d2
xor eax, dword [edx*4 + 0x4c3828]
xor eax, ecx
cmp dword [ebp - 0x18], 1
mov ecx, 0x45f820
je 0x443eb6
mov ecx, 0x45f8d8
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x18]
push str._d_Registered_Name_Record_s_written_to__s
push ebx
push dword [ebp + 8]
call eax
push dword [ebp + 8]
call fcn.00438ebe
add esp, 0x1c
lea ecx, [ebp - 0x244]
call fcn.0040248b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44407e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45b64d
call fcn.00451464
sub esp, 0xefc
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x44409d
mov dword [0x4ad3b0], esi
push dword [ebp + 0xc]
call fcn.0040e5cd
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00402797
add esp, 0xc
push 1
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], esi
call fcn.004024fa
mov ebx, eax
cmp ebx, 1
jge 0x4440dc
lea ecx, [ebp - 0x134]
call fcn.0040248b
jmp 0x44429e
lea eax, [ebx + 1]
push edi
push eax
call fcn.0041b82c
mov edi, eax
cmp edi, esi
pop ecx
lea ecx, [ebp - 0x134]
je 0x444298
push ebx
push edi
call fcn.00402566
mov byte [edi + ebx], 0
cmp byte [0x4b61bf], 0
je 0x44419c
test ebx, ebx
mov dword [ebp + 0x10], esi
mov esi, 0x4b61bf
jle 0x44413f
push esi
call fcn.0044f430
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
mov eax, dword [ebp + 0x10]
mov cl, byte [edx + 0x4b61bf]
xor byte [eax + edi], cl
inc eax
cmp eax, ebx
mov dword [ebp + 0x10], eax
jl 0x44411b
push 0
push esi
call fcn.00418c79
pop ecx
push eax
push esi
lea ecx, [ebp - 0x200]
call fcn.00402377
push 0x20
push edi
lea ecx, [ebp - 0x200]
call fcn.00402330
push eax
call fcn.0044ff00
add esp, 0xc
test eax, eax
je 0x444194
mov eax, dword [0x4b4951]
push dword [ebp + 0xc]
lea ecx, [eax + 0x74692beb]
lea edx, [eax + 0x7469290d]
push str.Cannot_load__s___Invalid_RegNamePw
xor edx, ecx
push 0
add eax, 0xac957b96
jmp 0x4441d1
lea ebx, [edi + 0x20]
jmp 0x444282
push 0xe
push edi
push str.PB_REGNAMES_r_n
call fcn.0044ff00
add esp, 0xc
test eax, eax
je 0x4441ed
mov eax, dword [0x4b4951]
push dword [ebp + 0xc]
lea ecx, [eax + 0x4e457d05]
lea edx, [eax + 0x4e457fe3]
push str.Cannot_load__s___Header_Missing
xor edx, ecx
push esi
add eax, 0x96b92d78
xor eax, dword [edx*4 + 0x4c3828]
push dword [ebp + 8]
xor eax, ecx
call eax
push edi
call fcn.00429ae1
add esp, 0x14
jmp 0x444292
lea ebx, [edi + 0xe]
jmp 0x444282
push 0
push 1
push ebx
lea ecx, [ebp - 0xf08]
call fcn.004016fa
mov byte [ebp - 4], 1
xor ebx, ebx
cmp ebx, dword [ebp - 0xf08]
jge 0x444258
lea esi, [ebx + 1]
push 0
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xf08]
call fcn.00401557
push eax
push esi
lea ecx, [ebp - 0xf08]
call fcn.00401557
push eax
push ebx
lea ecx, [ebp - 0xf08]
call fcn.00401557
push eax
push dword [ebp + 8]
call fcn.00443eed
add ebx, 3
add esp, 0x14
cmp ebx, 0xfd
jl 0x44420b
push 0xffffffffffffffff
lea ecx, [ebp - 0xf08]
call fcn.00401686
push ebx
lea ecx, [ebp - 0xf08]
call fcn.00401557
lea ecx, [ebp - 0xf08]
mov ebx, eax
mov byte [ebp - 4], 0
call fcn.004017b9
cmp byte [ebx], 0
jne 0x4441f5
push edi
call fcn.00429ae1
pop ecx
lea ecx, [ebp - 0x134]
call fcn.0040248b
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44b9e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x44b9f7
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x44ba16
test ecx, ecx
jne 0x44ba24
test edx, edx
jne 0x44ba24
mov dword [ebp - 8], edi
jmp 0x44ba8e
cmp eax, 0xffffffff
jne 0x44ba24
mov dword [ebp - 8], 0xfffffffe
jmp 0x44ba8e
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x44ba8e
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0044ff40
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x44ba55
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x44ba74
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x44bb34
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x44bab3
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x44babd
xor eax, eax
jmp 0x44baf5
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x44badf
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.0044cda3
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.0044ff40
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x44bb20
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x44bb34
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x44b9f4
pop edi
pop ebx
leave
ret

Function at 0x450f26
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x450f53
test byte [esp + 8], 0x80
je 0x450f41
and eax, 0xfffffffe
jmp 0x450f44
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x450f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045278c
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x451a86
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x451b76
mov eax, 0x94
call fcn.004508f0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x451beb
mov ecx, dword [esi + 0x10]
mov dword [0x4c4ec0], ecx
mov eax, dword [esi + 4]
mov dword [0x4c4ecc], eax
mov edx, dword [esi + 8]
mov dword [0x4c4ed0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x4c4ec4], esi
je 0x451af1
or esi, 0x8000
mov dword [0x4c4ec4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x4c4ec8], eax
call fcn.00453768
test eax, eax
pop ecx
je 0x451beb
call fcn.00452c62
test eax, eax
jne 0x451b1e
call fcn.004537b9
jmp 0x451beb
call fcn.00457013
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c64c8], eax
call fcn.00456ef1
mov dword [0x4c4c48], eax
call fcn.004555d2
test eax, eax
jl 0x451b6f
call fcn.00456e4f
test eax, eax
jl 0x451b6a
call fcn.00456c1c
test eax, eax
jl 0x451b6a
push 0
call fcn.00456a59
test eax, eax
pop ecx
jne 0x451b6a
inc dword [0x4c4c44]
jmp 0x451bfc
call fcn.004557d0
call fcn.00452a4b
jmp 0x451b14
test eax, eax
jne 0x451ba6
cmp dword [0x4c4c44], eax
jle 0x451beb
dec dword [0x4c4c44]
cmp dword [0x4c4efc], eax
jne 0x451b95
call fcn.00456b97
call fcn.004557d0
call fcn.00452a4b
call fcn.004537b9
jmp 0x451bfc
cmp eax, 2
jne 0x451bef
push 0x8c
push 1
call fcn.00451d1e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x451beb
push esi
push dword [0x4aea8c]
call dword [0x4c4c6c]
test eax, eax
push esi
je 0x451be5
call fcn.00452a68
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x451bfc
call fcn.004503a0
pop ecx
xor eax, eax
jmp 0x451bff
cmp eax, 3
jne 0x451bfc
push 0
call fcn.00452c33
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x454776
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4aef28]
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 0x4547a7
xor eax, eax
jmp 0x454930
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 + 0x4c5380]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4547e3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00459035
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4548be
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4548fc
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 0x454847
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x454838
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 0x454818
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 0x454887
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x454890
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x454809
jmp 0x454892
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x45492b
cmp dword [ebp - 0x6c], edi
je 0x4548fc
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4548f1
call 0x45277a
mov dword [eax], 9
call fcn.00452783
mov dword [eax], esi
jmp 0x454926
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 0x4548e6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x454892
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x454892
push dword [ebp - 0x6c]
call fcn.0045278c
pop ecx
jmp 0x454926
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x454914
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x454914
xor eax, eax
jmp 0x45492e
call 0x45277a
mov dword [eax], 0x1c
call fcn.00452783
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x45492e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00456844
add ebp, 0x3a0
leave
ret