joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe90d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push edi
call fcn.00ea4670
mov ecx, ebx
call fcn.00ea3ef0
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0xe90dff
mov ecx, ebx
call fcn.00ea4670
cmp dword [edi + 0x28], 0xffffffff
jne 0xe90dab
cmp dword [edi + 0x2c], 0xffffffff
je 0xe90de9
push esi
mov esi, dword [edi + 0x28]
lea ecx, [esp + 0xc]
mov edi, dword [edi + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
call fcn.00e90b20
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.00e90b20
pop esi
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x24]
call fcn.00ea3d20
mov ecx, ebx
call fcn.00ea51c0
pop edi
mov ecx, ebx
pop ebx
add esp, 0x10
jmp fcn.00ea51c0

Function at 0xe90e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00ea4670
mov ecx, esi
call fcn.00ea3ef0
mov edi, eax
add edi, dword [esp + 0x20]
push edi
call dword [0x100df290]
test eax, eax
jne 0xe90e92
mov ecx, esi
call fcn.00ea4670
cmp dword [edi + 0x28], 0xffffffff
jne 0xe90e4b
cmp dword [edi + 0x2c], 0xffffffff
je 0xe90e7c
push dword [edi + 0x2c]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push dword [edi + 0x28]
mov dword [esp + 0x18], 0xffffffff
push esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00e8d0a0
lea ecx, [esp + 8]
call fcn.00e8b780
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.00ea3d20
mov ecx, esi
call fcn.00ea51c0
pop edi
mov ecx, esi
pop esi
add esp, 0x10
jmp fcn.00ea51c0

