joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e80
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.www.baidu.com
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [esp + 0x420]
push edi
push SysReAllocStringLen
push edi
push edi
push ecx
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edx, dword [esp + 0x424]
push edi
push 0x80
push 2
push edi
push edi
push 0x10000000
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x400
push ecx
push esi
call ebx
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 0x400
push eax
push edi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x402eeb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret

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

Disassembly:
sub esp, 0xc04
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x80
push 3
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0xc28]
push 0
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [eax + eax + 0x7d0]
push ecx
call fcn.0041ea22
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
add esp, 4
mov dword [esi], 0
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x414]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x418]
push edx
push eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x420]
push ecx
push edx
push esi
call fcn.0040da5e
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
ja 0x402fc4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._class_STYLE2__height_30__
push esi
call fcn.0040da1d
add esp, 8
test eax, eax
jne 0x40304b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc04
ret
mov edi, dword [esp + 0xc1c]
add eax, 0x38
push eax
push edi
call fcn.0040d0b0
push str.__td_
push edi
call fcn.0040da1d
push esi
mov word [eax], 0
call fcn.0041ea4b
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc04
ret
Function at 0x403500
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x7d0
push esi
push edi
xor esi, esi
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x3f2]
mov word [esp + 0x3f0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004036a0
push eax
lea eax, [esp + 0x3f4]
push eax
call fcn.0040d0b0
mov ecx, 0x7d
xor eax, eax
mov edi, str.username
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3f8]
push ecx
call fcn.0040e778
push eax
push str.username
call fcn.0040d0b0
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
rep stosd dword es:[edi], eax
add esp, 0x14
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x64
div ecx
cmp edx, 0x19
ja 0x40359d
lea edx, [esp + 0x1fc]
push str.username
push edx
jmp 0x4035ab
call fcn.004036e0
push eax
lea eax, [esp + 0x200]
push eax
call fcn.0040d0b0
mov ecx, 0x7d
xor eax, eax
mov edi, str.nickname
add esp, 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1fc]
push ecx
push str.nickname
call fcn.0040d0b0
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x5ee]
mov word [esp + 0x5ec], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00403750
lea edx, [esp + 0x5ec]
push eax
push edx
call fcn.0040d0b0
lea eax, [esp + 0x5f4]
push eax
call fcn.0040e778
push eax
push str.password
call fcn.0040d0b0
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x43492c
push ecx
stosw word es:[edi], ax
call fcn.0040d086
lea edx, [esp + 0x2c]
push str.username
push edx
call fcn.0040d086
lea eax, [esp + 0x34]
push 0x43491c
push eax
call fcn.0040d086
lea ecx, [esp + 0x3c]
push str.nickname
push ecx
call fcn.0040d086
lea edx, [esp + 0x44]
push 0x43490c
push edx
call fcn.0040d086
add esp, 0x44
lea eax, [esp + 8]
push str.password
push eax
call fcn.0040d086
add esp, 8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
add esp, 0x7d0
ret

Function at 0x403870
Capabilities:
Delete file
Print debug messages

Disassembly:
sub esp, 0x100
push ebp
push esi
push edi
push 0x43a7b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push str.C:Program_Files_rw_b102_10001359.exe
call esi
push str.C:Program_Files_rw_b102_10001359.exe
push 0x43a7b0
call fcn.00401b40
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.C:Program_Files_rw_b102_10001359.exe
stosb byte es:[edi], al
call fcn.0040d0d5
push eax
lea eax, [esp + 0x1c]
push str.C:Program_Files_rw_b102_10001359.exe
push eax
call fcn.0040ddcf
lea ecx, [esp + 0x24]
push ecx
call fcn.00403840
cdq
and edx, 0x3ff
add esp, 0x1c
add eax, edx
sar eax, 0xa
cmp eax, 0x3a98
jg 0x4038fe
push 0x2710
call ebp
jmp 0x403890
pop edi
pop esi
pop ebp
add esp, 0x100
ret
Function at 0x403be0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403c4d
mov esi, dword [esp + 0x23c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x30]
push esi
push ecx
call edi
test eax, eax
je 0x403c3f
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x403c4d
lea eax, [esp + 0x30]
push esi
push eax
call edi
test eax, eax
jne 0x403c24
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x22c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x22c
ret

