joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b14b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x569434]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b1536
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00489ac0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b1571
push str.Received_too_short_packet
push edi
call fcn.0049a4f0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dbfda
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b1592
jmp dword [ecx*4 + 0x4b169c]
cmp edx, 4
jle case.0x4b1592.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b1592.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0049a3d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4b15f6
push 5
push esi
call fcn.004b1df0
add esp, 8
mov eax, ebx
jmp 0x4b1558
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004a4590
jmp 0x4b1671
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x535180
push edi
call fcn.0049a5c0
jmp 0x4b1671
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004b1240
add esp, 0xc
test eax, eax
je case.0x4b1592.4
jmp 0x4b1558
push str.Internal_error:_Unexpected_packet
push 0x535cf0
push edi
call fcn.0049a4f0
add esp, 0xc
push ebp
call fcn.004a47f0
add esp, 4
test eax, eax
je 0x4b1556
push 5
push esi
call fcn.004b1df0
add esp, 8
mov eax, 0x2a
jmp 0x4b1558
Function at 0x4bc2d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4bc2fb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bc2ea
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4bc330
cmp dword [esi + 8], 0
jne 0x4bc31e
push 0x5562a4
push dword [eax + 8]
call fcn.004f99a3
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bc31e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004fd350
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bc352
mov eax, dword [esi + 8]
test eax, eax
je 0x4bc34c
push eax
call fcn.004f9a77
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c0640
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0650
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x569360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c0677
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4c0690
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4c0680
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4c070a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c06fe
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x569364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c5ab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c5abc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004c5ad0

Function at 0x4c6670
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x569360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c6697
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4c66df
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4c66e3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c6745
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c6704
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4c6777
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x540358
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x540359
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c6750
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4e0687
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x51271a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00512599

Function at 0x519539
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005191f9
Function at 0x64007370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.64006715
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.640066ca
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.64006705
pushfd
out dx, eax
mov dword [ebp + 0x68], ebx
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x640073f9
cmp dword [ebp - 0x398], 0
je 0x640075c3
cmp dword [ebp + 0xc], 1
je 0x640075c3
cmp dword [ebp + 0xc], 8
jne 0x6400758b
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.64006715
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.640066ca
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.64006705
ret
call fcn.64006705
aad 0x9e
mov esi, 0xbca5808e
cli
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
Function at 0x6400874f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x640087ab
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne fcn.64008280
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
test dword [eax + edi*8 - 0x39760001], ecx
test dword [ebp - 0x6b000008], ecx
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
test dword [esi - 0x6a000008], ebx
push 0xb
lea eax, [ebp - 0x7bc]
push eax
call fcn.64006715
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.64006676
add esp, 0xc
jmp 0x6400867d
clc
invalid
jmp 0x640080a7
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x424f7d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x5822dc
push 0x5822e0
call fcn.004cfbd0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x424fdd
push 0x5822f0
mov ecx, dword [ebp - 8]
call fcn.00425469
test eax, eax
jne 0x424fc3
push 0x5e59bc
push 1
call fcn.00425018
add esp, 8
jmp 0x424fdb
push 0
push 0
push 0x5822f8
call fcn.00520af8
push 0
call fcn.004d16d0
add esp, 4
jmp 0x424ff8
mov eax, dword [ebp - 4]
push eax
call fcn.004cf8e0
add esp, 4
push 0x5e59c0
push 1
call fcn.00425018
add esp, 8
mov dword [0x5c4330], 0
push 3
push str..ScreenDing.wav
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
mov dword [0x5c4338], eax
mov esp, ebp
pop ebp
ret

Function at 0x42537d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push str..Spec
mov ecx, dword [ebp - 8]
call fcn.00425469
cmp eax, 1
je 0x4253b1
push str..Screen
mov ecx, dword [ebp - 8]
call fcn.00425469
cmp eax, 1
jne 0x4253c9
push 0
push 0
push 0x5825e0
call fcn.00520af8
push 0
call fcn.004d16d0
add esp, 4
push str..Record
mov ecx, dword [ebp - 8]
call fcn.00425469
mov ecx, dword [ebp - 4]
or ecx, eax
mov dword [ebp - 4], ecx
push str..RecordRecCtl
mov ecx, dword [ebp - 8]
call fcn.00425469
mov edx, dword [ebp - 4]
or edx, eax
mov dword [ebp - 4], edx
push str..RecordRecDump
mov ecx, dword [ebp - 8]
call fcn.00425469
mov ecx, dword [ebp - 4]
or ecx, eax
mov dword [ebp - 4], ecx
push str..RecordRecOpr
mov ecx, dword [ebp - 8]
call fcn.00425469
mov edx, dword [ebp - 4]
or edx, eax
mov dword [ebp - 4], edx
push str..RecordRecPow
mov ecx, dword [ebp - 8]
call fcn.00425469
mov ecx, dword [ebp - 4]
or ecx, eax
mov dword [ebp - 4], ecx
push str..RecordRecTrb
mov ecx, dword [ebp - 8]
call fcn.00425469
mov edx, dword [ebp - 4]
or edx, eax
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 1
jne 0x425465
push 0
push 0
push 0x5826ec
call fcn.00520af8
push 0
call fcn.004d16d0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4276d3
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
push 0x582914
lea eax, [ebp - 0x34]
push eax
call fcn.004cfd40
add esp, 8
push 0
push 4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00520af8
cmp eax, 6
jne 0x427790
call fcn.00489c98
call fcn.00417ebf
mov edx, dword [0x5c0824]
and edx, 4
test edx, edx
je 0x42771f
call fcn.0042a908
push 0x5e8004
push 4
call fcn.00425018
add esp, 8
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x42776e
push 0
push 0xe141
push 0x111
call fcn.00549e60
mov ecx, eax
call fcn.005438b9
push 0
call fcn.004d16d0
add esp, 4
push 0
push 0xe141
push 0x111
call fcn.00549e60
mov ecx, eax
call fcn.005438b9
push 0
call fcn.004d16d0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4b17d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4b1803
push esi
call fcn.004b6190
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b17fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4b1889
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b1872
mov eax, dword [esi + 8]
test eax, eax
je 0x4b1827
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b186e
cmp eax, 2
je 0x4b1872
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b181a
cmp eax, 3
je 0x4b184d
cmp eax, 1
jne 0x4b181a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4b181a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b181a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b18c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b18a9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004b18c0
add esp, 4
pop esi
ret
Function at 0x4d02e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4d02fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4d0304
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4d031b
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d9ce0
add esp, 4
or eax, 0xffffffff
jmp 0x4d031d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4d1890
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4d18af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4d18b6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4d18cd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d9ce0
add esp, 4
or eax, 0xffffffff
jmp 0x4d18cf
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d294b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004d9ce0
add esp, 4
or eax, 0xffffffff
jmp 0x4d297c
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x4d297a
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x4d297a
call fcn.004d9d80
mov dword [eax], 0xd
call fcn.004d9d90
mov dword [eax], 5
or eax, 0xffffffff
jmp 0x4d297c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d5410
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c6f0
push 0x4d9bfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x60f618], eax
mov eax, dword [0x60f618]
shr eax, 8
and eax, 0xff
mov dword [0x60f624], eax
mov ecx, dword [0x60f618]
and ecx, 0xff
mov dword [0x60f620], ecx
mov edx, dword [0x60f620]
shl edx, 8
add edx, dword [0x60f624]
mov dword [0x60f61c], edx
mov eax, dword [0x60f618]
shr eax, 0x10
and eax, 0xffff
mov dword [0x60f618], eax
call fcn.004e04b0
test eax, eax
jne 0x4d549f
push 0x1c
call fcn.004d5650
add esp, 4
call fcn.004daa60
test eax, eax
jne 0x4d54b2
push 0x10
call fcn.004d5650
add esp, 4
mov dword [ebp - 4], 0
call fcn.004e2c20
call fcn.004d8000
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x610b88], eax
call fcn.004e2a00
mov dword [0x60f678], eax
cmp dword [0x60f678], 0
je 0x4d54ea
cmp dword [0x610b88], 0
jne 0x4d54f4
push 0xffffffffffffffff
call fcn.004d16d0
add esp, 4
call fcn.004e2280
call fcn.004e2140
call fcn.004d1690
mov ecx, dword [0x610b88]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
jne 0x4d556e
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
je 0x4d5557
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x4d5557
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.004e2050
add esp, 4
test eax, eax
je 0x4d5555
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x4d5518
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x22
jne 0x4d556c
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x4d5585
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x20
jle 0x4d5585
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x4d556e
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x4d55a7
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jg 0x4d55a7
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x4d5585
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x30]
and eax, 1
test eax, eax
je 0x4d55d0
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov dword [ebp - 0x6c], ecx
jmp 0x4d55d7
mov dword [ebp - 0x6c], 0xa
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004d16d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4d5638
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dabe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x597ab0], 0xffffffff
je 0x4dacc8
cmp dword [ebp + 8], 0
jne 0x4dac05
mov eax, dword [0x597ab0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x4dacb9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x4dac29
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
call fcn.004d38e0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], 0
je 0x4dac43
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call fcn.004d38e0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 0
je 0x4dac5d
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
push eax
call fcn.004d38e0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
je 0x4dac77
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
push eax
call fcn.004d38e0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x40], 0
je 0x4dac91
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
call fcn.004d38e0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], 0
je 0x4dacab
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
push eax
call fcn.004d38e0
add esp, 8
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d38e0
add esp, 8
push 0
mov edx, dword [0x597ab0]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop ebp
ret