joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111b0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4390b4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
push esi
call fcn.00409c90
mov dword [esp + 0x2c], 0
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esi], vtable.CManinstIni.0
call fcn.00404d50
mov byte [esp + 0x2c], 1
lea ebp, [esi + 0x14]
mov ecx, ebp
call fcn.00404d50
mov byte [esp + 0x2c], 2
lea ebx, [esi + 0x18]
mov ecx, ebx
call fcn.00404d50
mov byte [esp + 0x2c], 3
lea ecx, [esi + 0x1c]
call fcn.00404d50
mov byte [esp + 0x2c], 4
lea ecx, [esi + 0x24]
call fcn.00404d50
mov byte [esp + 0x2c], 5
lea ecx, [esi + 0x28]
call fcn.00404d50
mov byte [esp + 0x2c], 6
lea ecx, [esi + 0x2c]
call fcn.00404d50
mov byte [esp + 0x2c], 7
lea ecx, [esi + 0x30]
call fcn.00404d50
mov byte [esp + 0x2c], 8
lea ecx, [esi + 0x38]
call fcn.00404d50
mov byte [esp + 0x2c], 9
lea ecx, [esi + 0x3c]
call fcn.00404d50
mov byte [esp + 0x2c], 0xa
lea ecx, [esi + 0x40]
call fcn.00404d50
mov byte [esp + 0x2c], 0xb
lea ecx, [esi + 0x54]
call fcn.00404d50
mov byte [esp + 0x2c], 0xc
push 0
lea eax, [esp + 0x1c]
push 0x4430c8
push eax
call fcn.00405b00
add esp, 0xc
mov byte [esp + 0x2c], 0xd
push 0
push 0x43fa9c
mov ecx, edi
call fcn.00404ad0
xor edi, edi
push edi
push 0x43fa9c
mov ecx, ebp
call fcn.00404ad0
push edi
push 0x43fa9c
mov ecx, ebx
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x1c]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], edi
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x28]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x2c]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x30]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 1
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x3c]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x40]
call fcn.00404ad0
push edi
push 0x43fa9c
lea ecx, [esi + 0x54]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call fcn.00404ad0
mov dword [esi + 0x58], edi
mov byte [esp + 0x2c], 0xc
lea ecx, [esp + 0x18]
call fcn.00405a70
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4113c0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4387e4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CManinstIni.0
mov dword [ebp - 4], 0xc
push 0
push str.CManinstIni::CManinstIni
lea eax, [ebp - 0x1c]
push eax
call fcn.00405b00
add esp, 0xc
mov ebx, 0xd
mov byte [ebp - 4], bl
mov byte [ebp - 4], 0xe
mov ecx, esi
call fcn.004119b0
mov dword [ebp - 4], ebx
jmp 0x411438
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00405a70
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x54]
call fcn.00405f60
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x40]
call fcn.00405f60
mov byte [ebp - 4], 9
lea ecx, [esi + 0x3c]
call fcn.00405f60
mov byte [ebp - 4], 8
lea ecx, [esi + 0x38]
call fcn.00405f60
mov byte [ebp - 4], 7
lea ecx, [esi + 0x30]
call fcn.00405f60
mov byte [ebp - 4], 6
lea ecx, [esi + 0x2c]
call fcn.00405f60
mov byte [ebp - 4], 5
lea ecx, [esi + 0x28]
call fcn.00405f60
mov byte [ebp - 4], 4
lea ecx, [esi + 0x24]
call fcn.00405f60
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
call fcn.00405f60
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.00405f60
mov byte [ebp - 4], 1
lea ecx, [esi + 0x14]
call fcn.00405f60
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00409d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4119b0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x438728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [esp + 0x14]
push str.CManinstIni::Detach
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x20], edi
call fcn.00409f50
push edi
lea ecx, [esi + 0x10]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x14]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x18]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x1c]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x24]
push 0x43fa9c
mov dword [esi + 0x20], edi
call fcn.00404ad0
push edi
lea ecx, [esi + 0x28]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x2c]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x30]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x38]
push 0x43fa9c
mov dword [esi + 0x34], 1
call fcn.00404ad0
push edi
lea ecx, [esi + 0x3c]
push 0x43fa9c
call fcn.00404ad0
push edi
lea ecx, [esi + 0x40]
push 0x43fa9c
call fcn.00404ad0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00405a70
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x412b30
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x438e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
push esi
call fcn.00409c90
xor ebx, ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.CManlaunIni.0
call fcn.00404d50
mov byte [esp + 0x2c], 1
lea ecx, [esi + 0x18]
call fcn.00404d50
mov byte [esp + 0x2c], 2
lea ecx, [esi + 0x1c]
call fcn.0041fba6
mov byte [esp + 0x2c], 3
lea edi, [esi + 0x30]
mov ecx, 0x11
mov eax, 0xa
mov dword [edi], vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const__.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov byte [esp + 0x2c], 4
lea ebp, [esi + 0x4c]
mov dword [ebp], vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const__.0
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], eax
mov byte [esp + 0x2c], 5
lea ecx, [esi + 0x68]
call fcn.00404d50
mov byte [esp + 0x2c], 6
lea ecx, [esi + 0x6c]
call fcn.00404d50
mov byte [esp + 0x2c], 7
push ebx
lea eax, [esp + 0x1c]
push 0x44372c
push eax
call fcn.00405b00
add esp, 0xc
mov byte [esp + 0x2c], 8
push ebx
push 0x43fa9c
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], ebx
call fcn.00404ad0
push ebx
push 0x43fa9c
lea ecx, [esi + 0x18]
call fcn.00404ad0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x1c]
call fcn.0041fc44
call fcn.0040e240
mov edi, ebp
call fcn.0040e240
push ebx
push 0x43fa9c
lea ecx, [esi + 0x68]
call fcn.00404ad0
push ebx
push 0x43fa9c
lea ecx, [esi + 0x6c]
call fcn.00404ad0
mov dword [esi + 0x70], ebx
mov byte [esp + 0x2c], 7
lea ecx, [esp + 0x18]
call fcn.00405a70
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x415e39
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x415ed7
push 0x43babc
push 4
push eax
call fcn.00424f90
push eax
call fcn.00404680
add esp, 0x10
push ebx
push edi
call fcn.00425072
mov edi, dword [eax]
call fcn.00425072
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00425018
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00425072
cmp dword [eax], ebx
je 0x415eee
call fcn.00425072
push dword [eax]
call fcn.00415dd0
pop ecx
jmp 0x415ef5
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x415e88
jmp 0x415f67
call fcn.00425072
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x415f63
cmp dword [ebp - 0x40], esi
jae 0x415f63
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004250c0
add esp, 0xc
push 0x43b658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x415f55
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x415f55
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x415f55
push ebx
push ebx
push esi
jmp 0x415f5b
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x415f65
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.004237ad
add ebp, 0x1f4
leave
ret
Function at 0x41c594
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41c5cd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004171d3
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00414ec7
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41e128
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 0x41e16b
call fcn.004157f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e16b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e186
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041dce2
test ebx, ebx
mov esi, eax
je 0x41e184
test edi, edi
je 0x41e184
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4237ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44cc80]
jne 0x4237b7
repz ret
jmp fcn.0042b307
Function at 0x4273f2
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 + 0x44ce10]
je 0x42740d
inc edi
cmp edi, 0x17
jb 0x4273fe
cmp edi, 0x17
jae 0x42758d
push ebp
push 3
call fcn.0042fb58
cmp eax, 1
pop ecx
je 0x427559
push 3
call fcn.0042fb58
test eax, eax
pop ecx
jne 0x427441
cmp dword [0x44cc54], 1
je 0x427559
cmp ebx, 0xfc
je 0x42758c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x450dd0
push ebp
call fcn.0042faf3
add esp, 0xc
test eax, eax
je 0x427477
push esi
push esi
push esi
push esi
push esi
call fcn.004289ef
add esp, 0x14
push 0x104
mov esi, 0x450de9
push esi
push 0
mov byte [0x450eed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4274bb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042faf3
add esp, 0xc
test eax, eax
je 0x4274bb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004289ef
add esp, 0x14
push esi
call fcn.00424760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x427500
push esi
call fcn.00424760
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4510e4
push 0x43decc
sub ecx, eax
push ecx
push eax
call fcn.0042fa40
add esp, 0x14
test eax, eax
je 0x427500
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004289ef
add esp, 0x14
jmp 0x427502
xor esi, esi
push 0x43dec8
push ebx
push ebp
call fcn.0042f9cf
add esp, 0xc
test eax, eax
je 0x427522
push esi
push esi
push esi
push esi
push esi
call fcn.004289ef
add esp, 0x14
push dword [edi*8 + 0x44ce14]
push ebx
push ebp
call fcn.0042f9cf
add esp, 0xc
test eax, eax
je 0x427544
push esi
push esi
push esi
push esi
push esi
call fcn.004289ef
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042f812
add esp, 0xc
jmp 0x42758c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42758c
cmp ebp, 0xffffffff
je 0x42758c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ce14]
push dword [esi]
call fcn.00424760
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 0x42f812
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00427fb6
xor ebx, ebx
cmp dword [0x4518d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42f8e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42f9c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42f9c8
push eax
call fcn.00427f48
mov dword [esp], 0x43e158
push edi
mov dword [0x4518d0], eax
call esi
push eax
call fcn.00427f48
mov dword [esp], 0x43e144
push edi
mov dword [0x4518d4], eax
call esi
push eax
call fcn.00427f48
mov dword [0x4518d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00424d1d
test eax, eax
pop ecx
pop ecx
je 0x42f8b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004289ef
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42f8e8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427f48
cmp eax, ebx
pop ecx
mov dword [0x4518e0], eax
je 0x42f8e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427f48
pop ecx
mov dword [0x4518dc], eax
mov eax, dword [0x4518dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42f96d
cmp dword [0x4518e0], ecx
je 0x42f96d
push eax
call fcn.00427fbf
push dword [0x4518e0]
mov esi, eax
call fcn.00427fbf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42f96d
cmp edi, ebx
je 0x42f96d
call esi
cmp eax, ebx
je 0x42f93a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f93a
test byte [ebp - 0x18], 1
jne 0x42f96d
lea eax, [ebp - 0x10]
push eax
call fcn.00424d54
test eax, eax
pop ecx
je 0x42f955
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004289ef
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42f964
or dword [ebp + 0x10], 0x200000
jmp 0x42f9a8
or dword [ebp + 0x10], 0x40000
jmp 0x42f9a8
mov eax, dword [0x4518d4]
cmp eax, dword [ebp - 8]
je 0x42f9a8
push eax
call fcn.00427fbf
cmp eax, ebx
pop ecx
je 0x42f9a8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42f9a8
mov eax, dword [0x4518d8]
cmp eax, dword [ebp - 8]
je 0x42f9a8
push eax
call fcn.00427fbf
cmp eax, ebx
pop ecx
je 0x42f9a8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4518d0]
call fcn.00427fbf
cmp eax, ebx
pop ecx
je 0x42f9c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f9ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4370ce
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437063
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.004250c0
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 0x43711d
cmp dword [ebp - 0x1c], 5
jb 0x437135
jmp 0x437131
cmp dword [ebp - 0x10], 1
jne 0x437135
cmp dword [ebp - 0x1c], 4
ja 0x437131
jne 0x437135
cmp dword [ebp - 0x18], 0
jbe 0x437135
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43f34c
call fcn.00436f37
test eax, eax
jge 0x437156
mov byte [0x451ef8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004237ad
add ebp, 0x78
leave
ret
Function at 0x10001000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10009034]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x19c]
sub eax, 0
je 0x1000106e
dec eax
jne 0x10001074
mov eax, dword [esp + 0x198]
lea ecx, [esp]
push ecx
push 0x102
mov dword [0x10009900], eax
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x10001055
mov ax, word [esp]
cmp al, 2
jne 0x1000104f
cmp ah, 1
je 0x10001074
call dword [sym.imp.WSOCK32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100012ed
add esp, 0x194
ret 0xc
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 1
call fcn.100012ed
add esp, 0x194
ret 0xc

Function at 0x10001090
Capabilities:
Create udp socket
Read .ini file
Set socket configuration

Disassembly:
sub esp, 0x130
mov eax, dword [0x10009034]
mov ecx, dword [0x10009900]
xor eax, esp
push esi
mov dword [esp + 0x130], eax
push 0x104
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..ini
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x30]
sub ecx, 4
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x2c]
push edx
push 0xc350
push str.PORT
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push 0x14
lea ecx, [esp + 0x20]
push ecx
push str.255.255.255.255
push 0x1000714c
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov esi, dword [sym.imp.WSOCK32.dll_htons]
mov word [0x10009db0], 2
call esi
lea edx, [esp + 0x18]
push edx
mov word [0x10009db2], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x11
push 2
push 2
mov dword [0x10009db4], eax
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x10009030], eax
je 0x100011c5
push 0
mov word [esp + 0xc], 2
call esi
push 0
mov word [esp + 0xe], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, dword [0x10009030]
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, dword [0x10009030]
push 0x10
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x100011dd
mov ecx, dword [0x10009030]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x10009030], 0xffffffff
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100012ed
add esp, 0x130
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100012fb
mov ecx, dword [esp + 0x134]
add esp, 4
pop esi
xor ecx, esp
mov eax, 1
call fcn.100012ed
add esp, 0x130
ret
Function at 0x10001210
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jle 0x10001289
cmp dword [0x10009030], 0xffffffff
je 0x10001289
push ebx
push esi
push edi
push ebp
call fcn.10001420
mov esi, dword [esp + 0x18]
mov ebx, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add esp, 4
xor eax, eax
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jle 0x1000125f
lea esp, [esp]
cmp byte [eax + ebx], 0x40
jne 0x1000125a
mov byte [eax + ebx], 2
inc eax
cmp eax, ebp
jl 0x10001250
mov ecx, dword [0x10009030]
push 0x10
push 0x10009db0
push 0
push ebp
push ebx
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
push ebx
mov esi, eax
call fcn.10001308
add esp, 4
pop edi
test esi, esi
pop esi
pop ebx
jg 0x1000128f
xor eax, eax
pop ebp
ret 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop ebp
ret 8