Function at 0xe90ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00ea4670
mov ecx, edi
call fcn.00ea3ef0
mov esi, eax
add esi, dword [esp + 0x10]
lea ecx, [esi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0xe90f3d
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, 0xffffffff
jne 0xe90ed7
cmp eax, ecx
je 0xe90ee0
push eax
push ecx
mov ecx, edi
call fcn.00ea3d20
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0xffffffff
jne 0xe90eef
cmp eax, ecx
je 0xe90ef8
push eax
push ecx
mov ecx, edi
call fcn.00ea3d20
cmp dword [esi + 0x18], 0xffffffff
jne 0xe90f04
cmp dword [esi + 0x1c], 0xffffffff
je 0xe90f13
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
call fcn.00e90b70
add esp, 0xc
cmp dword [esi + 0x20], 0xffffffff
jne 0xe90f1f
cmp dword [esi + 0x24], 0xffffffff
je 0xe90f2e
push dword [esi + 0x24]
push dword [esi + 0x20]
push edi
call fcn.00e90c70
add esp, 0xc
push dword [esp + 0x14]
mov ecx, edi
push dword [esp + 0x14]
call fcn.00ea3d20
mov ecx, edi
pop edi
pop esi
jmp fcn.00ea51c0
Function at 0xe90f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
push edi
call fcn.00ea4670
mov ecx, esi
call fcn.00ea3ef0
mov edi, eax
add edi, dword [esp + 0x10]
lea ecx, [edi + 4]
push ecx
call dword [0x100df290]
test eax, eax
jne 0xe90fb4
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
cmp ecx, 0xffffffff
jne 0xe90f87
cmp eax, ecx
je 0xe90f90
push eax
push ecx
mov ecx, esi
call fcn.00ea3d20
mov edx, dword [edi + 0x10]
mov eax, edx
mov ecx, dword [edi + 0x14]
or eax, ecx
je 0xe90fa5
push ecx
push edx
mov ecx, esi
call fcn.00ea3d20
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.00ea3d20
pop edi
mov ecx, esi
pop esi
jmp fcn.00ea51c0
Function at 0xf38380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push edi
test ebx, ebx
je 0xf383e6
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [eax + 0x78]
add edi, ebx
cmp dword [edi + 0x18], esi
jbe 0xf383e6
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x20]
lea eax, [eax + esi*4]
mov ecx, dword [eax + ebx]
add ecx, ebx
test ecx, 0xffff0000
je 0xf383d5
test edx, 0xffff0000
je 0xf383d5
push edx
push ecx
call dword [0x100df134]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0xf383dc
xor eax, eax
cmp ecx, edx
sete al
test eax, eax
jne 0xf383ed
inc esi
cmp esi, dword [edi + 0x18]
jb 0xf383a7
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ebp, dword [eax + ebx]
add ebp, ebx
cmp ebp, edi
jb 0xf383e6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x7c]
add eax, edi
cmp ebp, eax
ja 0xf383e6
xor ecx, ecx
mov eax, ebp
cmp byte [ebp], cl
je 0xf38429
lea esp, [esp]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0xf38420
lea esi, [ecx + 1]
xor edi, edi
test esi, esi
je 0xf3843d
push esi
call fcn.00f32830
add esp, 4
mov edi, eax
push esi
push ebp
push edi
call fcn.00f32930
add esp, 0xc
mov esi, edi
cmp byte [edi], 0
je 0xf3845b
nop
cmp byte [esi], 0x2e
je 0xf3846d
inc esi
cmp byte [esi], 0
jne 0xf38450
push edi
xor esi, esi
call fcn.00f32820
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov byte [esi], 0
call dword [0x100df1e0]
mov ecx, eax
lea eax, [esi + 1]
push eax
push ecx
call fcn.00f38380
add esp, 8
mov esi, eax
push edi
call fcn.00f32820
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402f50
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x9c
mov dword [esp], 0x2000
call fcn.0046ea40
mov dword [esp], ebx
mov dword [esp + 4], 0
mov ebp, eax
call sub.msvcrt.dll__open_1
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll__open_1
mov edi, eax
mov dword [esp + 0x18], eax
mov eax, ebx
shr eax, 0x1f
test al, al
jne 0x402ff0
mov eax, edi
shr eax, 0x1f
test al, al
jne 0x402ff0
lea eax, [esp + 0x30]
mov dword [esp], ebx
mov esi, dword [sym.imp.msvcrt.dll__fstati64]
mov dword [esp + 4], eax
call esi
test eax, eax
js 0x402ff0
lea eax, [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
test eax, eax
js 0x402ff0
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
xor eax, esi
xor edx, edi
or edx, eax
je 0x403020
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll__close_1
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll__close_1
xor eax, eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, edi
or edx, esi
je 0x4030ee
lea eax, [ebp + 0x1000]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
nop
lea esi, [esi]
cmp esi, 0x1000
mov edx, esi
jg 0x403080
mov ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sub.msvcrt.dll__read_1
mov edx, dword [esp + 0x28]
cmp edx, eax
je 0x4030a0
mov ebx, dword [esp + 0x1c]
jmp 0x402ff0
mov edx, 0x1000
mov ebx, 0x1000
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x24], 0
jmp 0x403054
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll__read_1
mov edx, dword [esp + 0x28]
cmp edx, eax
jne 0x403074
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x403074
sub esi, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
mov edx, edi
or edx, esi
jne 0x403040
mov ebx, dword [esp + 0x1c]
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll__close_1
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll__close_1
mov eax, 1
jmp 0x40300e
Function at 0x403120
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
mov esi, 1
sub esp, 0x11c
mov dword [esp + 4], 0x48e2ff
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp], ebx
mov dword [esp + 4], 0x48e302
mov ebp, eax
lea ebx, [esp + 0x10]
call sub.msvcrt.dll_fopen
mov edi, eax
jmp 0x403183
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp + 4], 0xa
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
setne al
mov esi, eax
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call sub.msvcrt.dll_fgets
test eax, eax
je 0x4031c3
mov eax, esi
test al, al
je 0x403160
mov dword [esp + 0xc], edi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x48e305
call sub.msvcrt.dll_fwrite
jmp 0x403160
mov dword [esp], ebp
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4053d0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov edi, ecx
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
mov dword [esp], esi
call sub.msvcrt.dll_getenv
cmp byte [edi + 1], 0
mov ebx, eax
je 0x40540c
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], esi
mov dword [esp + 4], str.env_manager::getenv___s______s_n
add eax, 0x40
mov dword [esp], eax
call fcn.00487a40
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4
Function at 0x407970
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp + 0x10], 0x4302d0
mov dword [esp + 0xc], 0x430290
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4dc1c0
mov edi, dword [esp + 0x30]
call fcn.0046c240
mov eax, dword [0x4dc1cc]
mov edx, dword [0x4dc1d0]
sub edx, eax
cmp edx, 0xb
jbe 0x407a70
mov dword [eax], 0x4c4c4f43
mov dword [eax + 4], 0x5f544345
mov dword [eax + 8], 0x3d434347
mov eax, dword [0x4dc1cc]
mov dword [esp], edi
lea esi, [eax + 0xc]
mov dword [0x4dc1cc], esi
call sub.msvcrt.dll_strlen
lea ebx, [eax + 1]
mov eax, dword [0x4dc1d0]
sub eax, esi
cmp ebx, eax
ja 0x407a90
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
add ebx, dword [0x4dc1cc]
mov ecx, dword [0x4dc1c8]
cmp ebx, ecx
je 0x407ab0
mov edx, dword [0x4dc1d8]
lea eax, [ebx + edx]
not edx
mov ebx, dword [0x4dc1c4]
and eax, edx
mov edx, dword [0x4dc1d0]
mov esi, eax
mov dword [0x4dc1cc], eax
sub esi, ebx
mov edi, edx
sub edi, ebx
cmp esi, edi
jbe 0x407a4e
mov dword [0x4dc1cc], edx
mov eax, edx
mov dword [esp + 0x30], ecx
mov dword [0x4dc1c8], eax
add esp, 0x20
pop ebx
pop esi
pop edi
mov ecx, 0x4dc268
jmp fcn.004054e0
mov dword [esp + 4], 0xc
mov dword [esp], 0x4dc1c0
call fcn.0046c2a0
mov eax, dword [0x4dc1cc]
jmp 0x4079bc
mov dword [esp + 4], ebx
mov dword [esp], 0x4dc1c0
call fcn.0046c2a0
mov esi, dword [0x4dc1cc]
jmp 0x4079f8
or byte [0x4dc1e8], 2
jmp 0x407a1c
Function at 0x410be0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
movzx eax, byte [eax]
cmp al, 0x40
mov byte [ebp - 0x20], al
je 0x410c00
cmp al, 0x24
jne 0x410d2b
nop
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 1]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x24], esi
test al, al
je 0x410d38
cmp al, 0x2f
je 0x410d38
cmp al, 0x5c
je 0x410d38
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add eax, 2
jmp 0x410c3f
add eax, 1
cmp dl, 0x2f
je 0x410c4d
cmp dl, 0x5c
je 0x410c4d
mov ecx, edi
movzx edx, byte [eax]
lea edi, [ecx + 1]
mov esi, eax
mov ebx, edi
test dl, dl
jne 0x410c30
lea eax, [ecx + 2]
add eax, 0x1e
shr eax, 4
shl eax, 4
call fcn.0047a070
sub esp, eax
mov eax, dword [ebp - 0x24]
lea edi, [esp + 0x1b]
mov dword [esp + 8], ebx
and edi, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
cmp byte [ebp - 0x20], 0x40
mov byte [edi + ebx], 0
je 0x410cd0
mov dword [esp], edi
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410d21
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0046a390
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
movzx eax, byte [ebx]
cmp al, 0x40
mov byte [ebp - 0x20], al
je 0x410cc3
cmp al, 0x24
jne 0x410d2e
mov dword [ebp - 0x1c], ebx
jmp 0x410c00
mov dword [esp + 8], 0
mov dword [esp + 4], str._ROOT
mov dword [esp], edi
call fcn.0046a390
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410d06
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
jmp 0x410c94
mov eax, dword [str._builds_idf_crosstool_NG_builds_xtensa_esp32s3_elf]
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410c94
mov eax, str._builds_idf_crosstool_NG_builds_xtensa_esp32s3_elf
jmp 0x410c94
mov ebx, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x24]
mov eax, 1
xor ebx, ebx
jmp 0x410c50