Function at 0x403c60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
push str.rw.exe
call fcn.00403be0
mov dword [esp + 0x14], eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
add esp, 4
rep stosd dword es:[edi], eax
push 5
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403d8f
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebp, dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x403d71
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x228]
push 0x100
push edx
push esi
stosw word es:[edi], ax
call ebx
lea eax, [esp + 0x28]
push 0x100
push eax
push esi
call ebp
lea ecx, [esp + 0x28]
push 0x434a08
push ecx
call fcn.0040d88b
add esp, 8
test eax, eax
jne 0x403d71
lea edx, [esp + 0x228]
push 0x43a524
push edx
call fcn.0040d88b
add esp, 8
test eax, eax
jne 0x403d71
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ecx, edx
cmp ecx, 0x1d6
jne 0x403d71
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, 0x181
je 0x403d9c
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x403d8f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403cbd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x42c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
Function at 0x404c60
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push str.vU_
push 0x434a08
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.AfxWnd90u
push 0
push esi
call edi
push 0
push str.Edit
push 0
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404cbb
push str.username
push 0
push 0xc
push eax
call ebp
push 0x43a524
push str.Edit
push 0
push esi
call edi
push str.password
push 0
push 0xc
push eax
call ebp
push 1
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SetCursorPos]
add edx, 0xffffffe2
add eax, 0x23
push edx
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 2
call ebp
push 0
push 0
push 0
push 0
push 4
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebx
push 0x43a524
xor ebp, ebp
push str.Button
push ebp
push esi
call edi
push 0x43a524
push str.Button
push eax
push esi
call edi
push 0x43a524
push str.Button
push eax
push esi
call edi
push ebp
push 0xd
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push 0x434d30
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x28]
push ecx
push 0x434a08
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x404de1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x404d89
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
push str.other
call fcn.004016d0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x404e00
Capabilities:
Create process on windows
Get graphical window text
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push 0
push str.taskkill__f__im_rw.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call esi
push 6
push 0
push 0
push str.C:Program_Files_rw_bin_rw.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call esi
push str.vU_
push 0x434a08
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.AfxWnd90u
push 0
push esi
call edi
push 0
push str.Edit
push 0
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404e8b
push str.username
push 0
push 0xc
push eax
call ebx
push 0x43a524
push str.Edit
push 0
push esi
call edi
push str.password
push 0
push 0xc
push eax
call ebx
push 0x43a524
push str.Button
push 0
push esi
call edi
push 0x43a524
push str.Button
push eax
push esi
call edi
push 0x43a524
push str.Button
push eax
push esi
call edi
push 0
push 0xd
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x41cdf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040db20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cebb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cebb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41ce6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41ce79
or bh, 8
and edi, 0x8000000
je 0x41ce94
mov eax, dword [0x43e49c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cebb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d2bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d2df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d2fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4216a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4216e6
call fcn.00425ed1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4216e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4216dd
xor eax, eax
jmp 0x4216ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004216f4
pop edi
pop esi
pop ebx
ret 4

Function at 0x42668a
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 0x4266b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4266d6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004265f0
jmp 0x4266d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4266d6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004265f0
test edi, edi
mov eax, edi
jne 0x4266c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402190
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
push ecx
mov eax, dword [eax + 0xc]
movsx ecx, byte [eax]
cmp cl, 0x6e
jne 0x4021b5
lea edx, [eax + 1]
mov edi, 1
mov dword [esi + 0xc], edx
movsx ecx, byte [eax + 1]
xor ebx, ebx
lea eax, [ecx - 0x30]
cmp al, 9
jbe 0x4021c6
test edi, edi
je 0x4021fc
neg ebx
jmp 0x4021fc
lea eax, [ecx - 0x30]
mov ecx, 0xa
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, 0x7fffffff
sub eax, edx
cdq
idiv ecx
cmp eax, ebx
jl 0x4021f9
imul ebx, ebx, 0xa
mov eax, dword [ebp - 0x10]
add ebx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + 1]
mov dword [esi + 0xc], edx
movsx ecx, byte [eax + 1]
jmp 0x4021b7
or ebx, 0xffffffff
pop edx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40418f
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
mov ebx, eax
mov eax, dword [ecx]
cmp eax, 3
je 0x404294
sub eax, 0x19
cmp eax, 0x3a
ja case.0x4041af.40
jmp dword [eax*4 + 0x488598]
mov edx, str._restrict
jmp 0x4041c2
mov edx, str._volatile
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp fcn.0040259b
mov edx, str._const
jmp 0x4041c2
mov edx, str._transaction_safe
jmp 0x4041c2
mov edx, str._noexcept
jmp 0x4041e6
mov edx, str._throw
mov eax, ebx
call fcn.0040259b
cmp dword [esi + 0x10], 0
je case.0x4041af.33
mov edx, 0x28
mov eax, ebx
call fcn.0040251a
mov ecx, dword [esi + 0x10]
jmp 0x4042a8
mov edx, 0x20
mov eax, ebx
call fcn.0040251a
mov ecx, dword [esi + 0x10]
jmp 0x4042c5
mov edx, 0x2a
jmp 0x4042b9
mov edx, 0x20
mov eax, ebx
call fcn.0040251a
mov edx, 0x26
jmp 0x4042b9
mov edx, 0x20
mov eax, ebx
call fcn.0040251a
mov edx, 0x48856e
jmp 0x4041c2
mov edx, str.__Complex
jmp 0x4041c2
mov edx, str.__Imaginary
jmp 0x4041c2
cmp byte [ebx + 0x104], 0x28
je 0x40427b
mov edx, 0x20
mov eax, ebx
call fcn.0040251a
mov ecx, dword [esi + 0xc]
mov edx, 0x11
mov eax, ebx
call fcn.0040294d
mov edx, 0x488587
jmp 0x4041c2
mov ecx, dword [ecx + 0xc]
jmp 0x4042c5
mov edx, str.___vector_
mov eax, ebx
call fcn.0040259b
mov ecx, dword [esi + 0xc]
mov edx, 0x11
mov eax, ebx
call fcn.0040294d
mov edx, 0x29
mov eax, ebx
pop ebx
pop esi
pop ebp
jmp fcn.0040251a
mov ecx, esi
mov eax, ebx
mov edx, 0x11
pop ebx
pop esi
pop ebp
jmp fcn.0040294d
pop ebx
pop esi
pop ebp
ret