Function at 0x10001432
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10001522
mov eax, 0x94
call fcn.100033e0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001597
mov ecx, dword [esi + 0x10]
mov dword [0x10009a8c], ecx
mov eax, dword [esi + 4]
mov dword [0x10009a98], eax
mov edx, dword [esi + 8]
mov dword [0x10009a9c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10009a90], esi
je 0x1000149d
or esi, 0x8000
mov dword [0x10009a90], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10009a94], eax
call fcn.10001cfa
test eax, eax
pop ecx
je 0x10001597
call fcn.10001bf1
test eax, eax
jne 0x100014ca
call fcn.10001d4b
jmp 0x10001597
call fcn.1000334b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000a158], eax
call fcn.10003229
mov dword [0x10009908], eax
call fcn.10002d0a
test eax, eax
jl 0x1000151b
call fcn.10003187
test eax, eax
jl 0x10001516
call fcn.10002f54
test eax, eax
jl 0x10001516
push 0
call fcn.10002ae6
test eax, eax
pop ecx
jne 0x10001516
inc dword [0x10009904]
jmp 0x100015a8
call fcn.10002f08
call fcn.100019da
jmp 0x100014c0
test eax, eax
jne 0x10001552
cmp dword [0x10009904], eax
jle 0x10001597
dec dword [0x10009904]
cmp dword [0x10009ac8], eax
jne 0x10001541
call fcn.10002c24
call fcn.10002f08
call fcn.100019da
call fcn.10001d4b
jmp 0x100015a8
cmp eax, 2
jne 0x1000159b
push 0x8c
push 1
call fcn.10002c33
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10001597
push esi
push dword [0x1000903c]
call dword [0x10009924]
test eax, eax
push esi
je 0x10001591
call fcn.100019f7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100015a8
call fcn.10001308
pop ecx
xor eax, eax
jmp 0x100015ab
cmp eax, 3
jne 0x100015a8
push 0
call fcn.10001bc2
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc