joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42edca
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1380]
mov eax, 0x1400
call fcn.00450330
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x137c], eax
push ebx
push esi
mov esi, dword [ebp + 0x1388]
push esi
lea eax, [ebp + 0x1d4]
push str._s.
push eax
mov dword [ebp - 0x80], ecx
call fcn.0045025e
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42eec8
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42eec8
cmp word [ebp - 0x50], 0x2e
je 0x42ee25
cmp word [ebp - 0x4e], 0
je 0x42ee25
cmp word [ebp - 0x4e], 0x2e
jne 0x42ee54
cmp word [ebp - 0x4c], 0
je 0x42ee25
test byte [ebp - 0x7c], 0x10
je 0x42ee9d
and word [ebp + 0x1174], 0
push 0x206
lea eax, [ebp + 0x1176]
push 0
push eax
call fcn.0044fd00
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x1174]
push 0x53de44
push eax
call fcn.0045025e
mov ecx, dword [ebp - 0x80]
add esp, 0x1c
lea eax, [ebp + 0x1174]
push eax
call fcn.0042edca
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x9a4]
push 0x53ded0
push eax
call fcn.0045025e
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42ee25
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x137c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
add ebp, 0x1380
leave
ret 4

Function at 0x42f083
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3a4]
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x76]
push ebx
push eax
mov word [ebp - 0x78], bx
call fcn.0044fd00
add esp, 0xc
call fcn.00402f04
mov ecx, eax
call fcn.0040b5d1
mov dword [ebp - 0x7c], eax
call fcn.00402f04
mov ecx, eax
call fcn.0040b5e5
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call fcn.0044fd00
mov esi, str..znpf
push esi
push edi
push dword [ebp - 0x7c]
lea eax, [ebp + 0x190]
push str._sSkin_s_s
push eax
call fcn.0045025e
add esp, 0x20
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f13b
push esi
push edi
push dword [ebp - 0x80]
lea eax, [ebp + 0x190]
push str._sAllSkin_s_s
push eax
call fcn.0045025e
add esp, 0x14
cmp dword [ebp + 0x3a8], ebx
lea eax, [ebp + 0x190]
push eax
push str.SCWBSkinInst.exe
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
je 0x42f15c
push str._s_s__temp__s
jmp 0x42f161
push str._s_s__untie__s
push eax
call fcn.0045025e
lea eax, [ebp - 0x78]
add esp, 0x14
push eax
call fcn.0040d254
pop ecx
call fcn.00434c15
push dword [ebp + 0x3a8]
mov eax, dword [eax + 8]
push edi
push eax
call fcn.00404993
mov ecx, eax
call fcn.0040a2e4
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
add ebp, 0x39c
leave
ret 8
Function at 0x430da0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x539c53
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x59d680]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x5aa098
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x5aa098
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x53e191
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00430100
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x430e50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x539c78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59d680]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x430e92
push edi
push edi
push edi
push 2
call fcn.004325e0
xor al, al
jmp 0x43102f
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x430eb1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x430ea0
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00455fe4
push ebp
call fcn.004576d8
push 0
push 0
push ebp
mov edi, eax
call fcn.00455fe4
add esp, 0x1c
test edi, edi
jne 0x430ef5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.004325e0
xor al, al
jmp 0x43102f
mov dword [esp + 0x14], 0x5aa098
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00430060
lea eax, [edi + 1]
push eax
call fcn.00434315
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.00457525
add esp, 0x14
cmp eax, 1
je 0x430f65
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004325e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5aa098
je 0x430f5e
push eax
call fcn.00434340
add esp, 4
xor al, al
jmp 0x43102f
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x430fd7
mov cl, byte [esi]
cmp cl, 0xa
jne 0x430f95
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004301f0
add esi, 1
mov eax, esi
jmp 0x430fd2
cmp cl, 0xd
jne 0x430fcf
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x430fad
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004301f0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.004301f0
cmp byte [esi + 1], 0xa
jne 0x430f8e
add esi, 2
mov eax, esi
jmp 0x430fd2
add esi, 1
cmp byte [esi], 0
jne 0x430f75
sub esi, eax
je 0x430fe6
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004301f0
push ebp
call fcn.00434340
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x430f4e
cmp eax, 0x5aa098
je 0x43102d
push eax
call fcn.00434340
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x435587
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4355c4
push 0x5471d8
push 4
push eax
call fcn.004578db
push eax
call fcn.00402dd7
add esp, 0x10
jmp 0x4355d6
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435641
push edi
call fcn.00457982
mov edi, dword [eax]
call fcn.00457982
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00450310
add esp, 0x18
mov ebx, eax
call fcn.00457982
cmp dword [eax], 0
je 0x435621
call fcn.00457982
push dword [eax]
call fcn.00434f1c
pop ecx
jmp 0x435628
call fcn.00457982
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x435641
cmp ebx, esi
jae 0x435641
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x435643
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fa75
leave
ret
Function at 0x4378e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x437926
call fcn.00434c15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x437926
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x437969
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x437952
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437952
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x437966
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43a1f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43a227
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a245
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043a163
jmp 0x43a245
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43a245
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043a163
test edi, edi
mov eax, edi
jne 0x43a22f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5aa330]
test ecx, ecx
je 0x43a308
jmp 0x43a1f8
ret 8

Function at 0x44112d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x441170
call fcn.00434c15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x441170
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44118b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00440ce7
test ebx, ebx
mov esi, eax
je 0x441189
test edi, edi
je 0x441189
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x44fa75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59d680]
jne 0x44fa7f
repz ret
jmp fcn.0045a71c
Function at 0x457289
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 0x4572c6
cmp dword [ebp + 0x14], edi
je 0x4572c6
cmp ecx, edi
jne 0x4572cd
call fcn.00457982
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044f3f3
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4572e1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x457302
cmp ebx, 0xffffffff
je 0x4572f1
push ebx
push edi
push ecx
call fcn.0044fd00
add esp, 0xc
cmp esi, edi
je 0x4572ae
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4572ae
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45731e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x457325
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x457416
test word [esi + 0xc], 0x10c
je 0x457379
mov eax, dword [esi + 4]
test eax, eax
je 0x457379
jl 0x457477
cmp ebx, eax
mov edi, ebx
jb 0x45734a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45741e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044f217
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 0x45740e
cmp ebx, dword [ebp - 0xc]
jb 0x4573e6
cmp dword [ebp - 0xc], 0
je 0x4573a3
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x457398
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45739f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4573ae
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4573ae
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45744a
push eax
push dword [ebp - 8]
push esi
call fcn.0045ce92
pop ecx
push eax
call fcn.00467000
add esp, 0xc
test eax, eax
je 0x457489
cmp eax, 0xffffffff
je 0x457477
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45740e
push esi
call fcn.004641e8
cmp eax, 0xffffffff
pop ecx
je 0x45747b
cmp dword [ebp - 4], 0
je 0x45744a
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 0x45732d
mov eax, dword [ebp + 0x14]
jmp 0x4572c8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x457435
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044fd00
add esp, 0xc
call fcn.00457982
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4572be
cmp dword [ebp + 0xc], 0xffffffff
je 0x457460
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044fd00
add esp, 0xc
call fcn.00457982
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4572be
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4572c8
or dword [esi + 0xc], 0x10
jmp 0x45747b
Function at 0x458641
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 + 0x59d860]
je 0x45865c
inc edi
cmp edi, 0x17
jb 0x45864d
cmp edi, 0x17
jae 0x4587dc
push ebp
push 3
call fcn.00467b25
cmp eax, 1
pop ecx
je 0x4587a8
push 3
call fcn.00467b25
test eax, eax
pop ecx
jne 0x458690
cmp dword [0x59d654], 1
je 0x4587a8
cmp ebx, 0xfc
je 0x4587db
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5ac038
push ebp
call fcn.004598c1
add esp, 0xc
test eax, eax
je 0x4586c6
push esi
push esi
push esi
push esi
push esi
call fcn.0044f2f7
add esp, 0x14
push 0x104
mov esi, 0x5ac051
push esi
push 0
mov byte [0x5ac155], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45870a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004598c1
add esp, 0xc
test eax, eax
je 0x45870a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044f2f7
add esp, 0x14
push esi
call fcn.0044f440
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45874f
push esi
call fcn.0044f440
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5ac34c
push 0x54a4b4
sub ecx, eax
push ecx
push eax
call fcn.004637e0
add esp, 0x14
test eax, eax
je 0x45874f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044f2f7
add esp, 0x14
jmp 0x458751
xor esi, esi
push 0x54a4b0
push ebx
push ebp
call fcn.0046376f
add esp, 0xc
test eax, eax
je 0x458771
push esi
push esi
push esi
push esi
push esi
call fcn.0044f2f7
add esp, 0x14
push dword [edi*8 + 0x59d864]
push ebx
push ebp
call fcn.0046376f
add esp, 0xc
test eax, eax
je 0x458793
push esi
push esi
push esi
push esi
push esi
call fcn.0044f2f7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00467968
add esp, 0xc
jmp 0x4587db
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4587db
cmp ebp, 0xffffffff
je 0x4587db
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x59d864]
push dword [esi]
call fcn.0044f440
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 0x467968
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004591f1
xor ebx, ebx
cmp dword [0x5acb44], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x467a3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x467b1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54b9b8
push edi
call esi
cmp eax, ebx
je 0x467b1e
push eax
call fcn.00459183
mov dword [esp], 0x54b9a8
push edi
mov dword [0x5acb44], eax
call esi
push eax
call fcn.00459183
mov dword [esp], 0x54b994
push edi
mov dword [0x5acb48], eax
call esi
push eax
call fcn.00459183
mov dword [0x5acb4c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00457a6f
test eax, eax
pop ecx
pop ecx
je 0x467a0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044f2f7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x467a3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00459183
cmp eax, ebx
pop ecx
mov dword [0x5acb54], eax
je 0x467a3e
push 0x54b960
push edi
call esi
push eax
call fcn.00459183
pop ecx
mov dword [0x5acb50], eax
mov eax, dword [0x5acb50]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x467ac3
cmp dword [0x5acb54], ecx
je 0x467ac3
push eax
call fcn.004591fa
push dword [0x5acb54]
mov esi, eax
call fcn.004591fa
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x467ac3
cmp edi, ebx
je 0x467ac3
call esi
cmp eax, ebx
je 0x467a90
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x467a90
test byte [ebp - 0x18], 1
jne 0x467ac3
lea eax, [ebp - 0x10]
push eax
call fcn.00457aa6
test eax, eax
pop ecx
je 0x467aab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044f2f7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x467aba
or dword [ebp + 0x10], 0x200000
jmp 0x467afe
or dword [ebp + 0x10], 0x40000
jmp 0x467afe
mov eax, dword [0x5acb48]
cmp eax, dword [ebp - 8]
je 0x467afe
push eax
call fcn.004591fa
cmp eax, ebx
pop ecx
je 0x467afe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x467afe
mov eax, dword [0x5acb4c]
cmp eax, dword [ebp - 8]
je 0x467afe
push eax
call fcn.004591fa
cmp eax, ebx
pop ecx
je 0x467afe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5acb44]
call fcn.004591fa
cmp eax, ebx
pop ecx
je 0x467b1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x467b20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f4aa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046f43f
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.0044fd00
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 0x46f4f9
cmp dword [ebp - 0x1c], 5
jb 0x46f511
jmp 0x46f50d
cmp dword [ebp - 0x10], 1
jne 0x46f511
cmp dword [ebp - 0x1c], 4
ja 0x46f50d
jne 0x46f511
cmp dword [ebp - 0x18], 0
jbe 0x46f511
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x54ca98
call fcn.004262b4
test eax, eax
jge 0x46f532
mov byte [0x5a7408], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044fa75
add ebp, 0x78
leave
ret

Function at 0x46f570
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x59d680]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46f5c2
mov eax, dword [esp]
cmp al, 2
jne 0x46f5bc
shr eax, 8
cmp al, 2
jne 0x46f5bc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044fa75
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0044fa75
add esp, 0x194
ret

Function at 0x4709c0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4709e2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4709d6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x470a12
cmp dword [esi + 8], 0
jne 0x470a05
mov ecx, dword [eax + 8]
push 0x546650
push ecx
call fcn.0045780a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x470a05
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00457525
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x470a34
mov eax, dword [esi + 8]
test eax, eax
je 0x470a2e
push eax
call fcn.0045215a
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x47c060
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x47c092
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x47c1e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x47c1fb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x47c22f
cmp eax, 2
jg 0x47c22f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x54dbf8]
push 2
push edx
call fcn.00452335
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00452335
add esp, 0x20
xor eax, eax
ret

Function at 0x47c540
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x47c5bd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x47c594
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00480850
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0047c3c0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret