joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e7ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42e827
cmp dword [ebp + 0x14], edi
je 0x42e827
cmp ecx, edi
jne 0x42e82e
call fcn.0042f266
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00431d2b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42e842
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42e863
cmp ebx, 0xffffffff
je 0x42e852
push ebx
push edi
push ecx
call fcn.0042acb0
add esp, 0xc
cmp esi, edi
je 0x42e80f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42e80f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42e87f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42e886
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42e977
test word [esi + 0xc], 0x10c
je 0x42e8da
mov eax, dword [esi + 4]
test eax, eax
je 0x42e8da
jl 0x42e9d8
cmp ebx, eax
mov edi, ebx
jb 0x42e8ab
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42e97f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042a7c1
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42e96f
cmp ebx, dword [ebp - 0xc]
jb 0x42e947
cmp dword [ebp - 0xc], 0
je 0x42e904
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x42e8f9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42e900
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42e90f
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x42e90f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42e9ab
push eax
push dword [ebp - 8]
push esi
call fcn.0042fa39
pop ecx
push eax
call fcn.004393ea
add esp, 0xc
test eax, eax
je 0x42e9ea
cmp eax, 0xffffffff
je 0x42e9d8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42e96f
push esi
call fcn.00437578
cmp eax, 0xffffffff
pop ecx
je 0x42e9dc
cmp dword [ebp - 4], 0
je 0x42e9ab
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42e88e
mov eax, dword [ebp + 0x14]
jmp 0x42e829
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42e996
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042acb0
add esp, 0xc
call fcn.0042f266
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42e81f
cmp dword [ebp + 0xc], 0xffffffff
je 0x42e9c1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042acb0
add esp, 0xc
call fcn.0042f266
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42e81f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42e829
or dword [esi + 0xc], 0x10
jmp 0x42e9dc
Function at 0x43052d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x459ed0]
je 0x430548
inc edi
cmp edi, 0x17
jb 0x430539
cmp edi, 0x17
jae 0x4306c8
push ebp
push 3
call fcn.0043c35f
cmp eax, 1
pop ecx
je 0x430694
push 3
call fcn.0043c35f
test eax, eax
pop ecx
jne 0x43057c
cmp dword [0x459a84], 1
je 0x430694
cmp ebx, 0xfc
je 0x4306c7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45d718
push ebp
call fcn.0043c2fa
add esp, 0xc
test eax, eax
je 0x4305b2
push esi
push esi
push esi
push esi
push esi
call fcn.00431c2f
add esp, 0x14
push 0x104
mov esi, 0x45d731
push esi
push 0
mov byte [0x45d835], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4305f6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043c2fa
add esp, 0xc
test eax, eax
je 0x4305f6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431c2f
add esp, 0x14
push esi
call fcn.0042aed0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43063b
push esi
call fcn.0042aed0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45da2c
push 0x449ee4
sub ecx, eax
push ecx
push eax
call fcn.0043c247
add esp, 0x14
test eax, eax
je 0x43063b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431c2f
add esp, 0x14
jmp 0x43063d
xor esi, esi
push 0x449ee0
push ebx
push ebp
call fcn.0043c1d6
add esp, 0xc
test eax, eax
je 0x43065d
push esi
push esi
push esi
push esi
push esi
call fcn.00431c2f
add esp, 0x14
push dword [edi*8 + 0x459ed4]
push ebx
push ebp
call fcn.0043c1d6
add esp, 0xc
test eax, eax
je 0x43067f
push esi
push esi
push esi
push esi
push esi
call fcn.00431c2f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043c019
add esp, 0xc
jmp 0x4306c7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4306c7
cmp ebp, 0xffffffff
je 0x4306c7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x459ed4]
push dword [esi]
call fcn.0042aed0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43c019
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004310f1
xor ebx, ebx
cmp dword [0x45e21c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43c0ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43c1cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43c1cf
push eax
call fcn.00431083
mov dword [esp], 0x44a308
push edi
mov dword [0x45e21c], eax
call esi
push eax
call fcn.00431083
mov dword [esp], 0x44a2f4
push edi
mov dword [0x45e220], eax
call esi
push eax
call fcn.00431083
mov dword [0x45e224], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042b004
test eax, eax
pop ecx
pop ecx
je 0x43c0bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431c2f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43c0ef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431083
cmp eax, ebx
pop ecx
mov dword [0x45e22c], eax
je 0x43c0ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431083
pop ecx
mov dword [0x45e228], eax
mov eax, dword [0x45e228]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43c174
cmp dword [0x45e22c], ecx
je 0x43c174
push eax
call fcn.004310fa
push dword [0x45e22c]
mov esi, eax
call fcn.004310fa
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43c174
cmp edi, ebx
je 0x43c174
call esi
cmp eax, ebx
je 0x43c141
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c141
test byte [ebp - 0x18], 1
jne 0x43c174
lea eax, [ebp - 0x10]
push eax
call fcn.0042b03b
test eax, eax
pop ecx
je 0x43c15c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431c2f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43c16b
or dword [ebp + 0x10], 0x200000
jmp 0x43c1af
or dword [ebp + 0x10], 0x40000
jmp 0x43c1af
mov eax, dword [0x45e220]
cmp eax, dword [ebp - 8]
je 0x43c1af
push eax
call fcn.004310fa
cmp eax, ebx
pop ecx
je 0x43c1af
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43c1af
mov eax, dword [0x45e224]
cmp eax, dword [ebp - 8]
je 0x43c1af
push eax
call fcn.004310fa
cmp eax, ebx
pop ecx
je 0x43c1af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e21c]
call fcn.004310fa
cmp eax, ebx
pop ecx
je 0x43c1cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c1d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4418d6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x459d40]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044186b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042acb0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x441925
cmp dword [ebp - 0x1c], 5
jb 0x44193d
jmp 0x441939
cmp dword [ebp - 0x10], 1
jne 0x44193d
cmp dword [ebp - 0x1c], 4
ja 0x441939
jne 0x44193d
cmp dword [ebp - 0x18], 0
jbe 0x44193d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b350
call fcn.0044173f
test eax, eax
jge 0x44195e
mov byte [0x45e528], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042a177
add ebp, 0x78
leave
ret
Function at 0x101b1c00
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101b1ded
pushal
mov esi, section.UPX1
lea edi, [esi - 0x117000]
push edi
or ebp, 0xffffffff
jmp 0x101b1c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101b1c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101b1c20
mov eax, 1
add ebx, ebx
jne 0x101b1c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101b1c54
jne 0x101b1c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101b1c73
dec eax
add ebx, ebx
jne 0x101b1c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101b1c38
add ebx, ebx
jne 0x101b1c6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101b1cc5
xor ecx, ecx
sub eax, 3
jb 0x101b1c8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101b1cfa
sar eax, 1
mov ebp, eax
jmp 0x101b1c96
add ebx, ebx
jne 0x101b1c96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101b1c64
inc ecx
add ebx, ebx
jne 0x101b1ca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101b1c64
add ebx, ebx
jne 0x101b1cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101b1ca6
jne 0x101b1cc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101b1ca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101b1ce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101b1cd6
jmp 0x101b1c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101b1ce4
add edi, ecx
jmp 0x101b1c26
pop esi
mov edi, esi
mov ecx, 0x8df9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101b1d02
cmp byte [edi], 0x24
jne 0x101b1d02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101b1d07
lea edi, [esi + 0x1a0000]
mov eax, dword [edi]
or eax, eax
je 0x101b1d7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b11b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b133c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101b1d34
mov ecx, edi
jns 0x101b1d63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b1340]
or eax, eax
je 0x101b1d79
mov dword [ebx], eax
add ebx, 4
jmp 0x101b1d51
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101b1db0
cmp al, 0xef
ja 0x101b1da3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101b1d85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101b1d92
mov ebp, dword [esi + 0x1b1344]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101b1de4
sub esp, 0xffffff80
jmp 0x100fead7
Function at 0x6a301cfc
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
mov ecx, 0x7fffffff
mov dword [ebp - 4], esi
mov eax, ecx
lock inc dword [ebp - 4]
sub eax, 1
jne 0x6a301d0f
cmp dword [ebp - 4], ecx
jne 0x6a301e14
mov eax, dword fs:[0x30]
push ebx
push edi
mov dword [ebp - 0xc], esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], 0xa40ec558
mov ebx, dword [eax + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
add ecx, ebx
mov edi, dword [eax + 0x24]
add edx, ebx
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x6a301da2
mov ecx, dword [ecx]
mov edx, esi
add ecx, ebx
mov al, byte [ecx]
test al, al
je 0x6a301d87
rol edx, 9
movsx eax, al
add edx, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x6a301d70
cmp edx, 0x41eb17b2
je 0x6a301dae
mov ecx, dword [ebp - 8]
add edi, 2
mov eax, dword [ebp - 0xc]
add ecx, 4
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
movzx eax, ax
cmp eax, dword [ebp - 0x1c]
jb 0x6a301d64
mov edi, esi
mov eax, dword [ebp + 4]
mov ecx, 0x2ee2b66
jmp 0x6a301dbc
movzx eax, word [edi]
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + eax*4]
add edi, ebx
jmp 0x6a301da4
inc eax
cmp dword [eax], ecx
jne 0x6a301dbb
lea ebx, [eax + 4]
mov dword [ebp - 0x10], 0x189e0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
push eax
push 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call edi
mov eax, esi
and eax, 3
mov al, byte [ebp + eax - 0x18]
xor byte [esi + ebx], al
inc esi
cmp esi, 0x189e0
jb 0x6a301ddf
lea eax, [ebp - 0x24]
push eax
push 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 0x5a90]
call eax
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret
Function at 0x6a30787c
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
leave
jmp fcn.6a306840

Function at 0x6a307938
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
mov esi, edx
mov edi, ecx
mov dword [esp + 4], eax
mov dword [esp], 0x22
call sub.msvcrt.dll_putc
cmp esi, edi
jne 0x6a307973
jmp 0x6a3079e0
mov dword [esp + 4], ebx
movsx eax, al
mov dword [esp], eax
call sub.msvcrt.dll_putc
cmp edi, esi
je 0x6a3079e0
inc esi
mov al, byte [esi - 1]
cmp al, 0xa
je 0x6a307998
cmp al, 0x22
je 0x6a307983
cmp al, 0x5c
jne 0x6a307960
mov dword [esp + 4], ebx
mov dword [esp], 0x5c
call sub.msvcrt.dll_putc
mov al, byte [esi - 1]
jmp 0x6a307960
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x6a315bc0
call sub.msvcrt.dll_fwrite
cmp edi, esi
je 0x6a3079f0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x6a315bc4
call sub.msvcrt.dll_fwrite
jmp 0x6a307973
mov dword [esp + 4], ebx
mov dword [esp], 0x22
call sub.msvcrt.dll_putc
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x6a3079f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp], 0x6a3131e0
call fcn.6a3058d0
test eax, eax
jne 0x6a307c41
mov edi, dword [0x6a31b300]
test edi, edi
je 0x6a307bcb
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6a307b98
mov ebx, dword [0x6a31b304]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.domain
call sub.msvcrt.dll_fwrite
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea ecx, [esi + ecx - 1]
mov edx, esi
mov eax, ebx
call fcn.6a307938
mov dword [esp + 4], 4
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov esi, eax
test eax, eax
je 0x6a307ac6
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str._nmsgctxt
call sub.msvcrt.dll_fwrite
mov ecx, esi
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.6a307938
inc esi
mov dword [ebp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str._nmsgid
call sub.msvcrt.dll_fwrite
mov esi, 0xffffffff
mov ecx, esi
mov edi, dword [ebp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [ebp + 0x10]
lea ecx, [eax + ecx - 1]
mov edx, eax
mov eax, ebx
call fcn.6a307938
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x6a307c1c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str._nmsgid_plural
call sub.msvcrt.dll_fwrite
mov ecx, esi
mov edi, dword [ebp + 0x14]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [ebp + 0x14]
lea ecx, [eax + ecx - 1]
mov edx, eax
mov eax, ebx
call fcn.6a307938
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str._nmsgstr_0_____n
call sub.msvcrt.dll_fwrite
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sub.msvcrt.dll_putc
mov dword [esp], 0x6a3131e0
call fcn.6a305938
test eax, eax
jne 0x6a307c41
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x6a31b304]
test eax, eax
je 0x6a307bb9
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [0x6a31b304], 0
mov edi, dword [0x6a31b300]
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [0x6a31b300], 0
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
mov dword [esp], ecx
call sub.msvcrt.dll_malloc
mov dword [0x6a31b300], eax
test eax, eax
je 0x6a307b7c
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x6a315bc7
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov ebx, eax
mov dword [0x6a31b304], eax
test eax, eax
jne 0x6a307a43
jmp 0x6a307b7c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str._nmsgstr____n
call sub.msvcrt.dll_fwrite
jmp 0x6a307b6c
call sub.msvcrt.dll_abort
nop
nop
Function at 0x6a3091f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 4], 0x24
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x6a309290
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.6a307d10
mov ebx, eax
test eax, eax
je 0x6a309269
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
cmp esi, dword [ebp - 0x1c]
je 0x6a309278
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov eax, esi
test esi, esi
jns 0x6a30926e
call sub.msvcrt.dll__errno
mov dword [eax], 7
mov eax, 0xffffffff
jmp 0x6a30926e
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_vfprintf
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6a30bdc0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov esi, dword [0x6a31b308]
test esi, esi
je 0x6a30bde4
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 0x104
lea ebx, [ebp - 0x180]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetSystemDirectoryA
sub esp, 8
lea edx, [eax - 1]
cmp edx, 0x102
ja 0x6a30befc
mov al, byte [ebp + eax - 0x181]
cmp al, 0x5c
je 0x6a30be2f
cmp al, 0x2f
je 0x6a30be2f
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
mov word [ebx + ecx - 1], 0x5c
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebx + ecx - 1]
mov esi, str.mlang.dll
mov ecx, 0xa
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadLibraryA
push ebx
mov ebx, eax
test eax, eax
je 0x6a30befc
mov dword [esp + 4], str.ConvertINetString
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b308], eax
mov dword [esp + 4], str.ConvertINetMultiByteToUnicode
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b30c], eax
mov dword [esp + 4], str.ConvertINetUnicodeToMultiByte
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b310], eax
mov dword [esp + 4], str.IsConvertINetStringAvailable
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b314], eax
mov dword [esp + 4], str.LcidToRfc1766A
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b318], eax
mov dword [esp + 4], str.Rfc1766ToLcidA
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [0x6a31b31c], eax
mov eax, 1
jmp 0x6a30bddb
xor eax, eax
jmp 0x6a30bddb
Function at 0x6a30d020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6a3190c0
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x6a30d070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x6a30d096
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x6a30d12a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6a30d0e5
cmp eax, 0x40
je 0x6a30d0e5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6a30d089
cmp eax, 0x40
je 0x6a30d089
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x6a30d089
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6a30d020
lea esi, [esi]
lea edi, [edi]