Function at 0x4045fd
Capabilities:
Parse credit card information

Disassembly:
cmp dword [ecx], 0x33
jne 0x404610
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
jmp fcn.00402558
mov edx, 0x11
jmp fcn.0040294d

Function at 0x407860
Capabilities:
Parse pe header

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x407885
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x407885
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
pop ebp
ret

Function at 0x407889
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
cmp ebx, esi
jae 0x4078bd
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x4078b7
add edx, dword [eax + 8]
cmp ecx, edx
jb 0x4078bf
inc ebx
add eax, 0x28
jmp 0x4078a5
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4103f6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov ebx, eax
sub esp, 0x50
mov dword [esp], eax
call fcn.00410000
dec eax
jne 0x41044b
xor eax, eax
lea edi, [ebp - 0x3d]
lea ebx, [ebp - 0x3d]
mov ecx, 0x35
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.004103cc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov dword [ebx], 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
call fcn.00410458
mov eax, dword [0x485214]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push ecx
test eax, eax
jne 0x4105ea
call fcn.0041032e
mov ebx, eax
test eax, eax
je 0x4105ea
mov dword [eax + 0x24], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x38]
mov dword [ebx + 0x1c], 0xffffffff
call fcn.004103f6
mov edx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebp - 0x1c], edx
mov dword [ebx + 0x14], eax
call edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, dword [ebp - 0x1c]
mov esi, eax
call edx
xor edx, edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebx + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x4105b1
call sub.msvcrt.dll_abort
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
xor ecx, ecx
push edx
mov dword [ebx + 0x6c], eax
mov al, byte [ebx + 0x20]
mov dword [ebx + 0x68], ecx
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov dword [esp + 4], ebx
mov eax, dword [0x485214]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push esi
test eax, eax
je 0x4105ac
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret