joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4d0911
jmp dword [ecx*4 + 0x4d0980]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret

Function at 0x4d0b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x52e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4d0b75
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x4d0b75
lea edx, [ebp - 0x108]
push edx
call dword [0x52fd94]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475360
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00475360
mov esp, ebp
pop ebp
ret

Function at 0x4d0b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0b10

Function at 0x4d2c00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x4d2c1b
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004bbd30
push edx
push eax
call fcn.004bbd60
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4d2c68
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.004bbd30
push edx
push eax
call fcn.004bbd60
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4d2c6a
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d3ee0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4d3f14
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x4d3f12
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4d3f20
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d3f53
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x4d5f00
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4d5f22
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4d5f16
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4d5f54
cmp dword [esi + 8], 0
jne 0x4d5f46
mov ecx, dword [eax + 8]
push 0x50c6ec
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4d5f46
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d5f77
mov eax, dword [esi + 8]
test eax, eax
je 0x4d5f71
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x4d68a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x52fd88]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d68cb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x4d6912
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x4d6915
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x4d6976
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x4d6940
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x4d69af
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push str.6lower
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x4f955b
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x4d6980
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44dbd3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4577c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402cf0
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
call fcn.00418a00
lea ecx, [esi + 0x1ed8]
mov byte [esp + 0x18], 1
call fcn.0042e490
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], eax
mov byte [esi + 0x1ed4], bl
mov byte [esi + 0x1ed5], bl
mov dword [esi + 0x1ec0], ebx
mov dword [esi + 0x1ec8], ebx
mov dword [esi + 0x1ecc], ebx
mov dword [esi + 0x1ed0], ebx
mov dword [esi + 0x1f34], esi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4110b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e408
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4577c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x1edc]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4110f3
push eax
call fcn.004418e5
add esp, 4
lea ecx, [esi + 0x30]
call fcn.00418890
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00402720
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x413350
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x45d31c], 0
jne 0x41335e
call fcn.004132c0
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x41338d
test dl, 7
je 0x41338d
movzx ecx, byte [edx]
movzx edi, al
xor ecx, edi
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
dec esi
inc edx
test esi, esi
ja 0x413370
cmp esi, 8
jb 0x41341c
mov edi, esi
shr edi, 3
jmp 0x4133a0
xor eax, dword [edx]
add edx, 8
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
sub esi, 8
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
mov ecx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x45d318]
xor eax, dword [edx - 4]
shr ecx, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45d318]
sub edi, 1
jne 0x4133a0
xor ecx, ecx
test esi, esi
jbe 0x41343c
push ebx
movzx edi, byte [ecx + edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x45d318]
inc ecx
cmp ecx, esi
jb 0x413423
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4134d0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov eax, dword [esp + 4]
inc eax
mov edx, 4
push esi
jmp 0x4134e0
movzx esi, byte [eax - 1]
mov esi, dword [esi*4 + 0x45d318]
xor dword [ecx + 0x204], esi
movzx esi, byte [eax]
mov esi, dword [esi*4 + 0x45d318]
xor dword [ecx + 0x208], esi
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x45d318]
xor dword [ecx + 0x20c], esi
movzx esi, byte [eax + 2]
mov esi, dword [esi*4 + 0x45d318]
xor dword [ecx + 0x210], esi
add eax, 4
sub edx, 1
jne 0x4134e0
pop esi
ret 4
Function at 0x414800
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, edx
jbe 0x414868
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x414844
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
lea ebx, [ebx]
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
inc ecx
mov dword [ebx + eax], ebp
add eax, 4
cmp ecx, dword [esi]
jbe 0x414830
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, dword [esi]
lea edx, [edi + ecx*4]
add eax, eax
add eax, eax
push eax
push edx
lea eax, [ebx + ecx*4]
push eax
call fcn.00441d30
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x4148b8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x414894
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
mov ebp, dword [eax + edx]
xor ebp, dword [eax]
inc ecx
mov dword [eax + ebx], ebp
add eax, 4
cmp ecx, dword [edi]
jbe 0x414880
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [edi]
lea eax, [esi + ecx*4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [ebx + ecx*4]
push ecx
call fcn.00441d30
mov edx, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], edx
pop ebx
ret 0xc
test eax, eax
jbe 0x4148d2
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x4148d2
dec eax
sub ecx, 4
test eax, eax
ja 0x4148c3
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x4148f3
sub edi, esi
lea ecx, [esi + eax*4]
sub edx, esi
mov esi, dword [ecx + edi]
xor esi, dword [ecx]
dec eax
mov dword [ecx + edx], esi
sub ecx, 4
test eax, eax
ja 0x4148e3
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x414900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x414a2a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x414a2a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x45dbcc]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x414930
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004420a0
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x4149d7
mov ebp, dword [0x45dbc8]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x45dbcc]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x4149ca
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x4149ca
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x4149a0
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x4149c2
add ecx, esi
cmp ecx, 0x7fff
jb 0x4149bc
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x4149a0
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x414970
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x414a07
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x4149f0
cmp dword [edi], 0x11
jbe 0x414a21
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x414a21
dec eax
mov dword [edi], eax
test eax, eax
jne 0x414a12
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x416b20
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00442500
mov eax, dword [0x4577c0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x416be5
push 0x400
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.00428970
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416b70
sub eax, edx
lea ecx, [esp + 8]
sar eax, 1
push ecx
mov esi, eax
call fcn.00429c40
test al, al
jne 0x416bc3
lea edx, [esp + 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x808]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416bb0
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x416be5
push 0x104
push 0xe6e
call fcn.004330d0
push eax
push 0
call fcn.00413250
add esp, 0xc
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00441b8e
add esp, 0x1004
ret 8

Function at 0x416d40
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 0xff
jne 0x416d56
cmp byte [esi + 8], 0
je 0x416dae
mov eax, edi
sub eax, 1
je 0x416d69
sub eax, 1
je 0x416d94
sub eax, 0xfd
jne 0x416d72
cmp dword [0x46260c], 0
jne 0x416d78
mov dword [0x46260c], edi
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
je 0x416d8e
call fcn.00438560
push edi
call fcn.004435db
mov eax, dword [0x46260c]
test eax, eax
je 0x416da2
cmp eax, 1
jne 0x416d78
mov dword [0x46260c], 2
jmp 0x416d78
pop edi
pop esi
ret 4

Function at 0x416f10
Capabilities:
Terminate process

Disassembly:
cmp byte [0x45dbd4], 0
push esi
mov esi, ecx
jne 0x416f3e
mov eax, dword [esp + 8]
push eax
push 0xce4
call fcn.004330d0
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x416f4c
cmp eax, 1
jne 0x416f56
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x416f6d
call fcn.00438560
push 2
call fcn.004435db
int3

Function at 0x416fd0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00416dc0
mov eax, dword [esp + 8]
push eax
push 0xe5a
call fcn.004330d0
push eax
push 0
push esi
call fcn.00416c00
inc dword [0x462610]
add esp, 0x10
mov dword [0x46260c], 5
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x417014
call fcn.00438560
push 5
call fcn.004435db
int3

Function at 0x417090
Capabilities:
Terminate process

Disassembly:
cmp byte [0x45dbd4], 0
push esi
mov esi, ecx
jne 0x4170be
mov eax, dword [esp + 8]
push eax
push 0xce2
call fcn.004330d0
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x4170cc
cmp eax, 1
jne 0x4170d6
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4170ed
call fcn.00438560
push 2
call fcn.004435db
int3
Function at 0x4171e0
Capabilities:
Terminate process

Disassembly:
push esi
push 0xce6
mov esi, ecx
call fcn.004330d0
push eax
push 0
push esi
call fcn.00416c00
inc dword [0x462610]
add esp, 0xc
mov dword [0x46260c], 8
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x41721a
call fcn.00438560
push 8
call fcn.004435db
int3

Function at 0x417230
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0xce0
mov esi, ecx
call fcn.004330d0
push eax
push 0
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
mov eax, dword [0x46260c]
test eax, eax
je 0x417263
cmp eax, 1
jne 0x41726d
mov dword [0x46260c], 2
inc dword [0x462610]
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x417284
call fcn.00438560
push 2
call fcn.004435db
int3

Function at 0x417290
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push eax
push 0xcde
mov esi, ecx
call fcn.004330d0
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.00416c00
add esp, 0x10
mov ecx, esi
call fcn.00416dc0
inc dword [0x462610]
mov dword [0x46260c], 5
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4172d9
call fcn.00438560
push 5
call fcn.004435db
int3

Function at 0x417370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x417391
push eax
push 0xd0e
call fcn.004330d0
push eax
push 0
call fcn.00413250
add esp, 0xc
call fcn.004128b0
mov ecx, esi
call fcn.00416dc0
inc dword [0x462610]
mov dword [0x46260c], 6
call fcn.0041b9d0
cmp byte [esi + 0xa], 0
pop esi
je 0x4173be
call fcn.00438560
push 6
call fcn.004435db
int3
Function at 0x41aab0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44e9bb
mov eax, dword fs:[0]
push eax
mov eax, 0x30c4
call fcn.00442500
mov eax, dword [0x4577c0]
xor eax, esp
mov dword [esp + 0x30c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4577c0]
xor eax, esp
push eax
lea eax, [esp + 0x30d4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30e4]
lea ecx, [esp + 0x1844]
call fcn.00438de0
lea ecx, [esp + 0x1868]
call fcn.00438de0
lea ecx, [esp + 0x188c]
call fcn.00438de0
push 0
lea eax, [esp + 0xc34]
push eax
push edi
push 0
call fcn.0041e6b0
test al, al
je 0x41acd2
cmp word [esp + 0x18b0], 0
je 0x41acd2
lea ecx, [esp + 0x18b0]
push ecx
lea edx, [esp + 0x1034]
push edx
call fcn.00428ac0
push eax
call fcn.004394b0
test eax, eax
je 0x41acd2
lea eax, [esp + 0x18b0]
push eax
push edi
call fcn.00428ac0
push eax
call fcn.004394b0
test eax, eax
jne 0x41acd2
mov word [esp + 0x20d0], ax
xor esi, esi
jmp 0x41ab90
test ax, ax
jne 0x41ac04
push 0x400
push edi
lea ecx, [esp + 0x20d8]
push ecx
call fcn.00437df0
push esi
push str.rtmp_d
lea edx, [esp + 0x20d8]
push edx
call fcn.00428ac0
push eax
mov edx, 0x400
call fcn.0042e9b0
add esp, 0xc
lea eax, [esp + 0x20d0]
push eax
push 0
call fcn.0041c3d0
test al, al
je 0x41abe8
xor eax, eax
mov word [esp + 0x20d0], ax
jmp 0x41abf0
mov ax, word [esp + 0x20d0]
add esi, 0x7b
cmp esi, 0x2710
jl 0x41ab90
test ax, ax
je 0x41acd2
push 0x400
push edi
lea ecx, [esp + 0x28d8]
push ecx
call fcn.00437df0
lea edx, [esp + 0x1030]
push edx
call fcn.00428ac0
mov esi, eax
lea eax, [esp + 0x28d0]
push eax
call fcn.00428ac0
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x41ac33
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x20d0]
push ecx
lea edx, [esp + 0x28d4]
push edx
call esi
test eax, eax
je 0x41acd2
lea ecx, [esp + 0x10]
call fcn.0041b0b0
push edi
push 0
mov dword [esp + 0x30e4], 0
xor bl, bl
call fcn.0041c3d0
test al, al
jne 0x41ac92
push 1
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.0041b690
mov bl, al
lea eax, [esp + 0x28d0]
push eax
lea ecx, [esp + 0x20d4]
push ecx
call esi
test bl, bl
je 0x41acba
lea ecx, [esp + 0x10]
call fcn.0041b130
lea ecx, [esp + 0x10]
call fcn.0041b1e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30dc], 0xffffffff
call fcn.0041b4c0
mov al, 1
jmp 0x41acd4
xor al, al
mov ecx, dword [esp + 0x30d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30c0]
xor ecx, esp
call fcn.00441b8e
add esp, 0x30d0
ret 4
Function at 0x41b4f0
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x16], 0
mov dword [edi + 0xc18], 0
mov al, 1
jne 0x41b50c
mov al, byte [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
je 0x41b523
mov dword [esp + 0x1c], 0xc0000000
mov ebp, 1
test al, al
je 0x41b531
mov ebp, 3
xor eax, eax
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov esi, eax
call fcn.0041efe0
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x41b572
test ebx, ebx
je 0x41b572
cmp word [ebx], 0
je 0x41b572
mov ecx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x41b58a
mov edx, dword [esp + 0x1c]
push 0
push esi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b5a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41b5a6
mov dword [edi + 0xc18], 1
cmp esi, 0xffffffff
setne al
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov byte [esp + 0x1c], al
test al, al
je 0x41b640
mov dword [edi + 4], esi
test ebx, ebx
je 0x41b5f6
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b5d0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x418]
push ebx
push ecx
call fcn.00443790
add esp, 0xc
jmp 0x41b5ff
xor edx, edx
mov word [edi + 0x418], dx
test ebp, ebp
je 0x41b622
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b608
sub eax, edx
inc eax
push eax
lea eax, [edi + 0x17]
push ebp
push eax
call fcn.00443790
add esp, 0xc
jmp 0x41b631
push 0x1000000
lea ecx, [edi + 0x17]
push ecx
push ebx
call fcn.00439240
mov edx, dword [edi + 4]
push edx
mov ecx, edi
call fcn.0041b100
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x41b7e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x41b807
cmp edi, 0x4e20
jbe 0x41b7fc
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b878
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41b856
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x41b83b
cmp eax, 3
jne 0x41b856
cmp edi, 0x4e20
jbe 0x41b856
push 0x4e20
push ebx
mov ecx, esi
call fcn.0041b7e0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x41b86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x41b86f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8