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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x1006510b
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100651e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x10065206
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100653bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x100653e2
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10069070
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.10072917
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x100690da
push esi
lea edi, [eax + 0x400]
call fcn.1007290c
push edi
call fcn.10072917
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x100690aa
push esi
xor edi, edi
call dword [0x113f0698]
add esp, 4
test eax, eax
je 0x100690f6
push eax
push esi
call fcn.1006d2c0
add esp, 8
mov edi, eax
push esi
call fcn.1007290c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1006a9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1006a9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1006a9f3
pop esi
ret

Function at 0x1006aa00
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1006aa69
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10068a90
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x1006ac70
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1006ac86
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x1006ac90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1006ace1
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.1006ac70
add esp, 4
cmp eax, 0xffffffff
je 0x1006acdc
push eax
call sub.WS2_32.dll_inet_ntoa
mov esi, eax
push esi
call dword [0x113f0698]
push eax
push esi
call fcn.1006d2c0
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x1006bfa0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x1006c01f
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1006c01f
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [0x113f0698]
add esp, 4
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1006c013
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x1006cc30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1006cc51
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1006ccab
inc edi
cmp edi, esi
jl 0x1006cc45
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1006cce0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1006cc9a
cmp byte [eax], bl
je 0x1006ccb5
cmp byte [eax + 1], bl
je 0x1006ccbe
cmp byte [eax + 2], bl
je 0x1006ccc8
cmp byte [eax + 3], bl
je 0x1006ccd4
add eax, 4
cmp eax, edi
jb 0x1006cc71
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x1006dd70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1006dd7c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1006de0f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1006ddd9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1006de20
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1006ddae
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x1006de40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1006df3d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1006de92
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1006debe
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1006de20
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1006deff
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1006de81
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1006fc60
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x113f0874]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x113f0804]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x1006fc73
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x1006fcb4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x113f08ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x1006fce6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006fcea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1006fcdb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x1006fd08
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006fd0c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1006fcfd
xor ecx, ecx
mov eax, 0x113f0814
xor ebx, ebx
mov bl, byte [ecx + 0x113f08bc]
cmp byte [esp + ebx + 0x14], 0
je 0x1006fd37
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x113f08d4]
cmp byte [esp + ebx + 0x14], 0
je 0x1006fd4e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x113f0874
jl 0x1006fd1e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x1006fca7
lea edx, [esp + 0x84]
push edx
call fcn.1006fd90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x38804580
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2b1d61e9
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0xb383051
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x6dc60c91
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x6d4310d9
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
cmp eax, 1
je 0x6d431105
test eax, eax
je 0x6d431195
cmp eax, 3
jne 0x6d4310fb
push 0
call fcn.6d43501d
add esp, 4
mov eax, 1
pop esi
pop ebx
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, eax
mov ebx, eax
and esi, 0xff
cmp esi, 3
je 0x6d435c4b
inc dword [section..data]
call fcn.6d433918
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x6d46100c], eax
mov dword [sym.MSVCRT20.dll__winmajor], esi
shl esi, 8
mov al, bh
shr ebx, 0x10
and eax, 0xff
add esi, eax
mov dword [sym.MSVCRT20.dll__winminor], eax
mov dword [sym.MSVCRT20.dll__winver], esi
mov dword [sym.MSVCRT20.dll__osver], ebx
call fcn.6d4350b9
test eax, eax
je 0x6d435c75
call fcn.6d433727
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCRT20.dll__acmdln], eax
call fcn.6d43379a
mov dword [sym.MSVCRT20.dll__wcmdln], eax
call fcn.6d432e20
call fcn.6d4337ff
call fcn.6d4351ee
jmp 0x6d4310fb
mov eax, dword [section..data]
test eax, eax
jle 0x6d435c8b
dec eax
cmp dword [0x6d4612a4], 0
mov dword [section..data], eax
je 0x6d435c81
call fcn.6d435697
call fcn.6d4357e4
jmp 0x6d4310fb
test ebx, 0x80000000
je 0x6d43111e
push 0x12000
push 0x6d461018
push str.Error:_This_version_of_MSVCRT20.DLL_is_not_compatible_nwith_Win32s.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x6d431100
call fcn.6d4357e4
xor eax, eax
jmp 0x6d431100
call sym.MSVCRT20.dll__c_exit
jmp 0x6d4311b5
xor eax, eax
jmp 0x6d431100
Function at 0x6d434fbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x70
xor edi, edi
push 1
call sym.MSVCRT20.dll_calloc
add esp, 8
mov esi, eax
cmp esi, edi
je 0x6d438c5d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push 0x6d434f54
mov dword [esi + 0x48], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x6d4611e0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x6d438c55
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call sym.MSVCRT20.dll_free
add esp, 4
test edi, edi
je 0x6d438c73
push edi
call fcn.6d440737
add esp, 4
xor eax, eax
jmp 0x6d435019

Function at 0x6d43501d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6d461434], 0xffffffff
push esi
je 0x6d435088
mov esi, dword [esp + 8]
test esi, esi
je 0x6d43508a
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x6d438c7a
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x6d438c88
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x6d438c96
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x6d438ca4
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x6d438cb2
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x6d438cc0
push esi
call sym.MSVCRT20.dll_free
add esp, 4
push 0
mov eax, dword [0x6d461434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
mov eax, dword [0x6d461434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6d43507a
jmp 0x6d43502f
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d43503a
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d435045
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d435050
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d43505b
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d435066
push eax
call sym.MSVCRT20.dll_free
add esp, 4
jmp 0x6d435071

Function at 0x6d43509e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x6d461434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6d438cce
mov eax, esi
pop esi
ret
push 0x70
push 1
call sym.MSVCRT20.dll_calloc
add esp, 8
mov esi, eax
test esi, esi
je 0x6d438d13
push esi
mov eax, dword [0x6d461434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6d438d13
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x6d4611e0
jmp 0x6d4350b5
push 0x10
call sym.MSVCRT20.dll__amsg_exit
add esp, 4
jmp 0x6d4350b5
Function at 0x6d4350b9
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.6d433706
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6d461434], eax
cmp eax, 0xffffffff
je 0x6d438d22
push 0x70
push 1
call sym.MSVCRT20.dll_calloc
add esp, 8
mov esi, eax
test esi, esi
je 0x6d438d22
push esi
mov eax, dword [0x6d461434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6d438d22
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], 0x6d4611e0
mov dword [esi + 0x14], 1
pop esi
ret
xor eax, eax
jmp 0x6d435120

Function at 0x6d435943
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.6d431d69
mov dword [0x6d4612a4], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x6d4612a0], bl
jne 0x6d4359a4
cmp dword [0x6d45fbc4], 0
je 0x6d435992
mov esi, dword [0x6d45fbc0]
sub esi, 4
cmp esi, dword [0x6d45fbc4]
jb 0x6d435992
mov eax, dword [esi]
test eax, eax
je 0x6d435987
call eax
sub esi, 4
cmp esi, dword [0x6d45fbc4]
jae 0x6d43597f
push 0x6d468314
push 0x6d468304
call sym.MSVCRT20.dll__initterm
add esp, 8
push 0x6d46831c
push 0x6d468318
call sym.MSVCRT20.dll__initterm
add esp, 8
test ebx, ebx
jne 0x6d438f7b
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.6d4351e3
pop esi
pop ebx
ret

Function at 0x6d440f57
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6d440f7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x6d440fa3
test byte [esp + 8], 2
je 0x6d440fa3
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 5
mov eax, 0xffffffff
jmp 0x6d440f7a
xor eax, eax
jmp 0x6d440f7a

Function at 0x6d441016
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x70
push 1
call sym.MSVCRT20.dll_calloc
add esp, 8
mov esi, eax
cmp esi, edi
je 0x6d44106d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push esi
mov dword [esi + 0x48], eax
push 4
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x6d4611e0
push esi
push 0x6d44109b
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov edi, eax
test edi, edi
jne 0x6d44108b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call sym.MSVCRT20.dll_free
add esp, 4
test edi, edi
je 0x6d441083
push edi
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x6d441065
mov eax, edi
jmp 0x6d441088