joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e188
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x42e5e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x435b38], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x42e69c
cmp byte [0x4300fa], 0
je 0x42e656
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0042d598
add esp, 8
mov ebx, eax
test eax, eax
jne 0x42e63f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0042d598
add esp, 8
mov ebx, eax
test eax, eax
jne 0x42e63f
lea ebx, [ebp - 0x54]
jmp 0x42e640
inc ebx
call fcn.0042e59c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x42e6bd
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x435b3c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00423d88
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x435b3f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x42e6bd
cmp dword [0x435b38], 0xffffffff
je 0x42e6bd
mov eax, dword [0x435b38]
test eax, eax
je 0x42e6bd
cmp byte [eax], 0
je 0x42e6bd
push esi
push eax
call fcn.0042e74c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec6c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x437ca8], 0
jne 0x42eced
cmp dword [0x437cc4], 0
jne 0x42ec9c
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x437cc4], eax
test eax, eax
jne 0x42ec9c
push str.GetEnvironmentStrings_failed
call fcn.0042e6d4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x437cc4]
jmp 0x42ecb0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00423d88
pop ecx
mov edi, eax
test eax, eax
jne 0x42eca8
lea edi, [ebp + 1]
push edi
call fcn.0042deac
pop ecx
mov ebx, eax
mov dword [0x437cac], ebx
test ebx, ebx
jne 0x42ecda
xor eax, eax
jmp 0x42edb0
push edi
mov edx, dword [0x437cc4]
push edx
push ebx
call fcn.00423b68
add esp, 0xc
jmp 0x42ed0d
xor esi, esi
mov ebx, dword [0x437ca8]
jmp 0x42ed07
push eax
call fcn.00423d88
pop ecx
test eax, eax
jne 0x42ed03
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x42ecf7
lea ebx, [esi + 4]
push 4
mov dword [0x437cb0], ebx
inc ebx
push ebx
call fcn.0042d5f0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x42ed30
xor eax, eax
jmp 0x42edb0
cmp dword [0x437ca8], 0
jne 0x42ed61
xor esi, esi
mov ebx, dword [0x437cac]
mov eax, dword [esp]
mov ebp, eax
jmp 0x42ed52
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00423d88
pop ecx
mov edi, eax
test eax, eax
jne 0x42ed48
jmp 0x42ed92
xor esi, esi
mov ebx, dword [0x437ca8]
mov eax, dword [esp]
mov edi, eax
jmp 0x42ed8c
push eax
call fcn.00423d88
pop ecx
test eax, eax
je 0x42ed81
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x42ed85
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x42ed70
mov eax, dword [0x437ca8]
test eax, eax
je 0x42eda2
push eax
call fcn.0042dda4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x437ca8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41bfb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x182
jne 0x41c15d
lea eax, [ebp - 0x820]
push eax
push str.wosevir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
xor esi, esi
test edi, edi
jle 0x41c1a4
cmp edi, 0x2d
jne 0x41c171
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041c070
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41c19f
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
inc esi
cmp esi, edi
jl 0x41c164
pop esi
cmp edi, 0x2d
jne 0x41c1be
mov dword [0x1ef5170], 0xa62e7790
mov dword [0x1ef5174], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41c1d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c0e0
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c22d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c130
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43854a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4398af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x45654c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x45654c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x455378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4398b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4018a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov al, byte [esi + 0x26]
mov dword [esp + 0xc], edi
test al, al
je 0x401932
mov al, byte [esi + 0xd9c]
mov cl, byte [esi + 0xd9d]
cmp al, cl
jne 0x4018e4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi + 0xd9c]
mov al, byte [esi + 0xd9d]
cmp cl, al
je 0x401948
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esi + 0xd9d]
mov al, byte [edx + esi + 0xc9c]
mov edx, dword [esp + 0xc]
mov byte [edx + ebp], al
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0xd9d]
inc edx
inc al
dec ecx
mov dword [esp + 0xc], edx
mov byte [esi + 0xd9d], al
je 0x401948
cmp byte [esi + 0xd9c], al
jne 0x4018f8
jmp 0x401948
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], edi
je 0x401a61
mov al, byte [esi + 0x24]
test al, al
je 0x401a49
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x164]
mov byte [esp + 0x18], 1
test edi, edi
jne 0x401992
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x164], edi
jmp 0x40199e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
lea ecx, [esp + 0x24]
sub eax, edi
push eax
push str._r_nIN___4d__:
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
xor edi, edi
test eax, eax
jle 0x401a14
xor edx, edx
lea eax, [esp + 0x20]
mov dl, byte [edi + ebp]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x4019f8
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401a0b
push 0x4227c0
lea ecx, [esp + 0x28]
call fcn.00411682
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x4019c3
mov eax, dword [esp + 0x24]
mov byte [esi + 0x25], 1
push eax
push esi
call fcn.00401660
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esi + 0x25], 0
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401a80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x24]
test al, al
je 0x401b9f
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esi + 0x164]
mov byte [esp + 0x1c], 1
test edi, edi
jne 0x401ae8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x164], edi
jmp 0x401af4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
lea ecx, [esp + 0x28]
sub eax, edi
push eax
push str._r_nOUT__4d__:
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor edi, edi
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x401b6a
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [edi + ebx]
push edx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov edx, edi
and edx, 0x8000000f
jns 0x401b4e
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x401b61
push 0x4227c0
lea ecx, [esp + 0x2c]
call fcn.00411682
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x401b19
mov eax, dword [esp + 0x28]
mov byte [esi + 0x25], 1
push eax
push esi
call fcn.00401660
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esi + 0x25], 0
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x26]
test al, al
je 0x401bd2
mov edx, dword [esi + 0x10]
lea edi, [esi + 0xc74]
lea ecx, [esp + 0x24]
push edi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x401be5
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40f100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov cl, 0x4c
mov byte [esp + 7], 0
test edi, edi
mov byte [esp + 8], cl
jbe 0x40f178
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub esi, eax
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [esi + eax]
and ebx, 0xff
mov dl, byte [edx + 0x41ace0]
xor dl, byte [ebx + 0x41ace0]
mov bl, cl
inc bl
and ebx, 0xff
add dl, byte [ebx + 0x41ace0]
and edx, 0xff
mov dl, byte [edx + 0x41ace0]
mov bl, dl
mov byte [eax], dl
xor bl, cl
mov cl, bl
mov bl, byte [esp + 0xf]
add cl, bl
inc bl
inc eax
dec edi
mov byte [esp + 0x10], cl
mov byte [esp + 0xf], bl
jne 0x40f123
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x4049a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, 2
mov dword [ebp - 0x18], 0x10
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
test esi, esi
je 0x4049e2
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x4049e4
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x404a4b
cmp word [esi], 0
jne 0x404a3a
mov eax, dword [section..data]
cmp dword [eax], 1
jl 0x404a3a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x2d1
push str.bind_host
call fcn.004048f0
push eax
push str._s__s:_d_cannot_bind:__s_n
call fcn.004048b0
add esp, 0x14
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x404a72
cmp word [esi], 0
jne 0x404a72
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi], ax
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret

Function at 0x404a90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push dword [ebp + 0x10]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jns 0x404ad7
mov ecx, dword [section..data]
cmp dword [ecx], 1
jl 0x404b25
push esi
push 0x2b4
push str.bind_socket
call fcn.004048f0
push eax
push str._s__s:_d_cannot_create_socket__d_n
call fcn.004048b0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push esi
call fcn.004049a0
add esp, 0xc
test al, al
jne 0x404af9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [section..data]
cmp dword [eax], 3
jl 0x404b25
movzx eax, word [edi]
push eax
push esi
push 0x2bd
push str.bind_socket
call fcn.004048f0
push eax
push str._s__s:_d_socket_binding__d_on_port__d_n
call fcn.004048b0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
ret