Function at 0x424560
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp], str.COLUMNS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x424583
mov dword [esp], eax
call fcn.004872c8
test eax, eax
jle 0x424583
add esp, 0x1c
ret
mov eax, 0x7fffffff
add esp, 0x1c
ret
Function at 0x4265b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], str.GCC_COLORS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x426757
movzx esi, byte [eax]
mov edi, eax
xor eax, eax
mov ecx, esi
test cl, cl
je 0x42675c
lea eax, [edi + 1]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
xor ebp, ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jmp 0x426643
test al, al
je 0x426649
mov eax, esi
cmp al, 0x3d
je 0x42671d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x426630
mov eax, esi
cmp al, 0x3b
je 0x426630
lea eax, [esi - 0x30]
cmp al, 9
ja 0x426757
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 1
movzx esi, byte [eax]
add eax, 1
mov dword [esp + 0x14], eax
mov eax, esi
cmp al, 0x3a
jne 0x426600
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42673e
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [0x48d620]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x426764
mov ebx, 0x48d620
jmp 0x42667c
add ebx, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x426698
movzx edx, byte [ebx + 8]
cmp edx, ebp
jne 0x426673
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x426673
mov eax, dword [ebx + 4]
test eax, eax
je 0x4266fc
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4266fc
cmp byte [ebx + 9], 0
jne 0x426713
mov edi, dword [esp + 0x1c]
mov eax, edi
add eax, 7
mov dword [esp], eax
call fcn.0046ea40
mov ecx, 0x5b1b
mov esi, eax
lea eax, [eax + 2]
mov word [eax - 2], cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
lea eax, [esi + edi + 2]
mov dword [ebx + 4], esi
mov byte [ebx + 9], 1
mov dword [eax], 0x4b5b1b6d
mov byte [eax + 4], 0
mov eax, dword [esp + 0x18]
movzx esi, byte [eax]
mov eax, esi
test al, al
je 0x426757
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
jmp 0x426630
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x4266ad
mov eax, dword [esp + 0x18]
cmp edi, eax
je 0x426757
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x426757
mov ebp, eax
mov eax, dword [esp + 0x14]
sub ebp, edi
mov dword [esp + 0x10], eax
jmp 0x426630
mov ebp, dword [esp + 0x18]
mov eax, dword [0x48d620]
sub ebp, edi
test eax, eax
jne 0x42666c
mov eax, esi
test al, al
jne 0x426702
mov eax, 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x48d620
jmp 0x426698
Function at 0x46bfb0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4de180]
test eax, eax
je 0x46bfc0
ret
push esi
push ebx
sub esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x46bff4
mov eax, dword [0x4de180]
test eax, eax
je 0x46c028
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp], eax
call fcn.0046ea40
mov dword [esp], ebx
mov dword [0x4de180], eax
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
jne 0x46bfe5
mov eax, dword [0x4de180]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [0x4de180], 0
mov dword [esp], 0x4d7128
call fcn.0046eb70
mov dword [0x4de180], eax
jmp 0x46bfee

Function at 0x46d0d0
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x46d0ed
mov edx, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [edx + 0xc]
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x46d101
mov edx, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [edx + 0xc]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x46d110
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x46d11f
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x46d1c0
mov edx, dword [ebx + 0x14]
test edx, edx
jne 0x46d1b0
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x3c]
test eax, eax
jle 0x46d18f
xor esi, esi
nop
lea esi, [esi]
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
call sub.msvcrt.dll_remove
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + esi*4]
add esi, 1
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebx + 0x3c], esi
jg 0x46d160
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x46d19e
mov dword [esp], ebx
call eax
mov dword [esp + 0x30], ebx
add esp, 0x24
pop ebx
pop esi
jmp sub.msvcrt.dll_free
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x46d131
and dword [ebx], 0xfffffffe
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
mov edx, 1
mov dword [esp], eax
mov eax, ebx
call fcn.0046c440
jmp 0x46d12a
Function at 0x479450
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004794b0

Function at 0x4794b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4de5c0]
test esi, esi
jle 0x47959d
mov edi, dword [0x4de5c4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4794e4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x479596
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4794d0
mov dword [esp], eax
mov esi, eax
call fcn.00479e00
test eax, eax
mov edi, eax
je 0x4795da
mov esi, dword [0x4de5c4]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00479f10
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4de5c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4795ba
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x47958f
sub eax, 0x40
and eax, 0xffffffbf
je 0x47958f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4de5c4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4795a4
add dword [0x4de5c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x4794ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00479450
mov eax, dword [0x4de5c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00479450
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00479450
lea esi, [esi]
Function at 0x479a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4de5d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4de5d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x479ac5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x479abe
test esi, esi
je 0x479abe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x479aa0
mov dword [esp], 0x4de5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x47a400
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x47a440
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x47a465
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x47a7d0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x47a804
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x4de5f4], eax
call fcn.004877a0
test eax, eax
sete al
movzx eax, al
mov dword [0x48d720], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47a7f3